]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix up previous LAMDA->LAMBDA patch
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Sep 2020 13:46:19 +0000 (15:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Sep 2020 13:46:19 +0000 (15:46 +0200)
* lisp/international/mule-cmds.el (ucs-names): Ensure we're only
matching LAMDA as a word.  Noted by Stefan Monnier.

lisp/international/mule-cmds.el

index e49d1fa91e0b558f18811c57e7a244f9f65973f3..75d1c611e62abc28e0e8de278563dde033972ad8 100644 (file)
@@ -3017,7 +3017,7 @@ on encoding."
                 ;; spelling, but others don't.  Add the traditional
                 ;; spelling for more convenient completion.
                 (when (and (not old-name) new-name
-                           (string-match "LAMDA" new-name))
+                           (string-match "\\<LAMDA\\>" new-name))
                   (puthash (replace-match "LAMBDA" t t new-name) c names))
                (setq c (1+ c))))))
         ;; Special case for "BELL" which is apparently the only char which