help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs diary/calendar insert day (i-d)


From: mr.sparkle
Subject: Re: emacs diary/calendar insert day (i-d)
Date: 13 Nov 2002 00:11:58 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

On 11 Nov 2002, reingold@emr.cs.iit.edu wrote:
>>>>>> "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
>     EMR> fixed 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 " "))

This wouldn't evaluate for me


reply via email to

[Prev in Thread] Current Thread [Next in Thread]