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

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

Re: Journal package for Emacs?


From: David Forrest
Subject: Re: Journal package for Emacs?
Date: Mon, 9 Sep 2002 11:53:56 -0400 (EDT)

On 9 Sep 2002, Stefan Monnier <address@hidden> wrote:

> >>>>> "David" == David Forrest <address@hidden> writes:
> > Is this good elisp?
>
> Hmm... I'm sorry to say I've seen better:

Thanks, I was certain that was true, and I appreciate your response.
I now have:

(defun my-journal-hook ()
  "Append time stamp to -*- is-journal: t -*- files."
  (when (local-variable-p 'is-journal))
    (end-of-buffer)
    (insert-current-time)))

>
> >   (if (local-variable-p 'is-journal)
>
> What for exactly ?  `local-variable-p' should basically never be used,
> except for very unusual circumstances.

I was looking for a function like 'defined' and am probably missing
something very basic.  (when 'is-journal) is always true and stamps
everything, while (when is-journal) stamps journal files, but faults with
"Symbol's value as variable is void: is-journal"

Thanks again for your time,
Dave
-- 
 Dave Forrest                                   address@hidden
 (804)642-0662h (434)924-3954w  http://mug.sys.virginia.edu/~drf5n/





reply via email to

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