From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Kan-Ru Chen <kanru@kanru.info>
Cc: ding@gnus.org
Subject: XEmacs breakage
Date: Wed, 21 Sep 2011 16:46:03 +0200 [thread overview]
Message-ID: <m3aa9y9cno.fsf@stories.gnus.org> (raw)
The following patch makes Gnus on XEmacs break. Can you suggest a way
to do this without using `read-key-sequence-vector', which doesn't exist
on XEmacs?
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)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
reply other threads:[~2011-09-21 14:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3aa9y9cno.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.org \
--cc=kanru@kanru.info \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).