From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Povinec Subject: [PATCH] Tiny patch for org-agenda.el Date: Tue, 16 Feb 2010 23:59:50 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhXPf-0004kQ-OO for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 19:05:07 -0500 Received: from [140.186.70.92] (port=40542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhXPe-0004jF-Pi for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 19:05:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhXPd-0006Ui-Vw for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 19:05:06 -0500 Received: from lo.gmane.org ([80.91.229.12]:55323) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhXPd-0006UY-QI for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 19:05:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NhXPb-0003nd-Lc for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 01:05:03 +0100 Received: from inet-bc01-o.oracle.com ([148.87.1.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 01:05:03 +0100 Received: from ppovinec by inet-bc01-o.oracle.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 01:05:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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 * 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)