From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#15987: 24.3; diary-add-to-list ignored by diary-mark-entries Date: Sat, 30 Nov 2013 19:25:11 -0600 Message-ID: <21146.36855.78802.434475@gargle.gargle.HOWL> References: <87a9gopp20.fsf@gnu.org> <13mwkl32tm.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385861164 8471 80.91.229.3 (1 Dec 2013 01:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Dec 2013 01:26:04 +0000 (UTC) Cc: 15987@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 02:26: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 1VmvnU-0007Qo-5B for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 02:26:08 +0100 Original-Received: from localhost ([::1]:53793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmvnT-0007iZ-Gu for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 20:26:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmvnQ-0007ha-7P for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 20:26:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmvnP-0007rK-8B for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 20:26:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmvnP-0007rE-4m for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 20:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VmvnO-0005DM-HK for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 20:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2013 01:26: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.138586112319998 (code B ref 15987); Sun, 01 Dec 2013 01:26:02 +0000 Original-Received: (at 15987) by debbugs.gnu.org; 1 Dec 2013 01:25:23 +0000 Original-Received: from localhost ([127.0.0.1]:52245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmvmj-0005CR-Vk for submit@debbugs.gnu.org; Sat, 30 Nov 2013 20:25:22 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:50917 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmvme-0005CE-DR for 15987@debbugs.gnu.org; Sat, 30 Nov 2013 20:25:17 -0500 Original-Received: from ip98-171-161-69.sb.sd.cox.net ([98.171.161.69]:44032 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Vmvmb-0007oB-W5; Sat, 30 Nov 2013 20:25:14 -0500 In-Reply-To: <13mwkl32tm.fsf@fencepost.gnu.org> X-Mailer: VM 8.2 trial under 24.3.1 (x86_64-unknown-linux-gnu) 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:81172 Archived-At: On Sat Nov 30 2013 Glenn Morris wrote: > 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. BBDB's context is that bbdb-anniv-diary-entries is added to diary-list-entries-hook (which is run when diary-entries-list is properly bound). The function bbdb-anniv-diary-entries then calls diary-add-to-list. This approach has been used by BBDB for 15 years and I believe that quite a few people have liked this. No matter whether you consider this approach clean or not, I think it is reasonable to have *some* mechanism for adding diary entries from other sources than just diary files. > 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? Well, it would be nice to have some mechanism to let the external source of diary entries define what should happen. I mean, in the case of BBDB this is obvious: when pressing "d" this should then jump to the respective BBDB record. > 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 don't know whether it makes much sense to jump to an entry in such an auto-generated file. I'd be rather confused.