emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stig Brautaset <stig@brautaset.org>
To: Robert Irelan <rirelan@gmail.com>, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Bug: org-map-drill-entries fails in org-tags-expand on empty string
Date: Fri, 01 Feb 2019 21:50:48 +0000	[thread overview]
Message-ID: <m2bm3v2n5z.fsf@brautaset.org> (raw)
In-Reply-To: <CAJUyYjrGHuOv1cgE_4JURgef4Dcotf9bNPKHgrHE2_fQpuhgpA@mail.gmail.com>

Robert Irelan <rirelan@gmail.com> writes:

> Patch to fix attached.

I can confirm that this patch is required to make `org-drill' work for me in Org 9.2

Regards,

Stig



> From a3af9004fbc5a8a86ba8f990d393403ec671f9bf Mon Sep 17 00:00:00 2001
> From: Robert Irelan <rmirelan@google.com>
> Date: Wed, 23 Jan 2019 11:11:14 -0800
> Subject: [PATCH] org-drill: Fix tag match in org-map-drill-entries
>
> * contrib/lisp/org-drill.el: Change MATCH argument to ORG-MAP-ENTRIES
> from "" to nil.
>
> Without this, org-tags-expand will throw an error on the empty string.
> ---
>  contrib/lisp/org-drill.el | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el
> index c7f509bff..895003395 100644
> --- a/contrib/lisp/org-drill.el
> +++ b/contrib/lisp/org-drill.el
> @@ -1483,10 +1483,10 @@ the current topic."
>           (when (and (not (org-invisible-p))
>                      (> (org-current-level) drill-entry-level))
>             (when (or (/= (org-current-level) (1+ drill-entry-level))
> -                        (funcall test))
> +                     (funcall test))
>               (hide-subtree))
>             (push (point) drill-sections)))
> -       "" 'tree))
> +       nil 'tree))
>      (reverse drill-sections)))

      parent reply	other threads:[~2019-02-01 22:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23 19:18 Bug: org-map-drill-entries fails in org-tags-expand on empty string Robert Irelan
2019-02-01 20:16 ` Robert Irelan
2019-02-01 21:50 ` Stig Brautaset [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=m2bm3v2n5z.fsf@brautaset.org \
    --to=stig@brautaset.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rirelan@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).