emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] Tiny patch for org-agenda.el


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] Tiny patch for org-agenda.el
Date: Wed, 17 Feb 2010 08:27:28 +0100

Indeed, thanks for the patch, I have applied it.

- Carsten

On Feb 17, 2010, at 12:59 AM, Peter Povinec wrote:

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)







_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]