# HG changeset patch # User Richard M. Stallman # Date 778399958 0 # Node ID 0107ce4d48af6ddd2b7ba433a593221dc81f4f68 # Parent d41510c69a3f913fc9951150ee62a585c0a6c024 (completion-before-command): Don't call get on a non-symbol. diff -r d41510c69a3f -r 0107ce4d48af lisp/completion.el --- a/lisp/completion.el Thu Sep 01 04:47:05 1994 +0000 +++ b/lisp/completion.el Thu Sep 01 06:12:38 1994 +0000 @@ -2540,7 +2540,8 @@ (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)