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: Thu, 28 Nov 2013 08:40:39 -0600 Message-ID: <87a9gopp20.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385649772 20173 80.91.229.3 (28 Nov 2013 14:42:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2013 14:42:52 +0000 (UTC) To: 15987@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 28 15:42:57 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 1Vm2nv-0005oE-2k for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2013 15:42:55 +0100 Original-Received: from localhost ([::1]:42408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2nu-0002oS-Ne for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2013 09:42:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2nB-0001td-Dn for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:42:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm2n5-0002RE-Hr for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:42:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2n5-0002R9-Ek for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vm2n4-0001ug-Sh for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:42:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2013 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15987 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13856496737271 (code B ref -1); Thu, 28 Nov 2013 14:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2013 14:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:48521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm2mC-0001t8-Uu for submit@debbugs.gnu.org; Thu, 28 Nov 2013 09:41:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59364) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm2m9-0001sa-HA for submit@debbugs.gnu.org; Thu, 28 Nov 2013 09:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm2ly-000293-De for submit@debbugs.gnu.org; Thu, 28 Nov 2013 09:41:00 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2lx-00028z-Vp for submit@debbugs.gnu.org; Thu, 28 Nov 2013 09:40:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2lr-0001Fr-Ig for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:40:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm2ll-00026J-GR for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:40:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2ll-00026F-Dg for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:40:41 -0500 Original-Received: from 162-229-45-114.lightspeed.cicril.sbcglobal.net ([162.229.45.114]:53993 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Vm2ll-000187-0N for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2013 09:40:41 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:81047 Archived-At: 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