From mboxrd@z Thu Jan 1 00:00:00 1970 From: No Wayman 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 Message-ID: <877e171ayo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41688) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixfO7-0001x3-ED for emacs-orgmode@gnu.org; Fri, 31 Jan 2020 18:07:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixfO6-0001zF-87 for emacs-orgmode@gnu.org; Fri, 31 Jan 2020 18:07:47 -0500 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:35262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixfO6-0001x9-1r for emacs-orgmode@gnu.org; Fri, 31 Jan 2020 18:07:46 -0500 Received: by mail-qk1-x730.google.com with SMTP id q15so8325247qki.2 for ; Fri, 31 Jan 2020 15:07:45 -0800 (PST) Received: from arch (c-69-141-147-3.hsd1.nj.comcast.net. [69.141.147.3]) by smtp.gmail.com with ESMTPSA id 11sm5183663qko.76.2020.01.31.15.07.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 15:07:44 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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/)