aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2005-01-21 10:26:26 +0000
committerJohn Wiegley2005-01-21 10:26:26 +0000
commit2ff1dec97facba8512f1b731f8c91a5b833117a8 (patch)
tree7d04058e5a28fe96c872425c163487543a484bbb
parenteee141ce6922778f818abd153b728c7b15832b5c (diff)
downloademacs-2ff1dec97facba8512f1b731f8c91a5b833117a8.tar.gz
emacs-2ff1dec97facba8512f1b731f8c91a5b833117a8.zip
2005-01-21 Ren�yllingstad <listmailxemacs@kyllingstad.com>
* pcomplete.el: define pcomplete-read-event instead of read-event, since it's not a complete read-event implementation
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/pcomplete.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d000ba48a7c..b78aa00b925 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-01-21 Ren,Ai(B Kyllingstad <listmailxemacs@kyllingstad.com>
2
3 * pcomplete.el: define pcomplete-read-event instead of read-event,
4 since it's not a complete read-event implementation
5
12005-01-20 Jay Belanger <belanger@truman.edu> 62005-01-20 Jay Belanger <belanger@truman.edu>
2 7
3 * calc/calc-ext.el (calc-fancy-prefix-other-key): Set prefix arg 8 * calc/calc-ext.el (calc-fancy-prefix-other-key): Set prefix arg
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index f4b796dd1a7..b01bef39664 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -946,8 +946,10 @@ generate the completions list. This means that the hook
946(unless (fboundp 'event-matches-key-specifier-p) 946(unless (fboundp 'event-matches-key-specifier-p)
947 (defalias 'event-matches-key-specifier-p 'eq)) 947 (defalias 'event-matches-key-specifier-p 'eq))
948 948
949(unless (fboundp 'read-event) 949(if (fboundp 'read-event)
950 (defsubst read-event (&optional prompt) 950 (defsubst pcomplete-read-event (&optional prompt)
951 (read-event prompt))
952 (defsubst pcomplete-read-event (&optional prompt)
951 (aref (read-key-sequence prompt) 0))) 953 (aref (read-key-sequence prompt) 0)))
952 954
953(unless (fboundp 'event-basic-type) 955(unless (fboundp 'event-basic-type)
@@ -969,7 +971,7 @@ Typing SPC flushes the help buffer."
969 (prog1 971 (prog1
970 (catch 'done 972 (catch 'done
971 (while (with-current-buffer (get-buffer "*Completions*") 973 (while (with-current-buffer (get-buffer "*Completions*")
972 (setq event (read-event))) 974 (setq event (pcomplete-read-event)))
973 (cond 975 (cond
974 ((event-matches-key-specifier-p event ? ) 976 ((event-matches-key-specifier-p event ? )
975 (set-window-configuration pcomplete-last-window-config) 977 (set-window-configuration pcomplete-last-window-config)