all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* calendar/diary/appt: diary-lunar-phases should not create appointments
@ 2011-11-22 17:42 Sam Steingold
  2011-11-22 18:27 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Steingold @ 2011-11-22 17:42 UTC (permalink / raw)
  To: emacs-devel

Hi,
I have
&%%(diary-sunrise-sunset)
&%%(diary-lunar-phases)
which results in emacs nagging me about moon phases and sunsets.
I don't think this is right: I want to be able to see the times when the
lunar phases and sunsets happen (and, btw, moon rises and moon sets, but
they are not available), but I do not want to do anything when they
actually do happen.
Is there a way to prevent some diary entries containing times from being
interpreted as appointments?

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://thereligionofpeace.com http://www.PetitionOnline.com/tap12009/
http://openvotingconsortium.org http://jihadwatch.org http://camera.org
Before telling the Truth, make sure you know it.




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

* Re: calendar/diary/appt: diary-lunar-phases should not create appointments
  2011-11-22 17:42 calendar/diary/appt: diary-lunar-phases should not create appointments Sam Steingold
@ 2011-11-22 18:27 ` Glenn Morris
  2015-02-25 20:34   ` Thorsten Bonow
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2011-11-22 18:27 UTC (permalink / raw)
  To: emacs-devel

Sam Steingold wrote:

> &%%(diary-sunrise-sunset)
> &%%(diary-lunar-phases)
> which results in emacs nagging me about moon phases and sunsets.

I can't reproduce this.
Please give a complete example starting from emacs -Q that shows sunsets
ending up in appt-time-msg-list.



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

* Re: calendar/diary/appt: diary-lunar-phases should not create appointments
  2011-11-22 18:27 ` Glenn Morris
@ 2015-02-25 20:34   ` Thorsten Bonow
  2015-02-26  0:05     ` Thorsten Bonow
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Bonow @ 2015-02-25 20:34 UTC (permalink / raw)
  To: emacs-devel

>>>>> "GM" == Glenn Morris <rgm@gnu.org> writes:

GM> Sam Steingold wrote:
>> &%%(diary-sunrise-sunset) &%%(diary-lunar-phases) which results in
>> emacs nagging me about moon phases and sunsets.

GM> I can't reproduce this.  Please give a complete example starting
GM> from emacs -Q that shows sunsets ending up in appt-time-msg-list.

Hi, sry for being somewhat late to the party...

The behaviour still shows up in my GNU Emacs 24.4.1 when you manually
add an appointment via 'appt-add':

emacs -Q
M-x load-library calendar
M-x customize-apropos diary-file

Set the variable to "~/diary-test" and saved it for the current
session only; the diary file contains only one line:

%%(diary-lunar-phases)

M-x diary displayed "First Quarter Moon 18:15 (CET)" correctly

M-x load-library appt
C-h v appt-time-msg-list: Its value is nil

But then I inserted

(appt-add "5:00pm" "Tea!" 5)

into the "scratch" buffer and evaluated the expression; now the
variable contained the time for the lunar phase:

appt-time-msg-list is a variable defined in `appt.el'.
Its value is (((1020) "5:00pm Tea!" t 5) ((1095) "6:15pm (CET)"))

I did this before 6:15pm, after emacs had started nagging me about my
appointment with Mr Moon. It doesn't show up now. I will have to wait
till after midnight before I can try with "%%diary-sunrise-sunset",
but you have to specify coordinates for that to work.

Toto


-- 
People who advocate simplicity have money in the bank; the money
came first, not the simplicity.

Douglas Coupland: JPod



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

* Re: calendar/diary/appt: diary-lunar-phases should not create appointments
  2015-02-25 20:34   ` Thorsten Bonow
@ 2015-02-26  0:05     ` Thorsten Bonow
  0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Bonow @ 2015-02-26  0:05 UTC (permalink / raw)
  To: emacs-devel

>>>>> "Toto" == Thorsten Bonow <thorsten.bonow@withouthat.org> writes:

>>>>> "GM" == Glenn Morris <rgm@gnu.org> writes:
GM> Sam Steingold wrote:
>>> &%%(diary-sunrise-sunset) &%%(diary-lunar-phases) which results in
>>> emacs nagging me about moon phases and sunsets.

GM> I can't reproduce this.  Please give a complete example starting
GM> from emacs -Q that shows sunsets ending up in appt-time-msg-list.

Toto> The behaviour still shows up in my GNU Emacs 24.4.1 when you
Toto> manually add an appointment via 'appt-add':

[...]

The following is faster and makes it easier to show the effect:

emacs -Q

Eval this:

(setq calendar-latitude [49 55 north])
(setq calendar-longitude [7 4 east])
;; diary-test has only one line: "%%(diary-sunrise-sunset)"
(setq diary-file "~/42/diary-test")
(require 'calendar)
(require 'appt)
(appt-add "5:00pm" "Tea!" 5)

C-h v appt-time-msg-list:

appt-time-msg-list is a variable defined in `appt.el'.
Its value is (((443)
  "7:23am (CET), sunset 6:07pm (CET) at 49.9N, 7.1E (10:44 hours daylight)")
 ((1020)
  "5:00pm Tea!" t 5))


Toto

-- 
College will guarantee you a higher lifelong income, and friends
made in college last longer than those made in real life.

Douglas Coupland: JPod



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

end of thread, other threads:[~2015-02-26  0:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 17:42 calendar/diary/appt: diary-lunar-phases should not create appointments Sam Steingold
2011-11-22 18:27 ` Glenn Morris
2015-02-25 20:34   ` Thorsten Bonow
2015-02-26  0:05     ` Thorsten Bonow

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.