From unknown Sat Sep 06 03:34:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7019 <7019@debbugs.gnu.org> To: bug#7019 <7019@debbugs.gnu.org> Subject: Status: appointments and unsorted diary-entries-list Reply-To: bug#7019 <7019@debbugs.gnu.org> Date: Sat, 06 Sep 2025 10:34:36 +0000 retitle 7019 appointments and unsorted diary-entries-list reassign 7019 emacs submitter 7019 Leo severity 7019 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 12 05:59:19 2010 Received: (at submit) by debbugs.gnu.org; 12 Sep 2010 09:59:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OujLC-0006Mp-RT for submit@debbugs.gnu.org; Sun, 12 Sep 2010 05:59:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OujLA-0006Mj-Jz for submit@debbugs.gnu.org; Sun, 12 Sep 2010 05:59:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OujNE-0007ps-KQ for submit@debbugs.gnu.org; Sun, 12 Sep 2010 06:01:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL, T_TVD_MIME_NO_HEADERS autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:35739) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OujNE-0007po-IB for submit@debbugs.gnu.org; Sun, 12 Sep 2010 06:01:24 -0400 Received: from [140.186.70.92] (port=36667 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OujND-0001nF-GR for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 06:01:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OujNC-0007pP-8P for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 06:01:23 -0400 Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132]:37733) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OujNC-0007pH-0u for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 06:01:22 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]:52528 helo=Victoria.local) by ppsw-32.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1OujN9-0005rP-2m (Exim 4.72) for bug-gnu-emacs@gnu.org (return-path ); Sun, 12 Sep 2010 11:01:20 +0100 From: Leo To: bug-gnu-emacs@gnu.org Subject: 23.2; [PATCH] fix bugs in diary/appt Date: Sun, 12 Sep 2010 11:01:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) --=-=-= Emacs failed to notice me some appointments (fortunately they are not important). Here is the finding: The doc string of diary-list-entries says the return list is sorted, which is not the case. (add-hook 'diary-list-entries-hook 'diary-sort-entries) is not guaranteed to work unless that is the very last function to run. Other functions in that hook can modify the entries too, for example, diary-include-other-diary-files. The first patch fixes these issues. Another fix will be to fix the doc string to state that the returned list is not sorted. appt-make-list replies on sorted diary entries to work. The second patch explicitly sorts the list before processing. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Respect-the-doc-string-and-return-sorted-diary-entri.patch >From 1b678c6c0601f500321cfb037467f6d393f0e7eb Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 12 Sep 2010 10:36:11 +0100 Subject: [PATCH 1/2] Respect the doc string and return sorted diary entries --- lisp/calendar/diary-lib.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 39354bd..3c748ac 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -187,7 +187,6 @@ you will probably also want to add `diary-mark-included-diary-files' to (setq diary-display-function 'diary-fancy-display) (add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) - (add-hook 'diary-list-entries-hook 'diary-sort-entries) in your `.emacs' file to cause the fancy diary buffer to be displayed with diary entries from various included files, each day's entries sorted into @@ -789,6 +788,7 @@ LIST-ONLY is non-nil, in which case it just returns the list." (goto-char (point-min)) (run-hooks 'diary-nongregorian-listing-hook 'diary-list-entries-hook) + (diary-sort-entries) (unless list-only (if (and diary-display-function (listp diary-display-function)) -- 1.7.2 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-Make-appt-make-list-more-robust.patch >From 7d29e59fb61a8ef76e1c5c583a52cc25b32fba41 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 12 Sep 2010 10:41:19 +0100 Subject: [PATCH 2/2] Make appt-make-list more robust It depends on a list of sorted diary entries to work; so explicitly sort the entries. --- lisp/calendar/appt.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index b590290..53469b0 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el @@ -572,7 +572,8 @@ appointment package (if it is not already active)." ;; looking for entries beginning with a time. If the ;; entry begins with a time, add it to the ;; appt-time-msg-list. Then sort the list. - (let ((entry-list diary-entries-list) + (let ((entry-list (sort (copy-sequence diary-entries-list) + 'diary-entry-compare)) time-string) ;; Skip diary entries for dates before today. (while (and entry-list -- 1.7.2 --=-=-= Leo --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 13 20:23:41 2010 Received: (at 7019) by debbugs.gnu.org; 14 Sep 2010 00:23:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvJJE-000053-MF for submit@debbugs.gnu.org; Mon, 13 Sep 2010 20:23:40 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvJJC-00004x-7X for 7019@debbugs.gnu.org; Mon, 13 Sep 2010 20:23:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvJLX-00084k-Oz; Mon, 13 Sep 2010 20:26:03 -0400 To: Leo Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: From: Glenn Morris X-Spook: JPL rs9512c Consul Rule Psix Blowfish Centro undercover X-Ran: f&in2c2InA`2Y[82;*jUW2{Ze[^W#$+:MK;5;\#$4/K*yhCKE)vScIGN,LD&cDoveu=oYg X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 13 Sep 2010 20:26:03 -0400 Message-ID: <2939td5fxg.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Leo wrote: > The doc string of diary-list-entries says the return list is sorted, Where does it say that? Oh, I guess you might mean: Returns a list of all relevant diary entries found, if any, in order by date. Which is true unless include files are involved. Note it does not mean that entries are also sorted by time of day. I don't think sorting by default is the right solution. I might just mention in the docs that if include files are used, the order will day order for the entries from any given file, then by the order in which the include files were processed. Some people might want it that way (eg not sorted by time of day), and those who don't are probably aready using diary-sort-entries. The fact that the entries are in day order is really just a consequence of how the code is implemented, rather than a deliberate choice. > (add-hook 'diary-list-entries-hook 'diary-sort-entries) is not > guaranteed to work unless that is the very last function to run. OK, I think that should just be pointed out in the docs. (The manual sort of does this without being explicit.) > appt-make-list replies on sorted diary entries to work. Looks like it relies on them being sorted in _day_ order, but not in _time_ order within any given day. Again, this is true unless include files are involved. I guess this is why nobody noticed till now. I'll fix that somehow. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 02:40:53 2010 Received: (at submit) by debbugs.gnu.org; 14 Sep 2010 06:40:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvPCG-0002m3-78 for submit@debbugs.gnu.org; Tue, 14 Sep 2010 02:40:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvPCD-0002lw-QV for submit@debbugs.gnu.org; Tue, 14 Sep 2010 02:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvPEM-0001GR-Q5 for submit@debbugs.gnu.org; Tue, 14 Sep 2010 02:43:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34190) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvPEM-0001GN-Nh for submit@debbugs.gnu.org; Tue, 14 Sep 2010 02:43:02 -0400 Received: from [140.186.70.92] (port=45166 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvPEL-0007qr-C3 for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2010 02:43:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvPEK-0001Fx-64 for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2010 02:43:01 -0400 Received: from lo.gmane.org ([80.91.229.12]:52258) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvPEJ-0001Fi-Q8 for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2010 02:43:00 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OvPEI-0001OS-Au for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2010 08:42:58 +0200 Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2010 08:42:58 +0200 Received: from sdl.web by cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2010 08:42:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt Date: Tue, 14 Sep 2010 07:42:50 +0100 Lines: 42 Message-ID: References: <2939td5fxg.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUKDAg1NjRWV1V9fnyg op/DxcLk5uP8/voi63ReAAAACXBIWXMAAAWJAAAFiQFtaJ36AAAAB3RJTUUH1goZAgAz00bgXgAA AeVJREFUKM9lk0Fz2jAQhQXJD3CCO70CmcC1YMtcWyTZ14Bl69xats4N9r6/3zWQBlodNKNPu/s0 b1cCQFuZGpfVVh3vAvBJolIXRkapSuoRUtIdFyo1Y5xSdlAj7OtvD1XnXxmWRi+eWgcxyCed1lVV B1CrKyujMoi+eLA5kU1SsjoHlW+nQjTtFxk4MXgrOxvIqzoTZR8XgPaLl419zgsMaSGFPiUOZCIh thsx5Xy9NsK8Kwf/JoQgMxcVJ301HKkcSWaT0O7FY056J4U9xcYfnmVXG4801lW6lqwu2nKFZoHC HuzvaTVndZ+LaRQgZdthXw1cpynEkLEwyFHXk/aIxNQ6QeooJuzPMB+wn+D7JJNsiCcVA13/A3h/ xE9J+WidpAwoYNmRFwyvSRhNVtsdaAewzZZP5uw82QL9+tyNfocyP0McAzICUr5Mk9RdIjWasUNx aIIt6NK4ZtXIMdfMQt3nuMAyWbLI4DqZ4xPq/ag8jPond4XU/cLuOgw6XCFX/YCUfcDAMMH58fD4 G9kDchwfqVefkBwup2uZM+Q4WhJt5jN3AxXCsaS2yXEDuWgS8VOzW0gFjhEPmLyFMKBFaLb1HRwc DiaKwx0EeTMRYnYPQRW3PP4HApvlMv0PttX5v/D6Aws3IOSEwzmLAAAAAElFTkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) Cancel-Lock: sha1:HzWjHskYPrJk3p7kqooSoxvpKcM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) On 2010-09-14 01:26 +0100, Glenn Morris wrote: > Leo wrote: > >> The doc string of diary-list-entries says the return list is sorted, > > Where does it say that? Oh, I guess you might mean: > > Returns a list of all relevant diary entries found, if any, in order > by date. > > Which is true unless include files are involved. Note it does not mean > that entries are also sorted by time of day. I don't think sorting by > default is the right solution. I might just mention in the docs that > if include files are used, the order will day order for the entries > from any given file, then by the order in which the include files were > processed. Some people might want it that way (eg not sorted by time > of day), and those who don't are probably aready using > diary-sort-entries. The fact that the entries are in day order is > really just a consequence of how the code is implemented, rather than > a deliberate choice. > >> (add-hook 'diary-list-entries-hook 'diary-sort-entries) is not >> guaranteed to work unless that is the very last function to run. > > OK, I think that should just be pointed out in the docs. > (The manual sort of does this without being explicit.) > >> appt-make-list replies on sorted diary entries to work. > > Looks like it relies on them being sorted in _day_ order, but not in > _time_ order within any given day. Again, this is true unless include > files are involved. I guess this is why nobody noticed till now. I'll > fix that somehow. Sorry I should be more explicit. I meant date order in all of them. I think emacs should try its best not to miss any appointments recorded in it. For example, diary-list-entries-hook is user level variable, so anything could happen to it, say someone accidentally adds a function that shuffles diary-entry-list and that could screw up appt. Thanks. Leo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 20:28:04 2010 Received: (at 7019) by debbugs.gnu.org; 15 Sep 2010 00:28:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovfr2-00053K-1f for submit@debbugs.gnu.org; Tue, 14 Sep 2010 20:28:04 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovfqz-00052y-Ri for 7019@debbugs.gnu.org; Tue, 14 Sep 2010 20:28:02 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvftQ-0005Dt-Iq; Tue, 14 Sep 2010 20:30:32 -0400 To: Leo Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: From: Glenn Morris X-Spook: high security Sears Tower NSA csystems codes BATF enemy X-Ran: AZqf`;/O%*u`TDX[rjQjUq9GCq+W7E5j7m(y_A.78i[$>cI\%H$i/\ql|NxLyi^%pnoYc; X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 14 Sep 2010 20:30:32 -0400 In-Reply-To: (Leo's message of "Sun\, 12 Sep 2010 11\:01\:19 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Leo wrote: > Emacs failed to notice me some appointments (fortunately they are not > important). Could you explain precisely how this happened, from `emacs -Q'? Using diary-number-of-entries > 1 and include files? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 22:55:46 2010 Received: (at 7019) by debbugs.gnu.org; 15 Sep 2010 02:55:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovi9y-000616-8O for submit@debbugs.gnu.org; Tue, 14 Sep 2010 22:55:46 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovi9w-00060z-Fb for 7019@debbugs.gnu.org; Tue, 14 Sep 2010 22:55:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OviCN-0008LH-GF; Tue, 14 Sep 2010 22:58:15 -0400 To: Leo Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: From: Glenn Morris X-Spook: passwd sniper Noriega warfare Croatian CESID Guantanamo X-Ran: wQia!;-8U9Cc]&,Ib9doYlW]q{dyIZ]X~lmJh-=M`E*g?(G=S+ghlr_9ie|Hp:1_a%@{b7 X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 14 Sep 2010 22:58:15 -0400 In-Reply-To: (Glenn Morris's message of "Tue\, 14 Sep 2010 20\:30\:32 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) I've fixed the only case I can think of, in the emacs-23 branch. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 03:07:35 2010 Received: (at 7019) by debbugs.gnu.org; 15 Sep 2010 07:07:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovm5f-0007jD-1K for submit@debbugs.gnu.org; Wed, 15 Sep 2010 03:07:35 -0400 Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovm5d-0007j8-6Z for 7019@debbugs.gnu.org; Wed, 15 Sep 2010 03:07:33 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]:49464 helo=Victoria.local) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1Ovm7p-0001gg-g5 (Exim 4.72) (return-path ); Wed, 15 Sep 2010 08:09:49 +0100 From: Leo To: Glenn Morris Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: Date: Wed, 15 Sep 2010 08:09:47 +0100 In-Reply-To: (Glenn Morris's message of "Tue, 14 Sep 2010 20:30:32 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) --=-=-= On 2010-09-15 01:30 +0100, Glenn Morris wrote: > Leo wrote: > >> Emacs failed to notice me some appointments (fortunately they are not >> important). > > Could you explain precisely how this happened, from `emacs -Q'? > > Using diary-number-of-entries > 1 and include files? In the main diary file, I have an appointment on Sunday. In the included, another one Today. Without sorting, Today's appointment is not in appt-time-msg-list. So basically put the attached diary and others files in $HOME and emacs -q -l test.el and check appt-time-msg-list. --=-=-= Content-Disposition: attachment; filename=diary Content-Description: diary Saturday 23:59 Exercise #include "others" --=-=-= Content-Disposition: attachment; filename=others Content-Description: others Wednesday 23:59 meeting --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=test.el Content-Transfer-Encoding: quoted-printable Content-Description: test.el (require 'calendar) (setq diary-number-of-entries 7) (add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) (appt-activate 1) --=-=-= Leo --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 03:16:41 2010 Received: (at 7019) by debbugs.gnu.org; 15 Sep 2010 07:16:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvmET-0007nH-Fo for submit@debbugs.gnu.org; Wed, 15 Sep 2010 03:16:41 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvmER-0007nB-D0 for 7019@debbugs.gnu.org; Wed, 15 Sep 2010 03:16:39 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvmGr-0004wU-Es; Wed, 15 Sep 2010 03:19:09 -0400 To: Leo Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: From: Glenn Morris X-Spook: passwd kibo Rand Corporation lynch e-cash threat Perl-RSA X-Ran: 19([D4G8^!=x?F4i~&9jzv<"#+\^Ux+/e2u\y4d18&Apj_L~$2.kC?4nk@Y$y:RYJOZ`:' X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 15 Sep 2010 03:19:09 -0400 In-Reply-To: (Leo's message of "Wed\, 15 Sep 2010 08\:09\:47 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Leo wrote: >> Using diary-number-of-entries > 1 and include files? [...] > (setq diary-number-of-entries 7) Right, thought so. Should be fixed in emacs-23. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 19:58:34 2010 Received: (at 7019) by debbugs.gnu.org; 15 Sep 2010 23:58:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow1s1-0006mK-Sr for submit@debbugs.gnu.org; Wed, 15 Sep 2010 19:58:34 -0400 Received: from ppsw-30.csi.cam.ac.uk ([131.111.8.130]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow1rz-0006mF-5G for 7019@debbugs.gnu.org; Wed, 15 Sep 2010 19:58:31 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]:63083 helo=Victoria.local) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1Ow1uC-0004Pq-fO (Exim 4.72) (return-path ); Thu, 16 Sep 2010 01:00:48 +0100 From: Leo To: Glenn Morris Subject: Re: bug#7019: 23.2; [PATCH] fix bugs in diary/appt References: Date: Thu, 16 Sep 2010 01:00:46 +0100 In-Reply-To: (Glenn Morris's message of "Wed, 15 Sep 2010 03:19:09 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 7019 Cc: 7019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) On 2010-09-15 08:19 +0100, Glenn Morris wrote: >>> Using diary-number-of-entries > 1 and include files? > [...] >> (setq diary-number-of-entries 7) > > Right, thought so. Should be fixed in emacs-23. Thank you. Leo From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 23:58:03 2010 Received: (at control) by debbugs.gnu.org; 16 Sep 2010 03:58:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow5bm-0008Gk-Lf for submit@debbugs.gnu.org; Wed, 15 Sep 2010 23:58:03 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow5bl-0008GO-3Z for control@debbugs.gnu.org; Wed, 15 Sep 2010 23:58:01 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ow5eG-00053Z-LT; Thu, 16 Sep 2010 00:00:36 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19601.38500.516971.274103@fencepost.gnu.org> Date: Thu, 16 Sep 2010 00:00:36 -0400 From: Glenn Morris To: control Subject: control X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) close 7001 close 7005 close 7013 close 7019 From unknown Sat Sep 06 03:34:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Oct 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator