diff options
author | João Távora <joaotavora@gmail.com> | 2019-01-18 22:26:29 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2019-01-18 22:29:02 +0000 |
commit | 7717778e8b1a04c51e49a15481257ef0ae385d62 (patch) | |
tree | ca2bb9a0302689a224473713f5fc2b32692281d1 /lisp/electric.el | |
parent | 78725e49d2802d907c5b54417e6a91ed868c7c6e (diff) | |
download | emacs-7717778e8b1a04c51e49a15481257ef0ae385d62.tar.gz |
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.
Diffstat (limited to 'lisp/electric.el')
-rw-r--r-- | lisp/electric.el | 1 |
1 files changed, 1 insertions, 0 deletions
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 () |