From 72e23117ce9bf821655b05ae9ef8c0df112f33f8 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Tue, 1 Dec 1992 14:12:44 +0000 Subject: [PATCH] Fix case replacement decision. --- v7/src/edwin/dabbrev.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) -- 2.25.1