From: Robert Goldman <firstname.lastname@example.org>
To: Org Mode <email@example.com>
Subject: Fix for bug in org-capture
Date: Mon, 15 Apr 2013 17:14:59 -0500 [thread overview]
Message-ID: <516C7BE3.firstname.lastname@example.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
I tried to make two submenus to my org-capture templates: a prefix key
"t" (for TODO) and a prefix key "T" (for today's TODO).
When I tried to use them, the "T" key did not appear and was not accepted.
Looking more deeply, it appears that it was filtered out by a mistakenly
case-folding (or at least potentially case-folding) search in org-capture.
I am attaching a diff which has the two line fix for this bug.
[-- Attachment #2: org-capture.patch --]
[-- Type: text/plain, Size: 616 bytes --]
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index d8e62a1..861d640 100644
@@ -1431,7 +1431,8 @@ only the bare key is returned."
(insert prefix "[" dkey "]" "..." " " ddesc "..." "\n")
;; Skip keys which are below this prefix
(setq re (concat "\\`" (regexp-quote dkey)))
- (while (and tbl (string-match re (caar tbl))) (pop tbl)))
+ (let ((case-fold-search nil))
+ (while (and tbl (string-match re (caar tbl))) (pop tbl))))
((= 2 (length (car tbl)))
;; Not yet a usable description, skip it
next reply other threads:[~2013-04-15 22:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 22:14 Robert Goldman [this message]
2013-04-16 7:29 ` Fix for bug in org-capture Bastien
2013-04-16 16:06 ` Robert Goldman
2013-04-16 16:27 ` Bastien
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).