emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Sebold <csebold@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: org-map-entries broken?
Date: Mon, 19 Mar 2012 09:17:37 -0500	[thread overview]
Message-ID: <CAEons=Gw9ggNcg-tCft=QwR5Jr=ZPqLTD4HN6LwND1a+bcCN4A@mail.gmail.com> (raw)

I think this patch may have broken org-map-entries for me:

e0072f79137bbfabdf848da6865d8e4de776a549 is the first bad commit
commit e0072f79137bbfabdf848da6865d8e4de776a549
Author: David Maus <dmaus@ictsoc.de>
Date:   Sun Mar 18 18:38:50 2012 +0100

    Require one or more spaces (+) between keyword and headline

    * org.el (org-scan-tags): Require one or more spaces (+) between
    keyword and headline.

    Otherwise the re will match a line like:

    * TODO@ Foobar

    And assumes the @ to be part of the headline.

    This fixes a glitch reported by Simon Thum in

    > Hi all,
    > I have found some irritating behaviour, potentially a bug. I have a
    > block agenda which goes like:
    > tags-todo "@home&TODO=\"TODO\"
    > and it displays a certain org line that reads
    > **** TODO_ state triggers
    > Which is just a heading for dealing with TODO state triggers, and I
    > appended the _ as I don't want it to be a TODO.
    > For example, the global TODO list and syntax highlighting does not
    > consider it a todo, but C-c a m TODO="TODO" does. TODO="T" does not,
    > so it's not very grave.
    > Most likely, it's simply an inconsistency arising from not having a
    > real parser. I just wanted to report it here so it may get fixed.

:040000 040000 8f5974f2dd7cf5f0ad10db56d223ba09a6dbca80
624cee5569de7ef8f240ad75943be215bb823ccc M      lisp


Try the following before and after this patch was applied, for a test result:

* test one
* test two
* test three

  #+BEGIN_SRC emacs-lisp :results both
    (org-map-entries 'org-get-heading nil nil)

The results ought to be the three test headings in a table output.
After the patch it's blank.
Charles Sebold
Ego delendus sum

             reply	other threads:[~2012-03-19 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19 14:17 Charles Sebold [this message]
2012-03-19 19:49 ` org-map-entries broken? Mike McLean
2012-03-20  1:34   ` Bastien
2012-03-20  5:01     ` David Maus

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:

  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='CAEons=Gw9ggNcg-tCft=QwR5Jr=ZPqLTD4HN6LwND1a+bcCN4A@mail.gmail.com' \
    --to=csebold@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).