]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/dabbrev.el (dabbrev-expansions): Fix infloop.
authorEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 06:56:26 +0000 (07:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 06:56:26 +0000 (07:56 +0100)
lisp/dabbrev.el

index bfba153f0240716f373d46b62ed8b1c8edef0098..9d75150b08492d46e2c020f3ce6a6a608ad11ab7 100644 (file)
@@ -60,7 +60,7 @@ addition to the current buffer and the visible buffers.")
                                   (member match more)
                                   (member match expansions))
                         (push match more))))))))))
-    (when (and abbrev anchor)
+    (when (and abbrev (not (string-empty-p abbrev)) anchor)
       ;; Search the current buffer.
       (save-excursion
         (goto-char (point-min))