Age | Commit message (Collapse) | Author |
|
|
|
Using defalias avoids byte-compiler warnings and is less intrusive.
|
|
|
|
Fix indentation and flatten the progn in bog-mode.
|
|
* 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.
|
|
|
|
|
|
|
|
Also add trailing space to y-or-n-p prompt as per its docstring.
|
|
Be more specific about the type of error that can be handled.
|
|
|
|
Suggest the equivalent 'infty in place of nil for
bibtex-autokey-titleword-length as per the variable's custom-type.
|
|
|
|
Fix quoting; remove redundancies; and prefer bos and eos to bol and
eol anchors, respectively, for filenames.
|
|
|
|
|
|
A hyphen is considered a word character according to
bog-citekey-syntax-table, which makes bog-list-orphan-files falsely
recognize secondary files as orphans.
This has been an issue since 0e685a3 (Specify syntax table around all
citekey regexp uses, 2016-05-23).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Org mode makes its syntax table modifications in the body of the
define-derived-mode call. As a result, if bog-citekey-syntax-table
inherits org-mode-syntax-table, bog-citekey-syntax-table will be
different depending on whether the function org-mode has been
called (which in most cases corresponds to whether an Org buffer has
been visited). To avoid this, use text-mode-syntax-table directly,
mirroring Org's modifications.
|
|
|
|
|
|
|
|
|
|
The development version of Org (what will be 9.0) has marked
org-iread-file-name as obsolete.
|
|
org-tree-to-indirect-buffer fails if it is called from the indirect
buffer create by the previous org-tree-to-indirect-buffer call. Using
the base-buffer to find the citekey heading avoids this error.
Even if the error is fixed on Org's side, this change has the advantage
of preventing the name from appending the indirect buffer name rather
than the original note buffer's names.
|
|
|
|
|
|
|
|
|
|
|
|
The development version of Org (what will be 9.0) has marked
org-icompleting-read as obsolete.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #5.
Also,
* Use font-lock-flush instead of font-lock-ensure, which wasn't removing
Bog-related highlighting when turning off bog-mode.
* Check that font-lock-mode is enabled before calling font-lock
function.
|
|
|
|
|
|
|
|
|
|
|
|
|