From: João Távora Date: Fri, 18 Jan 2019 21:54:48 +0000 (+0000) Subject: Remove leftover from previous electric-layout-rules API X-Git-Tag: emacs-27.0.90~3788 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=942dad2b519cabddf6caea7641517507dc06944b;p=emacs.git Remove leftover from previous electric-layout-rules API An element of electric-layout-rules is either a function or a pair (CHAR . WHERE), and WHERE can't be a function anymore. * lisp/electric.el (electric-layout-post-self-insert-function-1): Remove leftover line. --- diff --git a/lisp/electric.el b/lisp/electric.el index e7ebdf5739d..4791f8e18c4 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -415,7 +415,6 @@ If multiple rules match, only first one is executed.") ;; Not in a string or comment. (not (nth 8 (save-excursion (syntax-ppss pos))))) (goto-char pos) - (when (functionp rule) (setq rule (funcall rule))) (dolist (sym (if (symbolp rule) (list rule) rule)) (let* ((nl-after (lambda ()