From: Guillermo J. Rozas Date: Tue, 1 Dec 1992 14:12:44 +0000 (+0000) Subject: Fix case replacement decision. X-Git-Tag: 20090517-FFI~8692 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=72e23117ce9bf821655b05ae9ef8c0df112f33f8;p=mit-scheme.git Fix case replacement decision. --- diff --git a/v7/src/edwin/dabbrev.scm b/v7/src/edwin/dabbrev.scm index 94d6454c8..10dbc4c2c 100644 --- a/v7/src/edwin/dabbrev.scm +++ b/v7/src/edwin/dabbrev.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: dabbrev.scm,v 1.1 1992/11/17 22:41:06 cph Exp $ +;;; $Id: dabbrev.scm,v 1.2 1992/12/01 14:12:44 gjr Exp $ ;;; ;;; Copyright (c) 1992 Massachusetts Institute of Technology ;;; @@ -151,9 +151,10 @@ with the next possible expansion not yet tried." (current-point) (buffer-start (current-buffer)))) (do-case (and do-case - (char=? (string-ref expansion 0) - (char-downcase - (string-ref expansion 0)))))) + (substring-lower-case? + expansion + 1 + (string-length expansion))))) ;; First put back the original abbreviation with its original ;; case pattern. (replace-match abbrev true true)