From fc71c376546ed01060200de91d007f2a179bc601 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 25 Jul 2016 21:01:00 -0400 Subject: 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). --- NEWS | 5 +++++ bog.el | 12 +++++++++--- 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 . already exists, `bog-file-ask-on-conflict' prompts for another name. `bog-file-secondary-name'. 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" -- cgit v1.2.3