]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow "lambda" spelling for ucs-insert
authorNoam Postavsky <npostavs@gmail.com>
Fri, 4 Sep 2020 04:43:13 +0000 (06:43 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Sep 2020 04:43:13 +0000 (06:43 +0200)
* lisp/international/mule-cmds.el (ucs-names): Add a "LAMBDA"
completion variant for every "LAMDA" name (bug#30513).

lisp/international/mule-cmds.el

index 02dacaf0a282de772e770a94dddd3971892d6eb0..e49d1fa91e0b558f18811c57e7a244f9f65973f3 100644 (file)
@@ -3010,6 +3010,15 @@ on encoding."
                ;; higher code, so it gets pushed later!
                (if new-name (puthash new-name c names))
                (if old-name (puthash old-name c names))
+                ;; Unicode uses the spelling "lamda" in character
+                ;; names, instead of "lambda", due to "preferences
+                ;; expressed by the Greek National Body" (Bug#30513).
+                ;; Some characters have an old-name with the "lambda"
+                ;; 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))
+                  (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
         ;; doesn't have a new name and whose old-name is shadowed by a newer