* bug#38859: 26.1: diary-lib: diary-fancy-display
@ 2020-01-01 23:37 Boruch Baum
2020-01-02 0:14 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Boruch Baum @ 2020-01-01 23:37 UTC (permalink / raw)
To: 38859
Summary: diary-fancy-display seems not to work.
The original version of this report, reproduced below, received no
response when posted to the emacs-devel mailing list four days ago, so
I'm submitting it to this channel so it doesn't get 'lost'.
----- Forwarded message from Boruch Baum <boruch_baum@gmx.com> -----
Date: Sun, 29 Dec 2019 14:12:34 -0500
From: Boruch Baum <boruch_baum@gmx.com>
To: Emacs-Devel List <emacs-devel@gnu.org>
Subject: emacs calendar: diary-fancy-display
User-Agent: NeoMutt/20180716
Clarity for calendar `diary-fancy-display'
ref: [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
[2] other documentation
emacs version: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu,
Version 3.24.5) of 2019-09-22, modified by Debian
I'm not sure whether I'm encountering a bug, or just can't understand
the documentation for this feature, or have something configured
improperly.
I have variable `diary-display-function' set to 'diary-fancy-display,
and was expecting that from a Saturday calendar entry, keying the
sequence `i-h-d' (M-x diary-hebrew-insert-entry) would list
hebrew-specific stuff like any current holiday or parasha or
candle-times. All I'm getting is a Hebrew date name. My specific test
case was for gregorian date 12-28-2019.
My reading of ref [1] is that I might need to explicitly insert
some code into the 'diary file'. The diary file seems to be
~/.emacs.d/diary, so I tried inserting the following
#+BEGIN_EXAMPLE
&%%(diary-hebrew-parasha)
&%%(diary-hebrew-rosh-hodesh)
&%%(diary-hebrew-sabbath-candles)
&%%(diary-sunrise-sunset)
#+END_EXAMPLE
first with and later without the leading ampersands, both times to no
effect. I've read through the docstring for function
`diary-list-sexp-entries', but it hasn't been extra helpful.
I have the following hook definitions set:
(add-hook 'diary-nongregorian-listing-hook 'diary-hebrew-list-entries)
(add-hook 'diary-nongregorian-marking-hook 'diary-hebrew-mark-entries)
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
The variable `diary-fancy-display-mode-hook' is set to nil.
Finally, what might be a bug is that when killing a calender buffer,
the associated *Holidays* buffer remains. IMNSHO it should be killed
along with the calendar buffer.
Any ideas?
----- End forwarded message -----
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#38859: 26.1: diary-lib: diary-fancy-display
2020-01-01 23:37 bug#38859: 26.1: diary-lib: diary-fancy-display Boruch Baum
@ 2020-01-02 0:14 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2020-01-02 0:14 UTC (permalink / raw)
To: Boruch Baum; +Cc: 38859
Boruch Baum wrote:
> I have variable `diary-display-function' set to 'diary-fancy-display,
> and was expecting that from a Saturday calendar entry, keying the
> sequence `i-h-d' (M-x diary-hebrew-insert-entry) would list
> hebrew-specific stuff like any current holiday or parasha or
> candle-times. All I'm getting is a Hebrew date name. My specific test
> case was for gregorian date 12-28-2019.
The insert command is for adding a new diary entry.
It doesn't display existing ones (any more than "i d" does).
I don't know why you would expect it to.
To display the diary, use "d".
> #+BEGIN_EXAMPLE
> &%%(diary-hebrew-parasha)
> &%%(diary-hebrew-rosh-hodesh)
> &%%(diary-hebrew-sabbath-candles)
> &%%(diary-sunrise-sunset)
> #+END_EXAMPLE
Do that and then press "d" on a relevant day.
> Finally, what might be a bug is that when killing a calender buffer,
> the associated *Holidays* buffer remains. IMNSHO it should be killed
> along with the calendar buffer.
I disagree, but don't feel strongly about it.
Anyway, I see no bug here so am closing this report.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-02 0:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-01 23:37 bug#38859: 26.1: diary-lib: diary-fancy-display Boruch Baum
2020-01-02 0:14 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).