[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile-command customisation
From: |
Daniel Wright |
Subject: |
Re: compile-command customisation |
Date: |
Thu, 24 Feb 2005 09:59:14 +0100 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>Never call `find-file' from elisp.
>Instead, use (with-current-buffer (find-file-noselect "Makefile") ...).
>
> Stefan
Thanks a lot for the tip! It did seem a bit over zealous to hop around
from file to file. But the way you use "never" makes me think, that it
is more than just common sense - is there another reason too?
The emacs lisp manual (i finally looked at it) suggests copying the
the contents of the file to an empty buffer (with
"insert-file-contents"), it seems a good idea in this case - i could
then just search that. What do you think?
Thanks again!
Daniel
- compile-command customisation, Daniel Wright, 2005/02/23
- Re: compile-command customisation, Stefan Monnier, 2005/02/23
- Re: compile-command customisation, Kevin Rodgers, 2005/02/23
- Re: compile-command customisation, Thien-Thi Nguyen, 2005/02/23
- Re: compile-command customisation,
Daniel Wright <=
- Re: compile-command customisation, Daniel Wright, 2005/02/24
- Re: compile-command customisation, Daniel Wright, 2005/02/24
- Re: compile-command customisation, Stefan Monnier, 2005/02/25