emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-map-entries seems broken
@ 2016-01-13  8:44 T.F. Torrey
  2016-01-13 16:39 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: T.F. Torrey @ 2016-01-13  8:44 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I have a function that uses org-map-entries to build a list of entries.
It worked until recently.  Now, it fails with simple combinations.  For
instance, 'LEVEL=1' matches what it should, and 'weblog' matches what it
should, but 'LEVEL=1+weblog' does not match the intersecting set, or
anything at all.  Did I miss a change in the syntax, or maybe did a
recent refactoring introduce an error?  Does anyone else use this kind
of matching and have it work?

Emacs  : GNU Emacs 24.5.1 (i586-pc-linux-gnu, GTK+ Version 3.18.2)
 of 2015-10-24 on x86-grnet-01, modified by Debian
Package: Org-mode version 8.3.3 (release_8.3.3-435-gb78a9b @ /home/tftorrey/T/hacks/org-mode/lisp/)

Thanks in advance,

Terry
-- 
T.F. Torrey

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: org-map-entries seems broken
  2016-01-13  8:44 Bug: org-map-entries seems broken T.F. Torrey
@ 2016-01-13 16:39 ` Kyle Meyer
  2016-01-17  3:06   ` T.F. Torrey
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2016-01-13 16:39 UTC (permalink / raw)
  To: T.F. Torrey; +Cc: emacs-orgmode

Hello,

"T.F. Torrey" <tftorrey@tftorrey.com> writes:

> Hello,
>
> I have a function that uses org-map-entries to build a list of entries.
> It worked until recently.  Now, it fails with simple combinations.  For
> instance, 'LEVEL=1' matches what it should, and 'weblog' matches what it
> should, but 'LEVEL=1+weblog' does not match the intersecting set, or
> anything at all.  Did I miss a change in the syntax, or maybe did a
> recent refactoring introduce an error?  Does anyone else use this kind
> of matching and have it work?

Things seem to be working on my end.  Both release_8.3.3 and the
current master (23f31a9) are giving me the same results:

--8<---------------cut here---------------start------------->8---
#+begin_src elisp
  (org-map-entries
   (lambda () (substring-no-properties (org-get-heading t)))
   "LEVEL=1")
#+end_src

#+RESULTS:
| a | b |

#+begin_src elisp
  (org-map-entries
   (lambda () (substring-no-properties (org-get-heading t)))
   "atag")
#+end_src

#+RESULTS:
| aa | b | ba | bb |

#+begin_src elisp
  (org-map-entries
   (lambda () (substring-no-properties (org-get-heading t)))
   "LEVEL=1+atag")
#+end_src

#+RESULTS:
| b |

* a
** aa                                                                   :atag:
** ab
* b                                                                    :atag:
** ba
** bb
--8<---------------cut here---------------end--------------->8---

-- 
Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: org-map-entries seems broken
  2016-01-13 16:39 ` Kyle Meyer
@ 2016-01-17  3:06   ` T.F. Torrey
  0 siblings, 0 replies; 3+ messages in thread
From: T.F. Torrey @ 2016-01-17  3:06 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Hello,

Thank you so much for looking into this.

Kyle Meyer <kyle@kyleam.com> writes:

>> Hello,
>>
>> I have a function that uses org-map-entries to build a list of entries.

[... 6 lines omitted ...]

>
> Things seem to be working on my end.  Both release_8.3.3 and the
> current master (23f31a9) are giving me the same results:

[... 36 lines omitted ...]

The problem, which took me several hours to figure out, was merely a
massive misfire between my keyboard and chair.  I apologize for the
noise.

Best,
Terry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-20 23:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13  8:44 Bug: org-map-entries seems broken T.F. Torrey
2016-01-13 16:39 ` Kyle Meyer
2016-01-17  3:06   ` T.F. Torrey

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