emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Peter Povinec <ppovinec@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Tiny patch for org-agenda.el
Date: Wed, 17 Feb 2010 08:27:28 +0100	[thread overview]
Message-ID: <CD31CC8C-2194-40D6-8EC4-279A75C3466A@gmail.com> (raw)
In-Reply-To: <loom.20100217T004446-223@post.gmane.org>

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  <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)
>
>
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      reply	other threads:[~2010-02-17  7:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 23:59 [PATCH] Tiny patch for org-agenda.el Peter Povinec
2010-02-17  7:27 ` Carsten Dominik [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CD31CC8C-2194-40D6-8EC4-279A75C3466A@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ppovinec@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).