]> git.eshelyaron.com Git - emacs.git/commit
Use lexical-binding in tempo.el and add tests
authorFederico Tedin <federicotedin@gmail.com>
Tue, 14 May 2019 12:16:00 +0000 (09:16 -0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 21 May 2019 14:23:23 +0000 (15:23 +0100)
commiteb2e9a2ca29f7d5e3b97709e9eca14fa5556ac63
tree1cf8ff22d7dae507eb4ea9bb8fcb2165e2375791
parent5856512911488e40609be5685e64f9fb8cd395ad
Use lexical-binding in tempo.el and add tests

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00395.html
* lisp/tempo.el: Use lexical-binding.
(tempo-define-template): Expand documentation to mention
`tempo-user-elements'.
(tempo-local-tags, tempo-collection, tempo-dirty-collection)
(tempo-marks, tempo-match-finder): Define with defvar-local.
(tempo-named-insertions, tempo-region-start, tempo-region-stop): Make
them automatically buffer-local.
* test/lisp/tempo-tests.el: Add tests for tempo.el.
lisp/tempo.el
test/lisp/tempo-tests.el [new file with mode: 0644]