diff --git a/lisp/electric.el b/lisp/electric.el index 9610b4be22f..ed968d7c65e 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -198,8 +198,8 @@ relative order must be maintained within it." (setq-default post-self-insert-hook (sort (default-value 'post-self-insert-hook) #'(lambda (fn1 fn2) - (< (or (if (symbol fn1) (get fn1 'priority)) 0) - (or (if (symbol fn2) (get fn2 'priority)) 0)))))) + (< (or (if (symbolp fn1) (get fn1 'priority)) 0) + (or (if (symbolp fn2) (get fn2 'priority)) 0)))))) ;;; Electric indentation.