]> git.eshelyaron.com Git - emacs.git/commitdiff
(pcomplete-read-event): One single definition, and not a defsubst.
authorRichard M. Stallman <rms@gnu.org>
Sun, 8 Apr 2007 13:47:33 +0000 (13:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 8 Apr 2007 13:47:33 +0000 (13:47 +0000)
lisp/pcomplete.el

index deeda45cf194c50192a4fb8c0ee5a290c8a4db68..c1da9fb9132cfc03596710a134dd4215d5f9d2e9 100644 (file)
@@ -946,10 +946,9 @@ generate the completions list.  This means that the hook
 (unless (fboundp 'event-matches-key-specifier-p)
   (defalias 'event-matches-key-specifier-p 'eq))
 
-(if (fboundp 'read-event)
-    (defsubst pcomplete-read-event (&optional prompt)
-      (read-event prompt))
-  (defsubst pcomplete-read-event (&optional prompt)
+(defun pcomplete-read-event (&optional prompt)
+  (if (fboundp 'read-event)
+      (read-event prompt)
     (aref (read-key-sequence prompt) 0)))
 
 (unless (fboundp 'event-basic-type)