summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-07-25 21:01:00 -0400
committerKyle Meyer <kyle@kyleam.com>2016-07-25 21:01:00 -0400
commitfc71c376546ed01060200de91d007f2a179bc601 (patch)
tree5ec5878d7a6eec8e516614bd11795920c398e662
parent32ab80807923682b6cdaa897b0ee02c1defa86c5 (diff)
downloadbog-fc71c376546ed01060200de91d007f2a179bc601.tar.gz
bog-file-secondary-name: Use period instead of hyphen
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).
-rw-r--r--NEWS5
-rw-r--r--bog.el12
2 files changed, 14 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 1f1a63b..544b932 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,11 @@ Bog NEWS -- history of user-visible changes -*- mode: org; -*-
make it easier to use Bog commands on citekeys that use Pandoc's
@citekey format.
+** Other changes
+
+- The default value for ~bog-file-secondary-name~ has been changed
+ from "-supplement" to ".supplement".
+
* v1.2.0
** New features
diff --git a/bog.el b/bog.el
index 0bcc29a..4c5ae25 100644
--- a/bog.el
+++ b/bog.el
@@ -187,13 +187,19 @@ arguments and return the name of the final file. Currently the
only built-in function is `bog-file-ask-on-conflict'."
:type 'function)
-(defcustom bog-file-secondary-name "-supplement"
+(defcustom bog-file-secondary-name ".supplement"
"Modification to make to file name on renaming confict.
+
If <citekey>.<ext> already exists, `bog-file-ask-on-conflict'
prompts for another name.
<citekey>`bog-file-secondary-name'.<ext> is the default value for
-the prompt."
- :type 'string)
+the prompt.
+
+For `bog-list-orphan-files' to work correctly, the first
+character should be a non-word character according to
+`bog-citekey-syntax-table'."
+ :type 'string
+ :package-version '(bog . "1.3.0"))
(defcustom bog-web-search-url
"http://scholar.google.com/scholar?q=%s"