From 7717778e8b1a04c51e49a15481257ef0ae385d62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 18 Jan 2019 22:26:29 +0000 Subject: [PATCH] Revert "Remove leftover from previous electric-layout-rules API" This is a backward-incompatible change, and removing it isn't really necessary. This reverts commit 942dad2b519cabddf6caea7641517507dc06944b. --- lisp/electric.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/electric.el b/lisp/electric.el index e2f9f707436..f2061c2f52c 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -414,6 +414,7 @@ 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