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

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

Re: eval: (search-forward)


From: Albert Reiner
Subject: Re: eval: (search-forward)
Date: 10 Oct 2004 16:48:08 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Thanks for your reply!

[Oliver Scholz <alkibiades@gmx.de>, Sun, 10 Oct 2004 14:33:54 +0200]:
> >     eval: (search-forward "%%WORK%%")
> >
> > When I open the file, I am asked whether I want to evaluate the
> > `eval', but still I do not end up at the marked position.

> At the time the form is evaluated, the buffer is narrowed to the
> local variables section.  That's all there is to it.  Try this:

Ah, I see.  

> 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.

Thanks again,

Albert.



reply via email to

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