summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2020-06-25 15:06:51 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2020-06-25 15:07:15 +0100
commit6184e74ca8256d322276b50b0a4ea2ab072bb83a (patch)
tree74135975fdce8bc5dcb48a9014a167725b7645c4 /example
parentfbaa4793b183cb0fdac6404125e9024fc2cd4670 (diff)
downloadbog-6184e74ca8256d322276b50b0a4ea2ab072bb83a.tar.gz
Use lexical-binding and byte-compile tests
* Makefile (test, clean): Byte-compile test suite to catch more errors. * bog-tests.el: Use lexical-binding. Remove the need for cl-lib by replacing single cl-gensym with make-symbol. Declare 'citekey' as a special variable. Add footer line. (bog-tests-with-temp-dir): Replace cl-gensym with make-symbol. (bog-tests-with-temp-text): Allow instrumenting for debugging. Evaluate arguments only once. Don't assume 'citekey' is bound. Pass non-nil FIXEDCASE and LITERAL arguments to replace-match. Simplify with buffer rather than string manipulation. (bog-file-citekeys/multiple-variants): Fix typo caught by byte-compilation. * bog.el: Use lexical-binding. Quote function symbols as such. (bog--with-citekey-cache): Allow instrumenting for debugging. Replace cl-gensym with make-symbol. (bog-selection-method): Simplify and reindent. (bog--agenda-map): New keymap. (bog--with-search-lprops): Use it instead of generating it on the fly. Allow instrumenting for debugging. Don't use org-let which calls eval without lexical-binding. Bind uninterned symbol around body. Use unwind-protect to ensure org-lprops are restored. (bog-search-notes, bog-agenda-redo): Unquote body passed to bog--with-search-lprops now that it no longer uses org-let. (bog-command-map): Make docstring consistent with that of other keymaps.
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions