aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-07-27 04:09:13 +0000
committerRichard M. Stallman1996-07-27 04:09:13 +0000
commitcaafcc32ad931e6fdcf93b3566fc6c1093fa99b1 (patch)
tree8fcee4b9af8b0300635309c463b47accd4549da8
parent0e0ee795442b32f677df2bf02e431595f7680281 (diff)
downloademacs-caafcc32ad931e6fdcf93b3566fc6c1093fa99b1.tar.gz
emacs-caafcc32ad931e6fdcf93b3566fc6c1093fa99b1.zip
(dabbrev--substitute-expansion): Use just ABBREV, not OLD, in previous change.
-rw-r--r--lisp/dabbrev.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index f4250db1a77..ed17557170f 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -752,12 +752,10 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
752 ;; matches the start of the expansion, 752 ;; matches the start of the expansion,
753 ;; copy the expansion's case 753 ;; copy the expansion's case
754 ;; instead of downcasing all the rest. 754 ;; instead of downcasing all the rest.
755 (if (and (string= (or old abbrev) 755 (if (and (string= abbrev
756 (substring expansion 0 (length (or old abbrev)))) 756 (substring expansion 0 (length abbrev)))
757 (not (string= (or old abbrev) 757 (not (string= abbrev (downcase abbrev)))
758 (downcase (or old abbrev)))) 758 (not (string= abbrev (upcase abbrev))))
759 (not (string= (or old abbrev)
760 (upcase (or old abbrev)))))
761 (setq use-case-replace nil) 759 (setq use-case-replace nil)
762 (if use-case-replace 760 (if use-case-replace
763 (setq expansion (downcase expansion)))) 761 (setq expansion (downcase expansion))))