From 942dad2b519cabddf6caea7641517507dc06944b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 18 Jan 2019 21:54:48 +0000 Subject: [PATCH] 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. --- lisp/electric.el | 1 - 1 file changed, 1 deletion(-) 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 () -- 2.39.2