(ecomplete-display-matches): Use literals.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 14 Apr 2006 11:57:56 +0000 (11:57 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 14 Apr 2006 11:57:56 +0000 (11:57 +0000)
lisp/ChangeLog
lisp/ecomplete.el

index 25b1c96..afec384 100644 (file)
@@ -2,6 +2,7 @@
 
        * ecomplete.el (ecomplete-display-matches): Get highlightling
        right. 
+       (ecomplete-display-matches): Use literals.
 
        * message.el (message-display-abbrev): Small optimization.
 
index 665fde3..1c5eb57 100644 (file)
        (setq highlight (ecomplete-highlight-match-line matches line))
        (while (not (memq (setq command (read-event highlight)) '(? return)))
          (cond
-          ((eq command (aref (kbd "M-n") 0))
+          ((eq command ?\M-n)
            (setq line (min (1+ line) max-lines)))
-          ((eq command (aref (kbd "M-p") 0))
+          ((eq command ?\M-p)
            (setq line (max (1- line) 0))))
          (setq highlight (ecomplete-highlight-match-line matches line)))
        (when (eq command 'return)