2005-01-21 Ren�yllingstad <listmailxemacs@kyllingstad.com>
authorJohn Wiegley <johnw@newartisans.com>
Fri, 21 Jan 2005 10:26:26 +0000 (10:26 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 21 Jan 2005 10:26:26 +0000 (10:26 +0000)
* pcomplete.el: define pcomplete-read-event instead of read-event,
since it's not a complete read-event implementation

lisp/ChangeLog
lisp/pcomplete.el

index d000ba4..b78aa00 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-21  Ren\e,Ai\e(B Kyllingstad  <listmailxemacs@kyllingstad.com>
+
+       * pcomplete.el: define pcomplete-read-event instead of read-event,
+       since it's not a complete read-event implementation
+
 2005-01-20  Jay Belanger  <belanger@truman.edu>
 
        * calc/calc-ext.el (calc-fancy-prefix-other-key): Set prefix arg
index f4b796d..b01bef3 100644 (file)
@@ -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)
@@ -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)