emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Robert Irelan <rirelan@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Bug: (org-clock-in 4) fails from non-Org buffer due to nil org-complex-heading-regexp [9.1.13 (9.1.13-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20180702/)]
Date: Tue, 17 Jul 2018 10:55:51 +0200	[thread overview]
Message-ID: <87fu0imeaw.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJUyYjr_rGbTqkR=uU7hHBvsrOvGjR07jwyf=aApB23POLMPGA@mail.gmail.com> (Robert Irelan's message of "Mon, 16 Jul 2018 15:52:01 -0700")

Hello,

Robert Irelan <rirelan@gmail.com> writes:

> How to reproduce:
>
> 1. Clock into default task.
> 2. Switch to non-Org buffer (I used `*scratch*`).
> 3. Type C-u M-x org-clock-info
> 4. Type d to clock into default task (which is located in a buffer
>    that's part of my agenda).
>
> Clocking in will then fail with the attached backtrace. It appears that
> this is happening due to a missing value for the variable
> `org-complex-heading-regexp`. Clocking in from an Org mode buffer
> works. I'd expect that org-clock-in would attempt to temporarily switch
> to that buffer to correctly set these buffer-local variables.
>
> Backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   looking-at(nil)
>   org-heading-components()
>   org-clock-in((4))

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2018-07-17  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-16 22:52 Bug: (org-clock-in 4) fails from non-Org buffer due to nil org-complex-heading-regexp [9.1.13 (9.1.13-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20180702/)] Robert Irelan
2018-07-17  8:55 ` Nicolas Goaziou [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=87fu0imeaw.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --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).