From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-agenda-columns failing when Diary entries are included [9.0.5 (9.0.5-dist @ /home/ohanluaine/eibhear_org/lisp/org-9/lisp/)] Date: Fri, 28 Apr 2017 00:25:14 +0200 Message-ID: <87y3ulzdx1.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3rqg-0002nV-7k for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 18:25:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3rqf-0003s1-4x for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 18:25:18 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:51540) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d3rqe-0003qS-UL for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 18:25:17 -0400 In-Reply-To: (=?utf-8?Q?=22=C3=89ibhear=22's?= message of "Thu, 27 Apr 2017 14:12:27 +0100") 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: =?utf-8?Q?=C3=89ibhear?= Cc: emacs-orgmode@gnu.org Hello, "=C3=89ibhear" writes: > I believe there's a bug in org-mode 9.0 when calling > org-agenda-columns in an agenda view that includes items from the > emacs diary file. > > To reproduce > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Setup: > The following shell commands should build the test case. > > # a) Create a location for this test case: > mkdir -vp ~/tmp/columns-bug > > # b) Create a simple org-mode file: > cat << EOF > ~/tmp/columns-bug/columns-bug.org > * TODOs > ** TODO Eat your chocolate egg > SCHEDULED: <2017-04-16 Sun 11:30> > ** TODO Wish Michael a Happy Birthday > SCHEDULED: <2017-03-17 Fri 10:00> > EOF > > # c) Create a simple diary file: > cat << EOF > ~/tmp/columns-bug/columns-bug.diary > 17 March 2017 12:01 Afternoon is well and truly started > EOF > > # d) Create a (not so) simple init file (this assumes that org > # mode 9.0 is somewhere on the load-path): > cat << EOF > ~/tmp/columns-bug/columns-bug.init > > (require 'appt) > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(appt-disp-window-function 'appt-disp-window) > '(appt-display-duration 60) > '(appt-display-format (quote window)) > '(appt-display-interval 5) > '(appt-message-warning-time 15) > '(calendar-date-style (quote european)) > '(calendar-latitude 52.36) > '(calendar-location-name "Dublin, Ireland") > '(calendar-longitude -6.19) > '(calendar-mark-diary-entries-flag t) > '(calendar-time-display-form > (quote (24-hours ":" minutes (if time-zone " (") > time-zone (if time-zone ")"))) > ) > '(calendar-view-diary-initially-flag t) > '(diary-file "~/tmp/columns-bug/columns-bug.diary") > '(diary-hook (quote (appt-make-list))) > '(diary-list-entries-hook (quote (diary-include-other-diary-files))) > '(diary-list-include-blanks t) > '(diary-number-of-entries 7) > '(display-time-24hr-format t) > '(org-agenda-files (quote ("~/tmp/columns-bug/columns-bug.org"))) > '(org-agenda-include-diary t) > '(org-finalize-agenda-hook (quote (org-agenda-to-appt))) > '(org-sort-agenda-notime-is-late nil) > ) > > (org-agenda-list nil "2017-03-17" 'day) > EOF > > # e) Launch emacs: > emacs -Q -l ~/tmp/columns-bug/columns-bug.init > > This will start emacs, calling columns-bug.init instead of > .emacs, and will immediately show the org-agenda-list screen for > the 17th March, 2017. There you'll see three entries: > - St. Patrick's Day from "Diary". This is a calculated entry > because diary-show-holidays-flag is t. > - The "Wish Michael a Happy Birthday" TODO from the org-mode file > above. > - The "Afternoon is well and truly started" diary item from the > diary file above. > > 2. Call org-agenda-columns interactively. > > > Expected Result > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > The columns overlay for the agenda should be presented. > > > Actual Result > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > The building of the columns view fails with the following report in > the minibuffer: > > Wrong type argument: number-or-marker-p, nil Fixed. Thank you. Regards, --=20 Nicolas Goaziou