Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
* .github/workflows/test.yml: New file.
* .travis.yml: Delete file.
|
|
|
|
* bog.el: Update copyright years.
(bog--fold-show-context): New compatibility shim for
org-show-context, deprecated alias of org-fold-show-context new in
Org 9.6 / Emacs 29.
(bog-goto-citekey-heading-in-notes, bog-next-non-heading-citekey)
(bog-previous-non-heading-citekey): Use it in place of
org-show-context.
|
|
|
|
What will become Emacs 29 has obsoleted and no longer preloads
autoload.el, which defines update-file-autoloads.
* Makefile (bog-autoloads.el): When available, prefer the new
loaddefs-generate over update-file-autoloads.
|
|
|
|
* bog.el (bog-list-orphan-citekeys): Inform user when there are no
orphan citekeys, rather than popping up an empty buffer. Remove
newline at BOB.
(bog-list-duplicate-heading-citekeys): End buffer on a new line.
(bog-list-orphan-files): Remove newline at BOB.
(bog-list-orphan-bibs): Move newline at BOB to EOB.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
The last Travis run didn't get out of the setup phase:
https://travis-ci.org/github/kyleam/bog/builds/679436803
This updated .travis.yml is modified from Magit-annex's, which was
modified from Magit's.
Note that this goes from testing just Emacs 24 to testing the latest
Emacs release (26.3) and master. We could of course do more---in
terms of both Emacs and Org versions---but, given the currently
dormant state of this project, two runs with different Emacs versions
and their built-in Orgs will do.
|
|
There are two problems with these links: (1) the web Gmane interface
has of course been down a long time and (2) they use article numbers
that are specific for and tied to the Gmane NNTP service.
Replace those links with ones to <https://yhetil.org/orgmode>. That
host happens to be up right now, and, _when_ it goes down, people at
least have a message-id to chase.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|