(Electric-command-loop): Use eq to compare events.
authorRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 03:48:37 +0000 (03:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 03:48:37 +0000 (03:48 +0000)
lisp/electric.el

index d0aa6f8..39d690f 100644 (file)
@@ -58,7 +58,7 @@
            this-command (key-binding cmd)
            cmd this-command)
       (if (or (prog1 quit-flag (setq quit-flag nil))
-             (= last-input-char ?\C-g))
+             (eq last-input-char ?\C-g))
          (progn (setq unread-command-events nil
                       prefix-arg nil)
                 ;; If it wasn't cancelling a prefix character, then quit.
@@ -74,7 +74,7 @@
              (progn (command-execute cmd)
                     (setq last-command this-command)
                     (if (or (prog1 quit-flag (setq quit-flag nil))
-                            (= last-input-char ?\C-g))
+                            (eq last-input-char ?\C-g))
                         (progn (setq unread-command-events nil)
                                (if (not inhibit-quit)
                                    (progn (ding)