Skip to content

Commit

Permalink
2005-01-21 René Kyllingstad <listmailxemacs@kyllingstad.com>
Browse files Browse the repository at this point in the history
	* pcomplete.el: define pcomplete-read-event instead of read-event,
	since it's not a complete read-event implementation
  • Loading branch information
jwiegley committed Jan 21, 2005
1 parent 4b4e101 commit 9758a03
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pcomplete.el
Expand Up @@ -946,8 +946,10 @@ generate the completions list. This means that the hook
(unless (fboundp 'event-matches-key-specifier-p)
(defalias 'event-matches-key-specifier-p 'eq))

(unless (fboundp 'read-event)
(defsubst read-event (&optional prompt)
(if (fboundp 'read-event)
(defsubst pcomplete-read-event (&optional prompt)
(read-event prompt))
(defsubst pcomplete-read-event (&optional prompt)
(aref (read-key-sequence prompt) 0)))

(unless (fboundp 'event-basic-type)
Expand All @@ -969,7 +971,7 @@ Typing SPC flushes the help buffer."
(prog1
(catch 'done
(while (with-current-buffer (get-buffer "*Completions*")
(setq event (read-event)))
(setq event (pcomplete-read-event)))
(cond
((event-matches-key-specifier-p event ? )
(set-window-configuration pcomplete-last-window-config)
Expand Down

0 comments on commit 9758a03

Please sign in to comment.