From: Thomas Fitzsimmons <fitzsim@fitzsim.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] master aa5513d 1/7: excorporate-diary: Always use diary-fancy-display
Date: Sat, 15 Jun 2019 09:13:47 -0400 [thread overview]
Message-ID: <m3r27vkn3o.fsf@fitzsim.org> (raw)
In-Reply-To: <jwvh88rta58.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 15 Jun 2019 06:32:41 -0400")
Hi,
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> + (unless (eq diary-display-function 'diary-fancy-display)
>> + (warn (format
>> + (concat "Excorporate diary support needs diary-fancy-display"
>> + " but diary-display-function is currently %S; overriding")
>> + diary-display-function))
>> + (customize-set-variable 'diary-display-function 'diary-fancy-display))
>
> The warning is good, but I think that unilaterally overriding the user's
> choice is a bad idea.
>
> For example, it prevents using a tweaked version of `diary-fancy-display`.
Thanks for reviewing. Yeah, I didn't like having to do that but the
stock alternative, diary-simple-display, is broken. Specifically, even
with diary-include-other-diary-files in diary-list-entries-hook,
diary-simple-display doesn't show included entries. Maybe that's
intended behavior for diary-simple-display, but it makes it seem like
Excorporate hasn't done anything (since all its entries are included
entries).
I'm not sure how to disallow diary-simple-display but allow tweaked
versions of diary-fancy-display. (Currently I'm also relying on
diary-fancy-display-mode-hook.) I suppose I could just leave the
warning and remove the customize-set-variable call. I'll think about it
for the next release.
Maybe I should also file a bug about diary-simple-display not showing
included entries.
Thomas
next prev parent reply other threads:[~2019-06-15 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190614211218.5886.59920@vcs0.savannah.gnu.org>
[not found] ` <20190614211219.59B5721012@vcs0.savannah.gnu.org>
2019-06-15 10:32 ` [elpa] master aa5513d 1/7: excorporate-diary: Always use diary-fancy-display Stefan Monnier
2019-06-15 13:13 ` Thomas Fitzsimmons [this message]
2019-06-16 22:56 ` Stefan Monnier
2019-06-17 22:18 ` Thomas Fitzsimmons
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r27vkn3o.fsf@fitzsim.org \
--to=fitzsim@fitzsim.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.