From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: bug: ';' gets error starting countdown timer in agenda Date: Sun, 01 Mar 2020 23:03:43 +0100 Message-ID: <84mu8zag1s.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59279) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8Wgh-0004sy-2O for emacs-orgmode@gnu.org; Sun, 01 Mar 2020 17:03:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8Wgg-0002zu-1a for emacs-orgmode@gnu.org; Sun, 01 Mar 2020 17:03:51 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:33530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8Wgf-0002yi-8p for emacs-orgmode@gnu.org; Sun, 01 Mar 2020 17:03:49 -0500 Received: by mail-wr1-x42f.google.com with SMTP id x7so10137518wrr.0 for ; Sun, 01 Mar 2020 14:03:47 -0800 (PST) In-Reply-To: (Ian Garmaise's message of "Sun, 1 Mar 2020 12:27:53 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Ian Garmaise Cc: emacs-orgmode@gnu.org Ian Garmaise writes: > In Agenda, I issue the ';' command to start a countdown timer. > I am asked how many minutes, then I get the following error > > > user-error: Command not allowed in this line > > Timer doesn't start. I have no problem starting a timer with C-c C-x ; Thanks for the report. AFAICS this issue occurs if you press ; on a line which is not associated to a heading. So a workaround is to pick a headline before the press on ;. I installed a fix in the master branch which looks natural to me. Concretely the name of the buffer is taken when no associated heading can be identified (instead of erroring.) BTW this completely complies with the docstring AFAICS. Best regards, -- Marco