* Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)]
@ 2019-03-04 21:22 Daniel Ortmann
2019-03-04 21:40 ` Daniel Ortmann
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Ortmann @ 2019-03-04 21:22 UTC (permalink / raw)
To: emacs-orgmode
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.
------------------------------------------------------------------------
Since this problem has been occurring for a few months now, it's got to
be something wrong in my configuration.
In the org agenda, pressing R activates the clock report but pressing it
again does not turn it off. The same behavior occurs through the menu;
clicking the view clock report checkbox turns the checkbox on and the
clock report appears in the agenda ... but clicking it again does not
turn the clock report off; it stays visible.
To log the bug report I started with
emacs -Q -l ~/minimal-org.el
then ran M-x org-agenda followed by a and then R.
The following debug trace immediately occurred.
Please clue in the clueless.
Thank you!
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
org-check-agenda-file(nil)
org-agenda-prepare-buffers((nil))
org-dblock-write:clocktable((:name "clocktable" :link t :maxlevel 2
:tstart 737122 :tend 737123 :scope agenda :indentation-column 0 :content
"\n"))
org-update-dblock()
org-clock-get-clocktable(:link t :maxlevel 2 :tstart 737122 :tend
737123 :scope agenda)
apply(org-clock-get-clocktable (:link t :maxlevel 2 :tstart 737122
:tend 737123 :scope agenda))
org-agenda-list(nil 737122 day nil)
(let nil (org-agenda-list 'nil 737122 'day nil))
eval((let nil (org-agenda-list 'nil 737122 'day nil)))
org-let(nil (org-agenda-list 'nil 737122 'day nil))
org-agenda-redo()
org-agenda-clockreport-mode()
funcall-interactively(org-agenda-clockreport-mode)
call-interactively(org-agenda-clockreport-mode nil nil)
command-execute(org-agenda-clockreport-mode)
Emacs : GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit,
Xaw3d scroll bars)
of 2019-03-04
Package: Org mode version 9.2.2 (release_9.2.2-245-g9d7b1e @
/home/dortmann/src/git-org-mode/lisp/)
current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-mode-hook '(#[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-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-occur-hook '(org-first-headline-recenter)
org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
org-dynamic-block-alist '(("columnview" . org-columns-insert-dblock)
("clocktable" . org-clock-report))
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("id" :follow org-id-open)
("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) ("file+sys")
("file+emacs") ("doi" :follow org--open-doi-link)
("elisp" :follow org--open-elisp-link)
("file" :complete org-file-complete-link)
("ftp" :follow
(lambda (path) (browse-url (concat "ftp:" path))))
("help" :follow org--open-help-link)
("http" :follow
(lambda (path) (browse-url (concat "http:" path))))
("https" :follow
(lambda (path) (browse-url (concat "https:" path))))
("mailto" :follow
(lambda (path) (browse-url (concat "mailto:" path))))
("news" :follow
(lambda (path) (browse-url (concat "news:" path))))
("shell" :follow org--open-shell-link))
org-agenda-start-on-weekday nil
)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)]
2019-03-04 21:22 Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)] Daniel Ortmann
@ 2019-03-04 21:40 ` Daniel Ortmann
2019-03-05 1:02 ` Bernt Hansen
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Ortmann @ 2019-03-04 21:40 UTC (permalink / raw)
To: emacs-orgmode
This is crazy! After months of problems, I myself no longer can
reproduce this issue! :-/
Comments welcome (Please!) ... but this issue no longer is actually a bug.
On 3/4/19 3:22 PM, Daniel Ortmann wrote:
> 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://urldefense.proofpoint.com/v2/url?u=https-3A__orgmode.org_manual_Feedback.html-23Feedback&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Dkq-B4wf3U4UeyggH34kSw8HWPy7CqI3u3RwPXz2f5o&m=4fSQsyYOysB0leNb80s58m3u_JCrMhGMzVXrgGispfw&s=_u3sTu0de7IKTb2RsyImTOaTAqX4pl-EiuT_gDXAtXA&e=
>
> Your bug report will be posted to the Org mailing list.
> ------------------------------------------------------------------------
>
> Since this problem has been occurring for a few months now, it's got to
> be something wrong in my configuration.
>
> In the org agenda, pressing R activates the clock report but pressing it
> again does not turn it off. The same behavior occurs through the menu;
> clicking the view clock report checkbox turns the checkbox on and the
> clock report appears in the agenda ... but clicking it again does not
> turn the clock report off; it stays visible.
>
> To log the bug report I started with
> emacs -Q -l ~/minimal-org.el
> then ran M-x org-agenda followed by a and then R.
> The following debug trace immediately occurred.
>
> Please clue in the clueless.
> Thank you!
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> file-exists-p(nil)
> org-check-agenda-file(nil)
> org-agenda-prepare-buffers((nil))
> org-dblock-write:clocktable((:name "clocktable" :link t :maxlevel 2
> :tstart 737122 :tend 737123 :scope agenda :indentation-column 0 :content
> "\n"))
> org-update-dblock()
> org-clock-get-clocktable(:link t :maxlevel 2 :tstart 737122 :tend
> 737123 :scope agenda)
> apply(org-clock-get-clocktable (:link t :maxlevel 2 :tstart 737122
> :tend 737123 :scope agenda))
> org-agenda-list(nil 737122 day nil)
> (let nil (org-agenda-list 'nil 737122 'day nil))
> eval((let nil (org-agenda-list 'nil 737122 'day nil)))
> org-let(nil (org-agenda-list 'nil 737122 'day nil))
> org-agenda-redo()
> org-agenda-clockreport-mode()
> funcall-interactively(org-agenda-clockreport-mode)
> call-interactively(org-agenda-clockreport-mode nil nil)
> command-execute(org-agenda-clockreport-mode)
>
>
> Emacs : GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit,
> Xaw3d scroll bars)
> of 2019-03-04
> Package: Org mode version 9.2.2 (release_9.2.2-245-g9d7b1e @
> /home/dortmann/src/git-org-mode/lisp/)
>
> current state:
> ==============
> (setq
> org-src-mode-hook '(org-src-babel-configure-edit-buffer
> org-src-mode-configure-edit-buffer)
> org-metadown-hook '(org-babel-pop-to-session-maybe)
> org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
> org-mode-hook '(#[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-archive-hook '(org-attach-archive-delete-maybe)
> org-confirm-elisp-link-function 'yes-or-no-p
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-metaup-hook '(org-babel-load-in-session-maybe)
> org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
> "\n\n(fn ENTRY)"]
> org-babel-pre-tangle-hook '(save-buffer)
> org-tab-first-hook '(org-babel-hide-result-toggle-maybe
> org-babel-header-arg-expand)
> org-occur-hook '(org-first-headline-recenter)
> org-cycle-hook '(org-cycle-hide-archived-subtrees
> org-cycle-show-empty-lines
> org-optimize-window-after-visibility-change)
> org-speed-command-hook '(org-speed-command-activate
> org-babel-speed-command-activate)
> org-dynamic-block-alist '(("columnview" . org-columns-insert-dblock)
> ("clocktable" . org-clock-report))
> org-confirm-shell-link-function 'yes-or-no-p
> org-link-parameters '(("id" :follow org-id-open)
> ("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) ("file+sys")
> ("file+emacs") ("doi" :follow org--open-doi-link)
> ("elisp" :follow org--open-elisp-link)
> ("file" :complete org-file-complete-link)
> ("ftp" :follow
> (lambda (path) (browse-url (concat "ftp:" path))))
> ("help" :follow org--open-help-link)
> ("http" :follow
> (lambda (path) (browse-url (concat "http:" path))))
> ("https" :follow
> (lambda (path) (browse-url (concat "https:" path))))
> ("mailto" :follow
> (lambda (path) (browse-url (concat "mailto:" path))))
> ("news" :follow
> (lambda (path) (browse-url (concat "news:" path))))
> ("shell" :follow org--open-shell-link))
> org-agenda-start-on-weekday nil
> )
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)]
2019-03-04 21:40 ` Daniel Ortmann
@ 2019-03-05 1:02 ` Bernt Hansen
2019-03-05 18:49 ` Daniel Ortmann
0 siblings, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2019-03-05 1:02 UTC (permalink / raw)
To: Daniel Ortmann; +Cc: emacs-orgmode
Actually I think it is a bug. This weird behaviour has been around for
a very long time (years probably).
I have noticed similar behaviour with log mode, and clock check mode as
well.
I can reproduce the issue at with the following recipe:
C-c a a (start org agenda)
j -3 RET (go back 3 days although any number of days probably works)
l (turn on log mode) or R for clock report
. (go to today)
l (wont' turn off log mode anymore)
Workaround:
j -3 RET (go back 3 days again)
l (turn log mode off) or R for clock report
. (works normally again)
I run into this regularly when I'm checking clock reports in the agenda
for the past week (jump to the past, turn clock reports or logging on)
then move forwards again and you can't turn it off.
HTH.
Regards,
Bernt
Daniel Ortmann <daniel.ortmann@oracle.com> writes:
> This is crazy! After months of problems, I myself no longer can
> reproduce this issue! :-/
>
> Comments welcome (Please!) ... but this issue no longer is actually a bug.
>
> On 3/4/19 3:22 PM, Daniel Ortmann wrote:
>> 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://urldefense.proofpoint.com/v2/url?u=https-3A__orgmode.org_manual_Feedback.html-23Feedback&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Dkq-B4wf3U4UeyggH34kSw8HWPy7CqI3u3RwPXz2f5o&m=4fSQsyYOysB0leNb80s58m3u_JCrMhGMzVXrgGispfw&s=_u3sTu0de7IKTb2RsyImTOaTAqX4pl-EiuT_gDXAtXA&e=
>>
>> Your bug report will be posted to the Org mailing list.
>> ------------------------------------------------------------------------
>>
>> Since this problem has been occurring for a few months now, it's got to
>> be something wrong in my configuration.
>>
>> In the org agenda, pressing R activates the clock report but pressing it
>> again does not turn it off. The same behavior occurs through the menu;
>> clicking the view clock report checkbox turns the checkbox on and the
>> clock report appears in the agenda ... but clicking it again does not
>> turn the clock report off; it stays visible.
>>
>> To log the bug report I started with
>> emacs -Q -l ~/minimal-org.el
>> then ran M-x org-agenda followed by a and then R.
>> The following debug trace immediately occurred.
>>
>> Please clue in the clueless.
>> Thank you!
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> file-exists-p(nil)
>> org-check-agenda-file(nil)
>> org-agenda-prepare-buffers((nil))
>> org-dblock-write:clocktable((:name "clocktable" :link t :maxlevel 2
>> :tstart 737122 :tend 737123 :scope agenda :indentation-column 0 :content
>> "\n"))
>> org-update-dblock()
>> org-clock-get-clocktable(:link t :maxlevel 2 :tstart 737122 :tend
>> 737123 :scope agenda)
>> apply(org-clock-get-clocktable (:link t :maxlevel 2 :tstart 737122
>> :tend 737123 :scope agenda))
>> org-agenda-list(nil 737122 day nil)
>> (let nil (org-agenda-list 'nil 737122 'day nil))
>> eval((let nil (org-agenda-list 'nil 737122 'day nil)))
>> org-let(nil (org-agenda-list 'nil 737122 'day nil))
>> org-agenda-redo()
>> org-agenda-clockreport-mode()
>> funcall-interactively(org-agenda-clockreport-mode)
>> call-interactively(org-agenda-clockreport-mode nil nil)
>> command-execute(org-agenda-clockreport-mode)
>>
>>
>> Emacs : GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit,
>> Xaw3d scroll bars)
>> of 2019-03-04
>> Package: Org mode version 9.2.2 (release_9.2.2-245-g9d7b1e @
>> /home/dortmann/src/git-org-mode/lisp/)
>>
>> current state:
>> ==============
>> (setq
>> org-src-mode-hook '(org-src-babel-configure-edit-buffer
>> org-src-mode-configure-edit-buffer)
>> org-metadown-hook '(org-babel-pop-to-session-maybe)
>> org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
>> org-mode-hook '(#[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-archive-hook '(org-attach-archive-delete-maybe)
>> org-confirm-elisp-link-function 'yes-or-no-p
>> org-agenda-before-write-hook '(org-agenda-add-entry-text)
>> org-metaup-hook '(org-babel-load-in-session-maybe)
>> org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
>> "\n\n(fn ENTRY)"]
>> org-babel-pre-tangle-hook '(save-buffer)
>> org-tab-first-hook '(org-babel-hide-result-toggle-maybe
>> org-babel-header-arg-expand)
>> org-occur-hook '(org-first-headline-recenter)
>> org-cycle-hook '(org-cycle-hide-archived-subtrees
>> org-cycle-show-empty-lines
>> org-optimize-window-after-visibility-change)
>> org-speed-command-hook '(org-speed-command-activate
>> org-babel-speed-command-activate)
>> org-dynamic-block-alist '(("columnview" . org-columns-insert-dblock)
>> ("clocktable" . org-clock-report))
>> org-confirm-shell-link-function 'yes-or-no-p
>> org-link-parameters '(("id" :follow org-id-open)
>> ("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) ("file+sys")
>> ("file+emacs") ("doi" :follow org--open-doi-link)
>> ("elisp" :follow org--open-elisp-link)
>> ("file" :complete org-file-complete-link)
>> ("ftp" :follow
>> (lambda (path) (browse-url (concat "ftp:" path))))
>> ("help" :follow org--open-help-link)
>> ("http" :follow
>> (lambda (path) (browse-url (concat "http:" path))))
>> ("https" :follow
>> (lambda (path) (browse-url (concat "https:" path))))
>> ("mailto" :follow
>> (lambda (path) (browse-url (concat "mailto:" path))))
>> ("news" :follow
>> (lambda (path) (browse-url (concat "news:" path))))
>> ("shell" :follow org--open-shell-link))
>> org-agenda-start-on-weekday nil
>> )
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)]
2019-03-05 1:02 ` Bernt Hansen
@ 2019-03-05 18:49 ` Daniel Ortmann
2019-03-09 6:17 ` Nathaniel Nicandro
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Ortmann @ 2019-03-05 18:49 UTC (permalink / raw)
To: emacs-orgmode
Does anyone have an idea of why this problem occurs?
And perhaps how to fix it?
On 3/4/19 7:02 PM, Bernt Hansen wrote:
> Actually I think it is a bug. This weird behaviour has been around for
> a very long time (years probably).
>
> I have noticed similar behaviour with log mode, and clock check mode as
> well.
>
> I can reproduce the issue at with the following recipe:
>
> C-c a a (start org agenda)
> j -3 RET (go back 3 days although any number of days probably works)
> l (turn on log mode) or R for clock report
> . (go to today)
> l (wont' turn off log mode anymore)
>
> Workaround:
>
> j -3 RET (go back 3 days again)
> l (turn log mode off) or R for clock report
> . (works normally again)
>
> I run into this regularly when I'm checking clock reports in the agenda
> for the past week (jump to the past, turn clock reports or logging on)
> then move forwards again and you can't turn it off.
>
> HTH.
>
> Regards,
> Bernt
>
> Daniel Ortmann <daniel.ortmann@oracle.com> writes:
>
>> This is crazy! After months of problems, I myself no longer can
>> reproduce this issue! :-/
>>
>> Comments welcome (Please!) ... but this issue no longer is actually a bug.
>>
>> On 3/4/19 3:22 PM, Daniel Ortmann wrote:
>>> 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://urldefense.proofpoint.com/v2/url?u=https-3A__orgmode.org_manual_Feedback.html-23Feedback&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Dkq-B4wf3U4UeyggH34kSw8HWPy7CqI3u3RwPXz2f5o&m=4fSQsyYOysB0leNb80s58m3u_JCrMhGMzVXrgGispfw&s=_u3sTu0de7IKTb2RsyImTOaTAqX4pl-EiuT_gDXAtXA&e=
>>>
>>> Your bug report will be posted to the Org mailing list.
>>> ------------------------------------------------------------------------
>>>
>>> Since this problem has been occurring for a few months now, it's got to
>>> be something wrong in my configuration.
>>>
>>> In the org agenda, pressing R activates the clock report but pressing it
>>> again does not turn it off. The same behavior occurs through the menu;
>>> clicking the view clock report checkbox turns the checkbox on and the
>>> clock report appears in the agenda ... but clicking it again does not
>>> turn the clock report off; it stays visible.
>>>
>>> To log the bug report I started with
>>> emacs -Q -l ~/minimal-org.el
>>> then ran M-x org-agenda followed by a and then R.
>>> The following debug trace immediately occurred.
>>>
>>> Please clue in the clueless.
>>> Thank you!
>>>
>>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>> file-exists-p(nil)
>>> org-check-agenda-file(nil)
>>> org-agenda-prepare-buffers((nil))
>>> org-dblock-write:clocktable((:name "clocktable" :link t :maxlevel 2
>>> :tstart 737122 :tend 737123 :scope agenda :indentation-column 0 :content
>>> "\n"))
>>> org-update-dblock()
>>> org-clock-get-clocktable(:link t :maxlevel 2 :tstart 737122 :tend
>>> 737123 :scope agenda)
>>> apply(org-clock-get-clocktable (:link t :maxlevel 2 :tstart 737122
>>> :tend 737123 :scope agenda))
>>> org-agenda-list(nil 737122 day nil)
>>> (let nil (org-agenda-list 'nil 737122 'day nil))
>>> eval((let nil (org-agenda-list 'nil 737122 'day nil)))
>>> org-let(nil (org-agenda-list 'nil 737122 'day nil))
>>> org-agenda-redo()
>>> org-agenda-clockreport-mode()
>>> funcall-interactively(org-agenda-clockreport-mode)
>>> call-interactively(org-agenda-clockreport-mode nil nil)
>>> command-execute(org-agenda-clockreport-mode)
>>>
>>>
>>> Emacs : GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit,
>>> Xaw3d scroll bars)
>>> of 2019-03-04
>>> Package: Org mode version 9.2.2 (release_9.2.2-245-g9d7b1e @
>>> /home/dortmann/src/git-org-mode/lisp/)
>>>
>>> current state:
>>> ==============
>>> (setq
>>> org-src-mode-hook '(org-src-babel-configure-edit-buffer
>>> org-src-mode-configure-edit-buffer)
>>> org-metadown-hook '(org-babel-pop-to-session-maybe)
>>> org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
>>> org-mode-hook '(#[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-archive-hook '(org-attach-archive-delete-maybe)
>>> org-confirm-elisp-link-function 'yes-or-no-p
>>> org-agenda-before-write-hook '(org-agenda-add-entry-text)
>>> org-metaup-hook '(org-babel-load-in-session-maybe)
>>> org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
>>> "\n\n(fn ENTRY)"]
>>> org-babel-pre-tangle-hook '(save-buffer)
>>> org-tab-first-hook '(org-babel-hide-result-toggle-maybe
>>> org-babel-header-arg-expand)
>>> org-occur-hook '(org-first-headline-recenter)
>>> org-cycle-hook '(org-cycle-hide-archived-subtrees
>>> org-cycle-show-empty-lines
>>> org-optimize-window-after-visibility-change)
>>> org-speed-command-hook '(org-speed-command-activate
>>> org-babel-speed-command-activate)
>>> org-dynamic-block-alist '(("columnview" . org-columns-insert-dblock)
>>> ("clocktable" . org-clock-report))
>>> org-confirm-shell-link-function 'yes-or-no-p
>>> org-link-parameters '(("id" :follow org-id-open)
>>> ("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) ("file+sys")
>>> ("file+emacs") ("doi" :follow org--open-doi-link)
>>> ("elisp" :follow org--open-elisp-link)
>>> ("file" :complete org-file-complete-link)
>>> ("ftp" :follow
>>> (lambda (path) (browse-url (concat "ftp:" path))))
>>> ("help" :follow org--open-help-link)
>>> ("http" :follow
>>> (lambda (path) (browse-url (concat "http:" path))))
>>> ("https" :follow
>>> (lambda (path) (browse-url (concat "https:" path))))
>>> ("mailto" :follow
>>> (lambda (path) (browse-url (concat "mailto:" path))))
>>> ("news" :follow
>>> (lambda (path) (browse-url (concat "news:" path))))
>>> ("shell" :follow org--open-shell-link))
>>> org-agenda-start-on-weekday nil
>>> )
>>>
>>>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)]
2019-03-05 18:49 ` Daniel Ortmann
@ 2019-03-09 6:17 ` Nathaniel Nicandro
0 siblings, 0 replies; 5+ messages in thread
From: Nathaniel Nicandro @ 2019-03-09 6:17 UTC (permalink / raw)
To: Daniel Ortmann; +Cc: emacs-orgmode
I am also experiencing this issue. I'm assuming =org-agenda-sticky= is set to
=t= in your configuration since that is what I have in mine.
I've tracked the problem down to (1) the handling of =org-agenda-sticky= in
=org-agenda-goto-date=, (2) how this affects what =org-agenda-mode= (called by
=org-agenda-redo=) does with =org-agenda-local-vars=, and (3) the subsequent
modification of variables in =org-agenda-local-vars= before another call to
=org-agenda-redo=.
1. =org-agenda-goto-date= temporarily sets =org-agenda-sticky= to =nil= before
it calls =org-agenda-redo=.
2. None of the variables in =org-agenda-local-vars= are made buffer local when
=org-agenda-redo= calls =org-agenda-mode= during the call to
=org-agenda-goto-date=.
3. Setting one of the variables in =org-agenda-local-vars= after (2) happens
actually sets its global value instead of its local value. So, for example,
calling =org-agenda-log-mode= will set the global value of
=org-agenda-show-log= to =t=. Once =org-agenda-redo= is called, it will
once again be a local variable, but now the default global value is =t=.
The main reason why log mode stays on when you try to toggle it off is because
the =reset-saved= function in =org-agenda-mode= (which restores the saved
values of =org-agenda-local-vars= after all local variables have been killed
and re-made as local variables) does not set the value of any local variable
whose saved value is =nil=.
Since the local value of =org-agenda-show-log= is =nil= when you try to
toggle log mode off, its buffer local value is not reset to =nil= by
=reset-saved=. This means that it keeps the default global value it had
when it was made into a local variable and this value is now =t= due to
(3).
So I think the main issue here is that =org-agenda-goto-date= does not
handle =org-agenda-sticky= correctly since none of the
=org-agenda-local-vars= are turned back into local variables during
=org-agenda-redo= when =org-agenda-sticky= is =t=.
Another possible issue is that the =reset-saved= function in
=org-agenda-mode= does not set the value of variables if they are =nil=, but
this is not an issue if the variables it resets are guaranteed to always
have a global default of =nil=.
I haven't looked into why =org-agenda-goto-date= needs to temporarily
set =org-agenda-sticky= to =nil. Maybe someone can answer that, but a
solution until that gets figured out is to allow =reset-saved= to set
=nil= values.
- Nathaniel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-09 6:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 21:22 Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)] Daniel Ortmann
2019-03-04 21:40 ` Daniel Ortmann
2019-03-05 1:02 ` Bernt Hansen
2019-03-05 18:49 ` Daniel Ortmann
2019-03-09 6:17 ` Nathaniel Nicandro
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).