[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.
- eval: (search-forward), Albert Reiner, 2004/10/09
- Re: eval: (search-forward), Oliver Scholz, 2004/10/10
- Re: eval: (search-forward),
Albert Reiner <=
- Re: eval: (search-forward), Joakim Hove, 2004/10/11
- Re: eval: (search-forward), Albert Reiner, 2004/10/11
- Re: eval: (search-forward), Albert Reiner, 2004/10/12
- Re: eval: (search-forward), Joakim Hove, 2004/10/18
- Re: eval: (search-forward) (Solved), Albert Reiner, 2004/10/24
- Re: eval: (search-forward), Oliver Scholz, 2004/10/11
- Re: eval: (search-forward), Albert Reiner, 2004/10/11