From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#15987: 24.3; diary-add-to-list ignored by diary-mark-entries Date: Sat, 30 Nov 2013 18:08:37 -0500 Message-ID: <13mwkl32tm.fsf@fencepost.gnu.org> References: <87a9gopp20.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385852943 31690 80.91.229.3 (30 Nov 2013 23:09:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Nov 2013 23:09:03 +0000 (UTC) Cc: 15987@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 00:09:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vmteu-0005cq-67 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 00:09:08 +0100 Original-Received: from localhost ([::1]:53506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmtet-0000i2-Nr for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 18:09:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmtep-0000dp-MZ for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:09:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmteo-0002Oj-N5 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:09:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmteo-0002Od-KA for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vmteo-00021z-6w for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:09:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87a9gopp20.fsf@gnu.org> Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2013 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15987 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15987-submit@debbugs.gnu.org id=B15987.13858529227780 (code B ref 15987); Sat, 30 Nov 2013 23:09:02 +0000 Original-Received: (at 15987) by debbugs.gnu.org; 30 Nov 2013 23:08:42 +0000 Original-Received: from localhost ([127.0.0.1]:52159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmteT-00021Q-NA for submit@debbugs.gnu.org; Sat, 30 Nov 2013 18:08:41 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49103 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmteR-00021G-1I for 15987@debbugs.gnu.org; Sat, 30 Nov 2013 18:08:39 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VmteP-0003x1-W6; Sat, 30 Nov 2013 18:08:38 -0500 X-Spook: freedom Firewalls PET military anarchy Adriatic benelux X-Ran: 0o|w@8VT=(AFOPf`B93/ztwXM'\e,BvhTY4;/a[=yupbqn*#ZED~pYyT;J')4aPz?z"6Z@ X-Hue: red X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81170 Archived-At: "Roland Winkler" wrote: > 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. Not sure I agree. It may happen to do something, but this function is intended to be used to add entries from a literal diary file. These days, it might be called "diary--add-to-list". diary-entries-list is dynamically bound during certain diary operations, it is not a generally accessible variable. > 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. It's intended to mark entries from a diary-file, not arbitrary sources. So I view this as a wishlist item to have non-diary sources treated as diary entries. I don't think this is going to be a high priority for me to implement, because it doesn't make much sense to me. Eg what will happen when you press "d" on such a marked date in the calendar? This "Searches the file named in `diary-file' for entries that match [the date]". There will be no file to search. Instead you could simply have a function that exports bbdb data to a diary file, and include it from the main diary file. Then everything would just work, right now. I mean, you can do something horrible with hooks, eg (add-hook 'diary-mark-entries-hook (lambda () (calendar-mark-date-pattern 11 11 2013))) But don't do that, just export a diary file.