From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joakim Hove Newsgroups: gmane.emacs.help Subject: Re: eval: (search-forward) Date: Mon, 18 Oct 2004 09:02:12 +0200 Organization: University of Bergen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098082989 4467 80.91.229.6 (18 Oct 2004 07:03:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 07:03:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 18 09:03:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJRXr-00006d-00 for ; Mon, 18 Oct 2004 09:03:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJRf8-0007Vt-Lw for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Oct 2004 03:10:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: termo1.fi.uib.no Original-X-Trace: toralf.uib.no 1098082938 66339 129.177.39.206 (18 Oct 2004 07:02:18 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 18 Oct 2004 07:02:18 GMT User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:ZbKR4BrRQVD70PEM+RiiiAg+D1Y= Original-Xref: shelby.stanford.edu gnu.emacs.help:125923 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21294 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21294 Albert Reiner writes: > But surprisingly, after the hook is run the boundp test always > fails, as if the buffer-local value went away after initialization. > Any simple fix? Maybe; I think local variables defined on the top of the file are meant only for the initialization, maybe the go out of scope when the initialization is complete. Try putting the relevant string *at the bottom* of the file instead:elisp ;;; Local Variables: *** ;;; work-string: ";;; Start here" *** ;;; End: *** Read more about File Variables in (info "(emacs) File Variables"). HTH - Joakim -- Joakim Hoveelisp hove AT ift uib no +47 (55 5)8 27 90 http://www.ift.uib.no/~hove/