[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH] Tiny patch for org-agenda.el
From: |
Peter Povinec |
Subject: |
[Orgmode] [PATCH] Tiny patch for org-agenda.el |
Date: |
Tue, 16 Feb 2010 23:59:50 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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 <address@hidden>
* 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)
- [Orgmode] [PATCH] Tiny patch for org-agenda.el,
Peter Povinec <=