emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Éibhear <eibhear.geo@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87y3ulzdx1.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <d5411979717c8c0aa54f9a3b99abefe3.squirrel@www.gibiris.org> ("Éibhear"'s message of "Thu, 27 Apr 2017 14:12:27 +0100")

Hello,

"Éibhear" <eibhear.geo@gmail.com> 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
> ============
> 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
> ===============
> The columns overlay for the agenda should be presented.
>
>
> Actual Result
> =============
> 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,

-- 
Nicolas Goaziou

      reply	other threads:[~2017-04-27 22:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 13:12 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/)] "Éibhear"
2017-04-27 22:25 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3ulzdx1.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=eibhear.geo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).