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

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

Re: compile-command customisation


From: Stefan Monnier
Subject: Re: compile-command customisation
Date: Wed, 23 Feb 2005 09:51:12 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>             (if (file-exists-p "Makefile")
>                 (progn
>                   (find-file "Makefile")

Never call `find-file' from elisp.
Instead, use (with-current-buffer (find-file-noselect "Makefile") ...).


        Stefan

reply via email to

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