From: reingold@emr.cs.iit.edu (Edward M. Reingold)
Subject: Re: emacs diary/calendar insert day (i-d)
Date: 11 Nov 2002 11:23:00 -0600 [thread overview]
Message-ID: <85k7jkuikr.fsf@emr.cs.iit.edu> (raw)
In-Reply-To: 85n0oguot2.fsf@emr.cs.iit.edu
>>>>> "EMR" == Edward M Reingold <reingold@emr.cs.iit.edu> writes:
JS=> I hope the future versions of diary functions will take care of local
JS=> variables blocks.
EMR> Yes, that really is a bug. I will try to see that it gets fixed
EMR> soon. --
Can somebody test this in Emacs 21 (which I don't use yet):
(defun make-diary-entry (string &optional nonmarking file)
"Insert a diary entry STRING which may be NONMARKING in FILE.
If omitted, NONMARKING defaults to nil and FILE defaults to diary-file."
(find-file-other-window
(substitute-in-file-name (if file file diary-file)))
(widen)
(goto-char (point-max))
(if (let ((case-fold-search t))
(search-backward "Local Variables:"
(max (- (point-max) 3000) (point-min))
t))
(progn
(beginning-of-line)
(insert "\n")
(previous-line 1)))
(insert
(if (bolp) "" "\n")
(if nonmarking diary-nonmarking-symbol "")
string " "))
--
Professor Edward M. Reingold Email: reingold@iit.edu
Chairman, Department of Computer Science Voice: (312) 567-3309
Illinois Institute of Technology Assistant: (312) 567-5152
Stuart Building Fax: (312) 567-5067
10 West 31st Street, Suite 236
Chicago, IL 60616-3729 U.S.A.
next prev parent reply other threads:[~2002-11-11 17:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 0:57 emacs diary/calendar insert day (i-d) mr.sparkle
2002-11-05 18:36 ` Matthias Meulien
2002-11-05 18:52 ` Alan Shutko
2002-11-09 19:46 ` Janusz S. Bień
[not found] ` <mailman.1036861638.12745.help-gnu-emacs@gnu.org>
2002-11-10 1:53 ` Alan Shutko
2002-11-10 10:26 ` Matthias Meulien
2002-11-11 10:11 ` Janusz S. Bień
[not found] ` <mailman.1036999692.28763.help-gnu-emacs@gnu.org>
2002-11-11 15:08 ` Edward M. Reingold
2002-11-11 17:23 ` Edward M. Reingold [this message]
2002-11-13 5:11 ` mr.sparkle
2002-11-07 18:25 ` Edward M. Reingold
2002-11-07 23:38 ` mr.sparkle
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=85k7jkuikr.fsf@emr.cs.iit.edu \
--to=reingold@emr.cs.iit.edu \
/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.
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).