]> git.eshelyaron.com Git - emacs.git/commitdiff
(disabled-command-hook): Use eq to compare elts
authorRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 02:58:48 +0000 (02:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 02:58:48 +0000 (02:58 +0000)
of this-command-keys.  Choose the appropriate kind of Meta.

lisp/novice.el

index 922746d1c4c03182614f57bf5c2a1290b99f6112..2c61715cefdaff7cc02fd474ddb8b36571851bf3 100644 (file)
   (let (char)
     (save-window-excursion
      (with-output-to-temp-buffer "*Help*"
-       (if (eq (aref (this-command-keys) 0) ?\M-x)
+       (if (eq (aref (this-command-keys) 0)
+              (if (stringp (this-command-keys))
+                  (aref "\M-x" 0)
+                ?\M-x))
           (princ "You have invoked the disabled command ")
         (princ "You have typed ")
         (princ (key-description (this-command-keys)))