]> git.eshelyaron.com Git - emacs.git/commit
Use lexical-binding in apropos.el and add tests
authorSimen Heggestøyl <simenheg@gmail.com>
Sat, 18 Apr 2020 16:36:49 +0000 (18:36 +0200)
committerSimen Heggestøyl <simenheg@gmail.com>
Sat, 18 Apr 2020 16:43:23 +0000 (18:43 +0200)
commit45d42f81621743a96f209102464432ef2f230b0f
treed2671b98e9455f85ff03449585260e50ac5bd813
parent4819bea6900348f923e0de58995ec41760993b6c
Use lexical-binding in apropos.el and add tests

* lisp/apropos.el: Use lexical-binding and remove redundant
:group args.
(apropos-words-to-regexp, apropos): Tweak docstrings.
(apropos-value-internal): Replace '(if x (progn y))' with
'(when x y)'.
(apropos-format-plist): Add docstring and replace '(if x (progn y))'
with '(when x y)'.

* test/lisp/apropos-tests.el: New file with tests for apropos.el.
lisp/apropos.el
test/lisp/apropos-tests.el [new file with mode: 0644]