GNU bug report logs - #38859
26.1: diary-lib: diary-fancy-display

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Wed, 1 Jan 2020 23:38:01 UTC

Severity: minor

Tags: notabug, wontfix

Found in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38859 in the body.
You can then email your comments to 38859 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38859; Package emacs. (Wed, 01 Jan 2020 23:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 01 Jan 2020 23:38:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: 26.1: diary-lib: diary-fancy-display
Date: Wed, 1 Jan 2020 18:37:25 -0500
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 <at> gmx.com> -----

Date: Sun, 29 Dec 2019 14:12:34 -0500
From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs-Devel List <emacs-devel <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38859; Package emacs. (Thu, 02 Jan 2020 00:15:01 GMT) Full text and rfc822 format available.

Message #8 received at 38859 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 38859 <at> debbugs.gnu.org
Subject: Re: bug#38859: 26.1: diary-lib: diary-fancy-display
Date: Wed, 01 Jan 2020 19:14:38 -0500
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.




Added tag(s) notabug and wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 02 Jan 2020 00:16:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 38859 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 02 Jan 2020 00:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Jan 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.