* [PATCH] * lisp/org.el (org-scan-tags): do not impose a value of case-fold-search on the user
@ 2013-06-21 8:48 Nicolas Richard
2013-06-27 14:35 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Richard @ 2013-06-21 8:48 UTC (permalink / raw)
To: emacs-orgmode
Hello,
when using org-contacts,
(let ((filename (make-temp-file "contacts" nil ".org")))
(with-temp-file filename
(insert "* Eva Luator\n:PROPERTIES:\n:EMAIL: eva@gmail.com.invalid\n:END:\n"))
(let ((org-contacts-files (list filename)))
(org-contacts "eva luator")))
doesn't list Eva Luator in the Contacts buffer, although
case-fold-search is set to t for me. I think it's an org-mode bug in
fact ; I suggest the following :
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Date: Wed, 5 Jun 2013 15:02:37 +0200
---
lisp/org.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 97773a0..da3e2f0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -13807,7 +13807,6 @@ headlines matching this string."
(abbreviate-file-name
(or (buffer-file-name (buffer-base-buffer))
(buffer-name (buffer-base-buffer)))))))
- (case-fold-search nil)
(org-map-continue-from nil)
lspos tags tags-list
(tags-alist (list (cons 0 org-file-tags)))
@@ -13820,7 +13819,8 @@ headlines matching this string."
(when (eq action 'sparse-tree)
(org-overview)
(org-remove-occur-highlights))
- (while (re-search-forward re nil t)
+ (while (let (case-fold-search)
+ (re-search-forward re nil t))
(setq org-map-continue-from nil)
(catch :skip
(setq todo (if (match-end 1) (org-match-string-no-properties 2))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] * lisp/org.el (org-scan-tags): do not impose a value of case-fold-search on the user
2013-06-21 8:48 [PATCH] * lisp/org.el (org-scan-tags): do not impose a value of case-fold-search on the user Nicolas Richard
@ 2013-06-27 14:35 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-06-27 14:35 UTC (permalink / raw)
To: Nicolas Richard; +Cc: emacs-orgmode
Hi Nicolas
Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:
> doesn't list Eva Luator in the Contacts buffer, although
> case-fold-search is set to t for me. I think it's an org-mode bug in
> fact ; I suggest the following :
Applied, thanks.
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-27 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 8:48 [PATCH] * lisp/org.el (org-scan-tags): do not impose a value of case-fold-search on the user Nicolas Richard
2013-06-27 14:35 ` Bastien
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).