summaryrefslogtreecommitdiff
path: root/bog.el
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 /bog.el
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).
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el12
1 files changed, 9 insertions, 3 deletions
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"