Re: bug: ';' gets error starting countdown timer in agenda

2020-03-01 Thread Marco Wahl
Ian Garmaise  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!



Re: bug: ';' gets error starting countdown timer in agenda

2020-03-01 Thread Marco Wahl
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









bug: ';' gets error starting countdown timer in agenda

2020-03-01 Thread Ian Garmaise
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 "\\"
 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" :f