* Re: Insert date from calendar
[not found] <mailman.415.1063961906.21628.help-gnu-emacs@gnu.org>
@ 2003-09-19 10:16 ` Oliver Scholz
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Scholz @ 2003-09-19 10:16 UTC (permalink / raw)
KIRCHE Sébastien <Sebastien.Kirche@sage.com> writes:
[...]
> (defun my-insert-date () (interactive) (insert (calendar-date-string
> (calendar-current-date))))
> I would like to tune this to insert the date corresponding to where the
> cursor is currently
> in the calendar
(when (and (boundp 'calendar-buffer)
(buffer-live-p (get-buffer calendar-buffer))
(let ((str
(with-current-buffer calendar-buffer
(calendar-date-string (calendar-cursor-to-date t)))))
(insert str)))
Oliver
--
Jour du Travail de l'Année 211 de la Révolution
Liberté, Egalité, Fraternité!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Insert date from calendar
@ 2003-09-19 9:00 KIRCHE Sébastien
0 siblings, 0 replies; 2+ messages in thread
From: KIRCHE Sébastien @ 2003-09-19 9:00 UTC (permalink / raw)
Hi,
i have the following defun in my .emacs :
(defun my-insert-date () (interactive) (insert (calendar-date-string
(calendar-current-date))))
I would like to tune this to insert the date corresponding to where the
cursor is currently
in the calendar
But i know very few lisp.
Does someone can help ?
Thanks,
Sébastien Kirche
----------------------------------------------------------------------------
------------------------------------------ Ce message et tous les fichiers
qui y sont attachés contiennent des informations confidentielles,
exclusivement destinées à la personne à laquelle elles sont adressées. Dans
l’hypothèse où ce message ne vous serait pas destiné, nous vous remercions
de le retourner immédiatement à son émetteur et de le supprimer. La
publication, la distribution, l’impression ou tout autre usage non autorisé
de ce message est strictement interdit. Les idées et opinions contenues dans
ce message sont celles de son auteur et ne représentent pas nécessairement
celles du Groupe Sage.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-19 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.415.1063961906.21628.help-gnu-emacs@gnu.org>
2003-09-19 10:16 ` Insert date from calendar Oliver Scholz
2003-09-19 9:00 KIRCHE Sébastien
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).