From: Peter Povinec <ppovinec@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Tiny patch for org-agenda.el
Date: Tue, 16 Feb 2010 23:59:50 +0000 (UTC) [thread overview]
Message-ID: <loom.20100217T004446-223@post.gmane.org> (raw)
Hi Carsten,
I found that org-search-view doesn't allow one to search only within headlines
for individual words unless org-agenda-search-view-search-words-only is set.
This appears to be due to a bug in the string argument processing which the
following tiny patch rectifies.
Thanks,
--Peter
Changelog entry:
2010-02-16 Peter Povinec <ppovinec@gmail.com>
* org-agenda.el (org-search-view): Need to check 'words', not 'string', to
determine if individual word matching is requested.
Patch (the original file is from org-6.34c):
*** org-agenda.el Tue Feb 16 15:54:53 2010
--- org-agenda.new.el Tue Feb 16 15:53:39 2010
***************
*** 3322,3328 ****
(setq full-words t
words (substring words 1)))
(if (or org-agenda-search-view-always-boolean
! (member (string-to-char string) '(?- ?+ ?\{)))
(setq boolean t))
(setq words (org-split-string words))
(setq org-agenda-last-search-view-search-was-boolean boolean)
--- 3322,3328 ----
(setq full-words t
words (substring words 1)))
(if (or org-agenda-search-view-always-boolean
! (member (string-to-char words) '(?- ?+ ?\{)))
(setq boolean t))
(setq words (org-split-string words))
(setq org-agenda-last-search-view-search-was-boolean boolean)
next reply other threads:[~2010-02-17 0:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 23:59 Peter Povinec [this message]
2010-02-17 7:27 ` [PATCH] Tiny patch for org-agenda.el Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20100217T004446-223@post.gmane.org \
--to=ppovinec@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.