]> git.eshelyaron.com Git - emacs.git/commit
Tweak electric-layout-mode's API again after Stefan's comments
authorJoão Távora <joaotavora@gmail.com>
Fri, 28 Dec 2018 21:53:12 +0000 (21:53 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 28 Dec 2018 21:53:12 +0000 (21:53 +0000)
commitba97dad7c427f3d6c1861b0ff1e139e7a3226bc0
treedc8f1720c5b062448317140ba6d3834984bd9a06
parent3e38509f9ae7c3e9a20c02fb40ab423028e60b3f
Tweak electric-layout-mode's API again after Stefan's comments

* lisp/electric.el (electric-layout-rules): Tweak docstring.
(electric-layout-post-self-insert-function-1): MATCHER is always a
char.  Call function with last-command-event.

* test/lisp/electric-tests.el (electric-pair-mode-newline-between-parens)
(electric-layout-mode-newline-between-parens-without-e-p-m): Don't
pass a name to the ERT test buffer.
(electric-layout-mode-newline-between-parens-without-e-p-m-2): New test.
lisp/electric.el
test/lisp/electric-tests.el