emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug: ';' gets error starting countdown timer in agenda
@ 2020-03-01 17:27 Ian Garmaise
  2020-03-01 22:03 ` Marco Wahl
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Garmaise @ 2020-03-01 17:27 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 6512 bytes --]

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

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 ;

Emacs  : GNU Emacs 26.3 (build 1, i686-w64-mingw32)
 of 2019-08-29
Package: Org mode version 9.3.6 (9.3.6-17-g389288-elpa @
c:/users/ian/.emacs.d/elpa/org-20200224/)

current state:
==============
(setq
 org-link-abbrev-alist '(("gmail" . "
https://mail.google.com/mail/?view=cm&fs=1&to=%s"))
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-babel-load-languages '((emacs-lisp . t) (dot . t) (org . t) (plantuml
. t))
 org-agenda-time-grid '((daily today require-timed) (600 800 1000 1200 1400
1600 1800 2000) "......" "----------------")
 org-babel-results-keyword "results"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-tag-alist '(("@work" . 119) ("@home" . 104) ("laptop" . 108))
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-todo-state-tags-triggers '(("ALREADYSENT" ("sentatleastone" . t)))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-link-from-user-regexp "\\<Ian@IAN-EDGE\\>"
 org-log-into-drawer t
 org-directory "~/Dropbox/org"
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-enforce-todo-dependencies t
 org-columns-default-format "%40ITEM(Task) %17Effort(Estimated Effort){:}
%CLOCKSUM"
 org-agenda-include-diary t
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-agenda-files '("~/Dropbox/org/organizer.org" "~/Dropbox/org/
nowtutoradmin.org")
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-link-elisp-confirm-function 'yes-or-no-p
 org-enforce-todo-checkbox-dependencies t
 org-global-properties '(("Effort_All" . "0 0:10 0:30 1:00 2:00 3:00 4:00
5:00 6:00 7:00"))
 org-babel-pre-tangle-hook '(save-buffer)
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-occur-hook '(org-first-headline-recenter)
 org-mode-hook '(org-clock-load #[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook
org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-agenda-span 'day
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-default-notes-file "~/Dropbox/org/notes.org"
 org-src-lang-modes '(("plantuml" . fundamental) ("C" . c) ("C++" . c++)
("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
     ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" .
fundamental) ("elisp" . emacs-lisp)
     ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite"
. sql))
 org-clock-persist 'history
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-confirm-shell-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-link-shell-confirm-function 'yes-or-no-p
 org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE"))
 org-log-done 'time
 org-plantuml-jar-path "~/plantuml.jar"
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default)
("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)
("\\.xlsx\\'" . default) ("\\.docx\\'" . default))
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-blocker-hook '(org-block-todo-from-checkboxes
org-block-todo-from-children-or-siblings-or-parent)
 org-link-parameters '(("attachment" :follow org-attach-open-link :export
org-attach-export-link :complete org-attach-complete-link)
      ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow
org-rmail-open :store org-rmail-store-link)
      ("mhe" :follow org-mhe-open :store org-mhe-store-link)
      ("irc" :follow org-irc-visit :store org-irc-store-link :export
org-irc-export)
      ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
      ("gnus" :follow org-gnus-open :store org-gnus-store-link)
      ("docview" :follow org-docview-open :export org-docview-export :store
org-docview-store-link)
      ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
      ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link :store
org-bbdb-store-link)
      ("w3m" :store org-w3m-store-link) ("id" :follow org-id-open)
("file+sys") ("file+emacs")
      ("shell" :follow org-link--open-shell)
      ("news" :follow #[257 "\301\300\302 Q!\207" ["news" browse-url ":"] 5
"\n\n(fn URL)"])
      ("mailto" :follow #[257 "\301\300\302 Q!\207" ["mailto" browse-url
":"] 5 "\n\n(fn URL)"])
      ("https" :follow #[257 "\301\300\302 Q!\207" ["https" browse-url ":"]
5 "\n\n(fn URL)"])
      ("http" :follow #[257 "\301\300\302 Q!\207" ["http" browse-url ":"] 5
"\n\n(fn URL)"])
      ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5
"\n\n(fn URL)"])
      ("help" :follow org-link--open-help) ("file" :complete
org-link-complete-file)
      ("elisp" :follow org-link--open-elisp) ("doi" :follow
org-link--open-doi))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 )

-- 
=====
Ian Garmaise
Consultant
Phorix Solutions Group
ian.g@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

[-- Attachment #2: Type: text/html, Size: 8845 bytes --]

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

* Re: bug: ';' gets error starting countdown timer in agenda
  2020-03-01 17:27 bug: ';' gets error starting countdown timer in agenda Ian Garmaise
@ 2020-03-01 22:03 ` Marco Wahl
       [not found]   ` <CALWEx6VoV2GNyYMawqsOEGv7HnTmkYbCPsY4OHubK-sjX1Qnzw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Wahl @ 2020-03-01 22:03 UTC (permalink / raw)
  To: Ian Garmaise; +Cc: emacs-orgmode

Ian Garmaise <ian.g@phorixsol.com> 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

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

* Re: bug: ';' gets error starting countdown timer in agenda
       [not found]   ` <CALWEx6VoV2GNyYMawqsOEGv7HnTmkYbCPsY4OHubK-sjX1Qnzw@mail.gmail.com>
@ 2020-03-02  0:22     ` Marco Wahl
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Wahl @ 2020-03-02  0:22 UTC (permalink / raw)
  To: Ian Garmaise; +Cc: Orgmode Mailing List

Ian Garmaise <ian.g@phorixsol.com> writes:

> Thanks for that, it is indeed true that picking a heading is a workaround.
> I was confused because as far as I can tell there is no relationship
> between the countdown timer and any headline.  I assume you mean the
> docstring for org-timer-set-timer, but maybe it is for some function in
> org-agenda.el

Sorry, I've not been clear.  I mean the docstring of
org-timer--get-timer-title.

For some reason a name gets associated with each timer.  The creation of
that name is done in function org-timer--get-timer-title.  Called from
the agenda the function trys to provide the name of the headline for the
current agenda line and it raises an error in some cases when this is
not possible.  And you found such a case FWIW.


Ciao!

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

end of thread, other threads:[~2020-03-02  0:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-01 17:27 bug: ';' gets error starting countdown timer in agenda Ian Garmaise
2020-03-01 22:03 ` Marco Wahl
     [not found]   ` <CALWEx6VoV2GNyYMawqsOEGv7HnTmkYbCPsY4OHubK-sjX1Qnzw@mail.gmail.com>
2020-03-02  0:22     ` Marco Wahl

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