From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bug: clocktable error in org-agenda [9.2.2 (release_9.2.2-245-g9d7b1e @ /home/dortmann/src/git-org-mode/lisp/)] Date: Mon, 04 Mar 2019 20:02:54 -0500 Message-ID: <87r2bmyvy9.fsf@norang.ca> References: <998d3a9c-b6bf-85f2-4dac-46be5ce9fb1e@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0yU9-0000eS-UY for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 20:03:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0yU8-0002Fu-Jw for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 20:03:09 -0500 Received: from outbound2m.ore.mailhop.org ([54.149.155.156]:33683) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0yU8-0002DP-1r for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 20:03:08 -0500 In-Reply-To: <998d3a9c-b6bf-85f2-4dac-46be5ce9fb1e@oracle.com> (Daniel Ortmann's message of "Mon, 4 Mar 2019 15:40:31 -0600") 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.org@gnu.org Sender: "Emacs-orgmode" To: Daniel Ortmann Cc: emacs-orgmode@gnu.org 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 writes: > This is crazy!=C2=A0 After months of problems, I myself no longer can > reproduce this issue!=C2=A0 :-/ > > Comments welcome (Please!) ... but this issue no longer is actually a bug= .=C2=A0 > > 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.=C2=A0 You don't know how to make a good report?= =C2=A0 See >> >> =C2=A0=C2=A0=C2=A0=C2=A0 https://urldefense.proofpoint.com/v2/url?u=3Dht= tps-3A__orgmode.org_manual_Feedback.html-23Feedback&d=3DDwIGaQ&c=3DRoP1YumC= XCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=3DDkq-B4wf3U4UeyggH34kSw8HWPy7CqI3u3R= wPXz2f5o&m=3D4fSQsyYOysB0leNb80s58m3u_JCrMhGMzVXrgGispfw&s=3D_u3sTu0de7IKTb= 2RsyImTOaTAqX4pl-EiuT_gDXAtXA&e=3D >> >> 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.=C2=A0 The same behavior occurs through the m= enu; >> 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) >> =C2=A0 file-exists-p(nil) >> =C2=A0 org-check-agenda-file(nil) >> =C2=A0 org-agenda-prepare-buffers((nil)) >> =C2=A0 org-dblock-write:clocktable((:name "clocktable" :link t :maxlevel= 2 >> :tstart 737122 :tend 737123 :scope agenda :indentation-column 0 :content >> "\n")) >> =C2=A0 org-update-dblock() >> =C2=A0 org-clock-get-clocktable(:link t :maxlevel 2 :tstart 737122 :tend >> 737123 :scope agenda) >> =C2=A0 apply(org-clock-get-clocktable (:link t :maxlevel 2 :tstart 737122 >> :tend 737123 :scope agenda)) >> =C2=A0 org-agenda-list(nil 737122 day nil) >> =C2=A0 (let nil (org-agenda-list 'nil 737122 'day nil)) >> =C2=A0 eval((let nil (org-agenda-list 'nil 737122 'day nil))) >> =C2=A0 org-let(nil (org-agenda-list 'nil 737122 'day nil)) >> =C2=A0 org-agenda-redo() >> =C2=A0 org-agenda-clockreport-mode() >> =C2=A0 funcall-interactively(org-agenda-clockreport-mode) >> =C2=A0 call-interactively(org-agenda-clockreport-mode nil nil) >> =C2=A0 command-execute(org-agenda-clockreport-mode) >> >> >> Emacs=C2=A0 : GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, >> Xaw3d scroll bars) >> =C2=A0of 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: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> (setq >> =C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffer >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-src-m= ode-configure-edit-buffer) >> =C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe) >> =C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer) >> =C2=A0org-mode-hook '(#[0 "\300\301\302\303\304$\207" >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 [add-hook change-majo= r-mode-hook org-show-all append local] >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 5] >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 #[0 "\300\301\302\303\304$\207" >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 [add-hook change-majo= r-mode-hook org-babel-show-result-all >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 append local] >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 5] >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-babel-result-hide-spec org-ba= bel-hide-all-hashes) >> =C2=A0org-archive-hook '(org-attach-archive-delete-maybe) >> =C2=A0org-confirm-elisp-link-function 'yes-or-no-p >> =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) >> =C2=A0org-metaup-hook '(org-babel-load-in-session-maybe) >> =C2=A0org-bibtex-headline-format-function #[257 "\300\236A\207" [:title]= 3 >> "\n\n(fn ENTRY)"] >> =C2=A0org-babel-pre-tangle-hook '(save-buffer) >> =C2=A0org-tab-first-hook '(org-babel-hide-result-toggle-maybe >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org= -babel-header-arg-expand) >> =C2=A0org-occur-hook '(org-first-headline-recenter) >> =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees >> org-cycle-show-empty-lines >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org-optimize-window-after-v= isibility-change) >> =C2=A0org-speed-command-hook '(org-speed-command-activate >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org-babe= l-speed-command-activate) >> =C2=A0org-dynamic-block-alist '(("columnview" . org-columns-insert-dbloc= k) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ("= clocktable" . org-clock-report)) >> =C2=A0org-confirm-shell-link-function 'yes-or-no-p >> =C2=A0org-link-parameters '(("id" :follow org-id-open) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("eww" :follow eww :store org-eww-store-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("rmail" :follow org-rmail-open :store >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-rmail-store= -link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("mhe" :follow org-mhe-open :store org-mhe-store-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("irc" :follow org-irc-visit :store org-irc-store-link >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:export org-irc= -export) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("info" :follow org-info-open :export org-info-export >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:store org-info= -store-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("gnus" :follow org-gnus-open :store org-gnus-store-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("docview" :follow org-docview-open :export >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-docview-exp= ort :store org-docview-store-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("bibtex" :follow org-bibtex-open :store >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-bibtex-stor= e-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("bbdb" :follow org-bbdb-open :export org-bbdb-export >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:complete org-b= bdb-complete-link :store >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-bbdb-store-= link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("w3m" :store org-w3m-store-link) ("file+sys") >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("file+emacs") ("doi" :follow org--open-doi-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("elisp" :follow org--open-elisp-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("file" :complete org-file-complete-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("ftp" :follow >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda (path) = (browse-url (concat "ftp:" path)))) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("help" :follow org--open-help-link) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("http" :follow >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda (path) = (browse-url (concat "http:" path)))) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("https" :follow >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda (path) = (browse-url (concat "https:" path)))) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("mailto" :follow >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda (path) = (browse-url (concat "mailto:" path)))) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("news" :follow >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda (path) = (browse-url (concat "news:" path)))) >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("shell" :follow org--open-shell-link)) >> =C2=A0org-agenda-start-on-weekday nil >> =C2=A0) >> >>