From: Leo <sdl.web@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#7019: 23.2; [PATCH] fix bugs in diary/appt
Date: Tue, 14 Sep 2010 07:42:50 +0100 [thread overview]
Message-ID: <m17hiobzbp.fsf@cam.ac.uk> (raw)
In-Reply-To: <m1aannxouo.fsf@cam.ac.uk>
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
next prev parent reply other threads:[~2010-09-14 6:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-12 10:01 bug#7019: 23.2; [PATCH] fix bugs in diary/appt Leo
2010-09-14 0:26 ` Glenn Morris
2010-09-14 6:42 ` Leo [this message]
2010-09-15 0:30 ` Glenn Morris
2010-09-15 2:58 ` Glenn Morris
2010-09-15 7:09 ` Leo
2010-09-15 7:19 ` Glenn Morris
2010-09-16 0:00 ` Leo
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=m17hiobzbp.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=bug-gnu-emacs@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).