unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: 15987@debbugs.gnu.org
Subject: bug#15987: 24.3; diary-add-to-list ignored by diary-mark-entries
Date: Thu, 28 Nov 2013 08:40:39 -0600	[thread overview]
Message-ID: <87a9gopp20.fsf@gnu.org> (raw)

I am not an expert with diary and calendar, but it seems to me that
there is an unnecessary duplication of code in diary-list-entries
and diary-mark-entries making it rather difficult to feed entries
into diary-mark-entries if these entries do not come from a diary
file.

The context is the following:

BBDB 3 defines the function bbdb-anniv-diary-entries which adds
anniversaries from BBDB records to `diary-list-entries' by calling
diary-add-to-list.  This is a clean thing and works fine.

Now I've been asked on the BBDB mailing list how these anniversaries
from BBDB records can also be marked in the Emacs calendar, and it
seems to me that there is no easy way to achieve this.  The problem
seems to be that diary-add-to-list is used to set up the diary
buffer.  But diary-mark-entries (or more specifically
diary-mark-entries-1) parses the diary file(s) similarly to what
diary-list-entries is doing; but this is directly used to mark the
calendar buffer.  For marking calendar entries, there is no such
thing as the variable diary-list-entries where "other sources of
diary entries" (beyond diary files) could feed there entries to,
which are then all processed to generate the marking of the calendar
buffer.

Am I missing something?



In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2013-10-04 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.3 LTS





             reply	other threads:[~2013-11-28 14:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 14:40 Roland Winkler [this message]
2013-11-30 23:08 ` bug#15987: 24.3; diary-add-to-list ignored by diary-mark-entries Glenn Morris
2013-12-01  1:25   ` Roland Winkler
2013-12-01 12:03     ` Stephen Berman
2013-12-02  1:46       ` Roland Winkler
2019-08-18 17:55 ` Stefan Kangas
2019-08-21  2:48   ` Roland Winkler
2019-08-21  3:06     ` Stefan Kangas
2019-08-21  3:41       ` Roland Winkler
2019-08-21 13:29         ` Stefan Kangas
2019-08-21 14:10           ` Stephen Berman
2019-08-21 15:46             ` Roland Winkler
2019-08-21 16:31               ` Stephen Berman
2019-08-21 16:46                 ` Roland Winkler

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87a9gopp20.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=15987@debbugs.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.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).