unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8039: appt-add problems
@ 2011-02-14 21:58 Hobbit
  2011-02-15  1:44 ` Glenn Morris
  2011-02-15 10:19 ` Hobbit
  0 siblings, 2 replies; 5+ messages in thread
From: Hobbit @ 2011-02-14 21:58 UTC (permalink / raw)
  To: 8039

How to repair appointments in Emacs? E.g. 2 problems (case 2. when there are no notification at deadline and with "app't in % min" indicator which shows incorrect time). 


Just for example I run "emacs -q" and evaluate in *scratch* buffer next settings (usually I use .emacs, of course):

(display-time)
(setq
 appt-message-warning-time 5
 appt-display-mode-line t)
(appt-activate 1)

When I add notifications on such time I get:
1. current_time + 1 minute - Emacs shows notification in correct time;
2. current_time + 6 minutes - shows two notifications, one before 5 minutes and second before 2 minutes to deadline (in time, 0 minutes to deadline, - nothing comes up).

At the same time in Mode Line "App't in % min" shows time, which is current_time - 1 minute (if there are 3 minutes to deadline it shows only 2). What's surprising is that in clock (which is (display-time)'s work) time is correct (like [h@localhost$ date] displays).





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#8039: appt-add problems
  2011-02-14 21:58 bug#8039: appt-add problems Hobbit
@ 2011-02-15  1:44 ` Glenn Morris
  2011-02-15 10:19 ` Hobbit
  1 sibling, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2011-02-15  1:44 UTC (permalink / raw)
  To: Hobbit; +Cc: 8039

Hobbit wrote:

> (setq
>  appt-message-warning-time 5
>  appt-display-mode-line t)

Does it help to make appt-message-warning-time a multiple of
appt-display-interval?

Eg (setq appt-message-warning-time 6
         appt-display-interval 2)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#8039: appt-add problems
  2011-02-14 21:58 bug#8039: appt-add problems Hobbit
  2011-02-15  1:44 ` Glenn Morris
@ 2011-02-15 10:19 ` Hobbit
  2011-05-16 22:43   ` Glenn Morris
  1 sibling, 1 reply; 5+ messages in thread
From: Hobbit @ 2011-02-15 10:19 UTC (permalink / raw)
  To: bug-gnu-emacs

>(setq appt-message-warning-time 6
>         appt-display-interval 2)

I tried this code snippet. It seems to solve problem by 99%. The only
minus is that on deadline Emacs tells that "Appointment in 1 min."
instead of "Appointment now" (and when "Appointment in 5 min."
it means it will be in 4 minutes).


The results are in the tables. The first column shows when Emacs
displays warnings and second shows what time was at that moment (by
h@localhost$ date)
         
         
If I execute M-x appt-add with deadline at 11:32:

| Appointment in 5 min. | 11:28 |
| Appointment in 3 min. | 11:30 |
| Appointment in 1 min. | 11:32 |

If I execute M-x appt-add with deadline at 11:39:

| Appointment in  5 min. | 11:35 |
| Appointment in  3 min. | 11:37 |
| Appointment in  1 min. | 11:39 |





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#8039: appt-add problems
  2011-02-15 10:19 ` Hobbit
@ 2011-05-16 22:43   ` Glenn Morris
  2011-07-14 17:50     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2011-05-16 22:43 UTC (permalink / raw)
  To: Hobbit; +Cc: 8039

Hobbit wrote:

>>(setq appt-message-warning-time 6
>>         appt-display-interval 2)
>
> I tried this code snippet. It seems to solve problem by 99%.

I will add some documentation saying that the former should be a
multiple of the latter.

>  The only minus is that on deadline Emacs tells that "Appointment in 1
> min." instead of "Appointment now" (and when "Appointment in 5 min."
> it means it will be in 4 minutes).

I cannot reproduce this, and can't really see how this could happen.
Which Emacs version and platform is this, and does it happen starting
from `emacs -q --no-site-file'?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#8039: appt-add problems
  2011-05-16 22:43   ` Glenn Morris
@ 2011-07-14 17:50     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-14 17:50 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Hobbit, 8039

Glenn Morris <rgm@gnu.org> writes:

> I cannot reproduce this, and can't really see how this could happen.
> Which Emacs version and platform is this, and does it happen starting
> from `emacs -q --no-site-file'?

More information was requested two months ago, and was apparently not
given, so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-14 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 21:58 bug#8039: appt-add problems Hobbit
2011-02-15  1:44 ` Glenn Morris
2011-02-15 10:19 ` Hobbit
2011-05-16 22:43   ` Glenn Morris
2011-07-14 17:50     ` Lars Magne Ingebrigtsen

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).