aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-09 23:18:30 +0000
committerRichard M. Stallman1993-05-09 23:18:30 +0000
commit9b54f2680c29949a2fc5ac24150644ff449166bf (patch)
tree4232d2c44a1494c3f49b65be9fae719e9b0d7397
parent723472f14e9ef0b561032f27095a9b8a491a441d (diff)
downloademacs-9b54f2680c29949a2fc5ac24150644ff449166bf.tar.gz
emacs-9b54f2680c29949a2fc5ac24150644ff449166bf.zip
(dabbrev-expand): Delete a search-forward call
after the second replace-match.
-rw-r--r--lisp/dabbrev.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index 0798b764c2b..db5fcacd077 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -186,7 +186,9 @@ with the next possible expansion not yet tried."
186 ;; case pattern. 186 ;; case pattern.
187 (save-excursion 187 (save-excursion
188 (replace-match abbrev t 'literal)) 188 (replace-match abbrev t 'literal))
189 (search-forward abbrev) 189;;; This used to be necessary, but no longer,
190;;; because now point is preserved correctly above.
191;;; (search-forward abbrev)
190 (replace-match (if do-case (downcase expansion) expansion) 192 (replace-match (if do-case (downcase expansion) expansion)
191 (not do-case) 193 (not do-case)
192 'literal)) 194 'literal))