summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-25Use lexical-binding and byte-compile testsBasil L. Contovounesios
* 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.
2020-06-25Makefile: Allow specifying Emacs version with varBasil L. Contovounesios
2020-04-25travis: Update stale setupKyle Meyer
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.
2020-04-25README: Replace Gmane links with message-id-based onesKyle Meyer
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.
2018-08-15Merge pull request #10 from basil-conto/blc/httpsKyle Meyer
2018-08-15Merge pull request #9 from basil-conto/blc/file-errorKyle Meyer
2018-08-15Use HTTPS URLs where applicableBasil L. Contovounesios
2018-08-15bog.el: Fix typos in docsBasil L. Contovounesios
Also add trailing space to y-or-n-p prompt as per its docstring.
2018-08-15bog-file-ask-on-conflict: Narrow error conditionBasil L. Contovounesios
Be more specific about the type of error that can be handled.
2018-08-15README.org: Fix non-existent symbol namesBasil L. Contovounesios
2018-01-13Bump versionv1.3.1Kyle Meyer
2018-01-12Typo fix and minor aestheticsBasil L. Contovounesios
Suggest the equivalent 'infty in place of nil for bibtex-autokey-titleword-length as per the variable's custom-type.
2018-01-12Minor optimisationsBasil L. Contovounesios
2018-01-12Touch-up regexpsBasil L. Contovounesios
Fix quoting; remove redundancies; and prefer bos and eos to bol and eol anchors, respectively, for filenames.
2017-11-26Merge branch 'bc/readme' [#6]Kyle Meyer
2017-11-26README.org: Quote bog-mode as a functionBasil L. Contovounesios
2017-11-26README.org: Fix grammarBasil L. Contovounesios
2017-11-26README.org: Update MELPA URLBasil L. Contovounesios
2016-11-09Bump versionv1.3.0Kyle Meyer
2016-10-24Add bog-clean-bib-hookKyle Meyer
2016-07-25bog-file-secondary-name: Use period instead of hyphenKyle Meyer
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).
2016-06-14bog-select-citekey: Add citekey history listKyle Meyer
2016-06-14bog-select-citekey: Require matchKyle Meyer
2016-06-13bog-file-ask-on-conflict: Remove bogus read-string argumentKyle Meyer
2016-05-23Add bog-citekey-format-allow-at optionKyle Meyer
2016-05-23bog-citekey-format: Clarify allowed boundariesKyle Meyer
2016-05-23Add quote to docstring variableKyle Meyer
2016-05-23bog-citekey-syntax-table: Inherit text-mode-syntax-tableKyle Meyer
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.
2016-05-23Use bog-fontify-non-heading-citekeys in non-Org buffersKyle Meyer
2016-05-23Specify syntax table around all citekey regexp usesKyle Meyer
2016-05-17Bump versionv1.2.0Kyle Meyer
2016-05-17Don't pass keymap to define-minor-modeKyle Meyer
2016-03-07Replace org-iread-file-name with read-file-nameKyle Meyer
The development version of Org (what will be 9.0) has marked org-iread-file-name as obsolete.
2016-03-06bog-citekey-tree-to-indirect-buffer: Use base-bufferKyle Meyer
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.
2016-03-06bog-citekey-tree-to-indirect-buffer: CosmeticsKyle Meyer
2016-03-06Add command to list orphan bibsKyle Meyer
2016-03-06Make cl-set-difference compatibility functionKyle Meyer
2016-03-04bog-clear-citekey-cache: Add all option to promptKyle Meyer
2016-03-04bog-clear-citekey-cache: Abort if cache is emptyKyle Meyer
2016-01-24Replace org-icompleting-read with completing-readKyle Meyer
The development version of Org (what will be 9.0) has marked org-icompleting-read as obsolete.
2016-01-24Add bog-dired-jump-to-citekey-file commandKyle Meyer
2016-01-24bog-combined-bib-ignore-not-found: Add package-versionKyle Meyer
2016-01-24Remove unneeded define-minor-mode keywordsKyle Meyer
2016-01-24Rely on implicit group for defcustom'sKyle Meyer
2016-01-24Explicitly bind nil-value for case-fold-searchKyle Meyer
2016-01-24Move a few functionsKyle Meyer
2016-01-23bog--with-citekey-cache: Use uninterned symbolKyle Meyer
2016-01-22Don't assume font-lock-ensure is definedKyle Meyer
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.
2016-01-20bog-list-orphan-citekeys: Fix sorting in Emacs 25Kyle Meyer
2016-01-20bog-clear-citekey-cache: Fix indentationKyle Meyer