[gnus git] branch master updated: n0-17-313-gda60987 =1= ecomplete.el: Intercept key sequence from terminal as well.
Julien Danjou <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via da609873e156b8991e02fb6d3fa3c8c74c29bced (commit)
from ecc30b232e39a91953ab90fdff842645a264cdc0 (commit)
- Log -----------------------------------------------------------------
commit da609873e156b8991e02fb6d3fa3c8c74c29bced
Author: Kan-Ru Chen <[email protected]>
Date: Tue Sep 13 20:43:29 2011 +0800
ecomplete.el: Intercept key sequence from terminal as well.
Signed-off-by: Julien Danjou <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cbbe2f3..e776c78 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-13 Kan-Ru Chen <[email protected]>
+
+ * ecomplete.el (ecomplete-display-matches): Intercept key sequence from
+ terminal as well.
+
2011-09-21 Katsumi Yamaoka <[email protected]>
* mm-view.el (mm-display-inline-fontify): Don't run doc-view-mode
diff --git a/lisp/ecomplete.el b/lisp/ecomplete.el
index 6a47b11..737c0db 100644
--- a/lisp/ecomplete.el
+++ b/lisp/ecomplete.el
@@ -123,14 +123,15 @@
(message "%s" matches)
nil)
(setq highlight (ecomplete-highlight-match-line matches line))
- (while (not (memq (setq command (read-event highlight)) '(? return)))
+ (while (not (member (setq command (read-key-sequence-vector highlight))
+ '([? ] [return] [?\r] [?\n] [?\C-g])))
(cond
- ((eq command ?\M-n)
+ ((member command '([27 ?n] [?\M-n]))
(setq line (min (1+ line) max-lines)))
- ((eq command ?\M-p)
+ ((member command '([27 ?p] [?\M-p]))
(setq line (max (1- line) 0))))
(setq highlight (ecomplete-highlight-match-line matches line)))
- (when (eq command 'return)
+ (when (member command '([return] [?\r] [?\n]))
(nth line (split-string matches "\n")))))))
(defun ecomplete-highlight-match-line (matches line)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/ecomplete.el | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project