From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Forrest Newsgroups: gmane.emacs.help Subject: Re: Journal package for Emacs? Date: Mon, 9 Sep 2002 11:53:56 -0400 (EDT) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <5ln0qrtdym.fsf@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1031586979 14266 127.0.0.1 (9 Sep 2002 15:56:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 15:56:19 +0000 (UTC) Cc: Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17oQtb-0003ha-00 for ; Mon, 09 Sep 2002 17:56:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oQtg-0004My-00; Mon, 09 Sep 2002 11:56:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17oQsx-00047b-00 for help-gnu-emacs@gnu.org; Mon, 09 Sep 2002 11:55:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17oQsv-00047P-00 for help-gnu-emacs@gnu.org; Mon, 09 Sep 2002 11:55:34 -0400 Original-Received: from mug.sys.virginia.edu ([128.143.6.251]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oQsu-00047L-00 for help-gnu-emacs@gnu.org; Mon, 09 Sep 2002 11:55:32 -0400 Original-Received: from localhost (drf5n@localhost) by mug.sys.virginia.edu (8.11.4/8.11.4) with ESMTP id g89Fru012596; Mon, 9 Sep 2002 11:53:56 -0400 Original-To: "Stefan Monnier " In-Reply-To: <5ln0qrtdym.fsf@rum.cs.yale.edu> Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1185 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1185 On 9 Sep 2002, Stefan Monnier wrote: > >>>>> "David" == David Forrest 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/