diff options
| author | João Távora | 2019-01-18 21:54:48 +0000 |
|---|---|---|
| committer | João Távora | 2019-01-18 22:05:50 +0000 |
| commit | 942dad2b519cabddf6caea7641517507dc06944b (patch) | |
| tree | 6167a0217b30264004ce0a85b04d6b4aaa70e677 | |
| parent | 7818bcdd6cd6e2fbc0b0efb35d3bb6588752c5a4 (diff) | |
| download | emacs-942dad2b519cabddf6caea7641517507dc06944b.tar.gz emacs-942dad2b519cabddf6caea7641517507dc06944b.zip | |
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.
| -rw-r--r-- | lisp/electric.el | 1 |
1 files changed, 0 insertions, 1 deletions
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.") | |||
| 415 | ;; Not in a string or comment. | 415 | ;; Not in a string or comment. |
| 416 | (not (nth 8 (save-excursion (syntax-ppss pos))))) | 416 | (not (nth 8 (save-excursion (syntax-ppss pos))))) |
| 417 | (goto-char pos) | 417 | (goto-char pos) |
| 418 | (when (functionp rule) (setq rule (funcall rule))) | ||
| 419 | (dolist (sym (if (symbolp rule) (list rule) rule)) | 418 | (dolist (sym (if (symbolp rule) (list rule) rule)) |
| 420 | (let* ((nl-after | 419 | (let* ((nl-after |
| 421 | (lambda () | 420 | (lambda () |