From: David Forrest <drf5n@mug.sys.virginia.edu>
Cc: <help-gnu-emacs@gnu.org>
Subject: Re: Journal package for Emacs?
Date: Mon, 9 Sep 2002 11:53:56 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.33.0209091139040.10457-100000@mug.sys.virginia.edu> (raw)
In-Reply-To: <5ln0qrtdym.fsf@rum.cs.yale.edu>
On 9 Sep 2002, Stefan Monnier <foo@acm.com> wrote:
> >>>>> "David" == David Forrest <drf5n@mug.sys.virginia.edu> 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 drf5n@virginia.edu
(804)642-0662h (434)924-3954w http://mug.sys.virginia.edu/~drf5n/
next prev parent reply other threads:[~2002-09-09 15:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1031541847.25738.help-gnu-emacs@gnu.org>
2002-09-09 14:49 ` Journal package for Emacs? Stefan Monnier <foo@acm.com>
2002-09-09 15:53 ` David Forrest [this message]
[not found] <mailman.1031586979.16781.help-gnu-emacs@gnu.org>
2002-09-09 16:40 ` Jochen Küpper
2002-09-09 17:05 ` David Forrest
2002-09-09 21:25 ` Kevin Rodgers
2002-09-09 22:10 ` Alex Schroeder
2002-09-10 16:07 ` Kevin Rodgers
2002-09-07 14:20 mike hardy
2002-09-07 15:45 ` F. Xavier Noria
2002-09-07 16:02 ` David Forrest
2002-09-07 17:42 ` Thien-Thi Nguyen
2002-09-07 19:30 ` Kai Großjohann
2002-09-07 22:04 ` mike hardy
2002-09-08 20:26 ` Kai Großjohann
2002-09-09 0:17 ` mike hardy
2002-09-09 9:48 ` Francesco Scaglioni
2002-09-09 11:18 ` Galen Boyer
2002-09-09 22:23 ` mike hardy
2002-09-08 6:49 ` Sacha Chua
[not found] ` <mailman.1031467986.16594.help-gnu-emacs@gnu.org>
2002-09-08 20:26 ` Kai Großjohann
2002-09-09 0:22 ` mike hardy
2002-09-09 3:22 ` David Forrest
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=Pine.LNX.4.33.0209091139040.10457-100000@mug.sys.virginia.edu \
--to=drf5n@mug.sys.virginia.edu \
--cc=help-gnu-emacs@gnu.org \
/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).