From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Lisp Questions - reading a file and processes stalling Date: Mon, 22 Mar 2010 12:02:30 -0400 Message-ID: References: <878w9lqepg.fsf@galatea.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272997485 4255 80.91.229.12 (4 May 2010 18:24:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 18:24:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 20:24:43 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9MnT-0003F1-9N for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 20:24:43 +0200 Original-Received: from localhost ([127.0.0.1]:45029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9MnS-0000Gw-IJ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 14:24:42 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe11.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:EvM60flA0aP+zuLp2oysNcb10mc= Original-Lines: 24 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Mon, 22 Mar 2010 16:02:30 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:177542 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 Xref: news.gmane.org gmane.emacs.help:73035 Archived-At: >> insert-file-contents is really the lightest weight of getting the >> content of a file into a buffer. Why do you doubt it? [...] > I can't seem to find a way of telling Emacs to put the contents of the > file in a buffer then move along. insert-file-contents *is* the "way of telling Emacs to put the contents of the file in a buffer then move along". Yes, it does a lot of work because it needs to find the coding-system to use to read the file, and other such things, but that's what Emacs provides. If it's too slow, you'll probably have to do some of the work in another process (e.g. as is done by M-x grep). > Yeah, I didn't think so but it was worth asking the gurus. I'll > probably just deal with it since I'm generally happier with just one > instance of emacs. For now, at least. There's a few people who started working on adding concurrency to Emacs. It's going to be a long road, but we hope to include a first experimental version in Emacs-24. IIUC their current code is able to run Gnus in its own thread. Stefan