branch: externals/denote-sequence commit 0662083388035fad1f4b04a911924fded55e1592 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add condition to denote-sequence-and-scheme-p to disambiguate number-only sequence --- denote-sequence.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/denote-sequence.el b/denote-sequence.el index 3afab1093d..481a7543b4 100644 --- a/denote-sequence.el +++ b/denote-sequence.el @@ -143,6 +143,10 @@ of numbers or letters. Produce an error if the sequencing scheme cannot be established." (cond + ((and (not partial) + (not (string-match-p "[[:alpha:]]" sequence)) + (eq denote-sequence-scheme 'numeric)) + (cons sequence 'numeric)) ((or (and partial (denote-sequence--alphanumeric-partial-p sequence)) (denote-sequence-alphanumeric-p sequence)) (cons sequence 'alphanumeric))