1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(completion-before-command): Don't call get on a non-symbol.

This commit is contained in:
Richard M. Stallman 1994-09-01 06:12:38 +00:00
parent ea50c23878
commit 76e91049fa

View 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)