]> git.eshelyaron.com Git - emacs.git/commitdiff
(completion-before-command): Don't call get on a non-symbol.
authorRichard M. Stallman <rms@gnu.org>
Thu, 1 Sep 1994 06:12:38 +0000 (06:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 1 Sep 1994 06:12:38 +0000 (06:12 +0000)
lisp/completion.el

index eabc2f0b850c96a9fbde2c03a3fbbdf34601c764..8964556f04ed1d9883e5b8401536c48b4f1c073c 100644 (file)
@@ -2540,7 +2540,8 @@ TYPE is the type of the wrapper to be added.  Can be :before or :under."
       (cmpl-statistics-block (record-complete-failed))))
 
 (defun completion-before-command ()
-  (funcall (or (get this-command 'completion-function)
+  (funcall (or (and (symbolp this-command)
+                   (get this-command 'completion-function))
               'use-completion-under-or-before-point)))
 (add-hook 'pre-command-hook 'completion-before-command)