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

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

Re: eval: (search-forward)


From: Oliver Scholz
Subject: Re: eval: (search-forward)
Date: Mon, 11 Oct 2004 11:40:24 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt)

Albert Reiner <areiner@tph.tuwien.ac.at> writes:
[...]
> [Oliver Scholz <alkibiades@gmx.de>, Sun, 10 Oct 2004 14:33:54 +0200]:
[...]

>> Local Variables:
>> eval: (add-hook 'find-file-hook (lambda () (goto-char (point-min))
>> (search-forward "%%WORK%%")) t t)
>> End:
>
> Unfortunately this does not seem to work here - I still end up at the
> top of the file.  Inserting a couple of (message) calls, I see that
> the eval is evaluated but the (lambda) never run.

It seems that `find-file-hook' exists only in CVS Emacs. For Emacs
21.3 use `find-file-hooks' (note the "s") instead.

    Oliver
-- 
20 Vendémiaire an 213 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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