emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: No Wayman <iarchivedmywholelife@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-mks case insensitive search breaks org-capture-templates groups [9.3.1 (release_9.3.1-108-gebf8b3 @ /home/n/.emacs.d/straight/build/org-plus-contrib/)]
Date: Fri, 31 Jan 2020 18:07:43 -0500	[thread overview]
Message-ID: <877e171ayo.fsf@gmail.com> (raw)


Remember to cover the basics, that is, what you expected to happen 
and
what in fact did happen.  You don't know how to make a good 
report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Considering the following org-capture-templates:
#+begin_src emacs-lisp
(let ((org-capture-templates '(("l"  "Lower case")
                               ("l1" "Lower case test" plain (file 
                               "") nil)
                               ("l2" "Lower case test" plain (file 
                               "") nil)
                               ("L"  "Upper case")
                               ("Lt" "Upper case test" plain (file 
                               "") nil))))
  (org-capture))
#+end_src

I would expect hitting "l" from the *Org Select* buffer would only 
show the templates prefixed with "l".
However all templates are in the sub-menu.

I believe the cause is that case-fold-search is not temporarily 
set to nil in the org-mks function.
This small patch results in the correct behavior for me:

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 7545e60b0..cc3a8be12 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -414,6 +414,7 @@ alist with (\"key\" \"description\") entries. 
When one of these
 is selected, only the bare key is returned."
   (save-window-excursion
     (let ((inhibit-quit t)
+          (case-fold-search nil)
 	  (buffer (org-switch-to-buffer-other-window "*Org Select*"))
 	  (prompt (or prompt "Select: "))
 	  current)


Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X 
toolkit, cairo version 1.17.3, Xaw3d scroll bars)
 of 2020-01-17
Package: Org mode version 9.3.1 (release_9.3.1-108-gebf8b3 @ 
/home/n/.emacs.d/straight/build/org-plus-contrib/)

             reply	other threads:[~2020-01-31 23:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-31 23:07 No Wayman [this message]
2020-02-01  9:16 ` Bug: org-mks case insensitive search breaks org-capture-templates groups [9.3.1 (release_9.3.1-108-gebf8b3 @ /home/n/.emacs.d/straight/build/org-plus-contrib/)] Bastien

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877e171ayo.fsf@gmail.com \
    --to=iarchivedmywholelife@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).