From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Boolean word/regexp search problem Date: Fri, 27 Nov 2009 12:18:44 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NE4T7-000797-C6 for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 12:18:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NE4T2-00077E-Mg for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 12:18:52 -0500 Received: from [199.232.76.173] (port=37314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NE4T2-00077B-KQ for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 12:18:48 -0500 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:58831) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NE4T2-0006dc-Du for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 12:18:48 -0500 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 8B2EBC1838 for ; Fri, 27 Nov 2009 12:18:46 -0500 (EST) Received: from macbook.local (h-68-165-57-53.chcgilgm.dynamic.covad.net [68.165.57.53]) by mail.messagingengine.com (Postfix) with ESMTPSA id EC07D448F23 for ; Fri, 27 Nov 2009 12:18:45 -0500 (EST) 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: Org Mode The word/regexp agenda search to work with more than one word or regexp unless the first word or regexp is also preceded by a "+" or "-". Take the following example. --8<---------------cut here---------------start------------->8--- * Org-mode Org mode is a major mode for Emacs written by Carsten Dominik. --8<---------------cut here---------------end--------------->8--- Let's say I search for Emacs with "C-a s [RET] Emacs". So far, so good: this item appears in the results. But let's say I want to narrow down the search. When I press "[" to add a search term, I see the following prompt in the minibuffer: [+-]Word/{Regexp} ...: Emacs + If I complete the prompt as given ("Emacs +Carsten"), there are no results. The search only succeeds if I add a "+" in front of Emacs as well, i.e., "+Emacs +Carsten". The same behavior occurs with exclusion ("-") and with the regexp search (i.e., brackets). Two questions: 1) Do boolean word/regexp searches require a "+" or "-" symbol before the first word/regexp? If so, this is a bit confusing, since tag and property searches do not require an initial symbol. (E.g., "emacs+orgmode" works as a tag search.) 2) If boolean word/regexp do require an initial "+" or "-", could the prompt after pressing "[" or "]" or "{" or "}" in the search results buffer be amended to add a plus in front of the first search term? Here is the relevant portion of the manual: ,----[10.5 Commands in the agenda buffer] | `[ ] { }' | | in search view | add new search words (`[' and `]') or new regular expressions | (`{' and `}') to the query string. The opening bracket/brace | will add a positive search term prefixed by `+', indicating | that this search term must occur/match in the entry. The | closing bracket/brace will add a negative search term which | must not occur/match in the entry for it to be selected. `---- Thanks, Matt