]> code.delx.au - gnu-emacs/blobdiff - lisp/play/morse.el
* lisp/play/morse.el (denato-region): Handle varying case.
[gnu-emacs] / lisp / play / morse.el
index b88f1b264cbf0b27106b263b240ef506a6b5da62..fa0887c0ac5adaab7a75cb009d48040f7d9f81bb 100644 (file)
@@ -231,7 +231,7 @@ Geospatial-Intelligence Agency at http://www.nga.mil/")
        (if (null (looking-at "[a-z]+"))
            (forward-char 1)
          (setq str (buffer-substring (match-beginning 0) (match-end 0)))
-         (if (null (setq nato (rassoc str nato-alphabet)))
+         (if (null (setq nato (rassoc (capitalize str) nato-alphabet)))
              (goto-char (match-end 0))
            (replace-match
                  (if (string-equal "(" (car nato))