From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Wright Newsgroups: gmane.emacs.help Subject: Re: compile-command customisation Date: Thu, 24 Feb 2005 09:59:14 +0100 Message-ID: Reply-To: Daniel Wright NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109237776 7955 80.91.229.2 (24 Feb 2005 09:36:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2005 09:36:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 24 10:36:16 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4FPN-0001Me-2G for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Feb 2005 10:35:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4Fgt-0000lp-7p for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Feb 2005 04:53:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D4FJi-0002zG-5n for help-gnu-emacs@gnu.org; Thu, 24 Feb 2005 04:29:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D4FJe-0002yA-TT for help-gnu-emacs@gnu.org; Thu, 24 Feb 2005 04:29:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4FHZ-000262-Jd for help-gnu-emacs@gnu.org; Thu, 24 Feb 2005 04:27:41 -0500 Original-Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D4Eq2-0003J6-P7 for help-gnu-emacs@gnu.org; Thu, 24 Feb 2005 03:59:14 -0500 Original-Received: by wproxy.gmail.com with SMTP id 50so96568wri for ; Thu, 24 Feb 2005 00:59:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=hPn0wWi4ApRGUxvHa8Ip64ZD8Bb/nhOCbTr7/alnk+JvQYr0/WknPXY+eO2wBbSiSC+pCW854XGVOw5fHWDfrqgGq5U7NPecMe6pcb+Dta5oZEWD7TmenxcyrVBhd1GQQl2PND60IRMUvc0yInvw6pwX/eso8UVkZB94nvkxRDY= Original-Received: by 10.54.16.58 with SMTP id 58mr32618wrp; Thu, 24 Feb 2005 00:59:14 -0800 (PST) Original-Received: by 10.54.51.22 with HTTP; Thu, 24 Feb 2005 00:59:14 -0800 (PST) Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24303 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24303 Stefan Monnier 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