diff options
| author | John Wiegley | 2005-01-21 10:26:26 +0000 |
|---|---|---|
| committer | John Wiegley | 2005-01-21 10:26:26 +0000 |
| commit | 2ff1dec97facba8512f1b731f8c91a5b833117a8 (patch) | |
| tree | 7d04058e5a28fe96c872425c163487543a484bbb | |
| parent | eee141ce6922778f818abd153b728c7b15832b5c (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/pcomplete.el | 8 |
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 @@ | |||
| 1 | 2005-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 | |||
| 1 | 2005-01-20 Jay Belanger <belanger@truman.edu> | 6 | 2005-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) |