Fix up previous LAMDA->LAMBDA patch

* lisp/international/mule-cmds.el (ucs-names): Ensure we're only
matching LAMDA as a word.  Noted by Stefan Monnier.
This commit is contained in:
Lars Ingebrigtsen 2020-09-04 15:46:19 +02:00
parent 6dcfabea97
commit 9e5db99d31

View 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