emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7717778: Revert "Remove leftover from previous elec


From: João Távora
Subject: [Emacs-diffs] master 7717778: Revert "Remove leftover from previous electric-layout-rules API"
Date: Fri, 18 Jan 2019 17:29:41 -0500 (EST)

branch: master
commit 7717778e8b1a04c51e49a15481257ef0ae385d62
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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 e2f9f70..f2061c2 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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]