|
From: | No Wayman |
Subject: | Bug: org-capture: %L causes arg out of range error for empty string annotation [9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)] |
Date: | Fri, 25 Sep 2020 03:34:04 -0400 |
User-agent: | mu4e 1.5.5; emacs 28.0.50 |
d06aa486d6c3163b6ef6e9ab665117bd93dff34a introduces the following in
`org-capture-fill-template':
(v-L (if (or v-a (string-match l-re v-a)) (replace-match "\\1" nil nil v-a) v-a))
If `v-a' is an empty string, the call to `replace-match' throws an Args out of range error. Similar assignments in that are of the code use an `and' comparison to guard against this, so perhaps it should be:
(v-L (if (and v-a (string-match l-re v-a)) (replace-match "\\1" nil nil v-a) v-a))
Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.3)
of 2020-09-19Package: Org mode version 9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)
[Prev in Thread] | Current Thread | [Next in Thread] |