From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: how to open a list of files? Date: Mon, 5 Jan 2009 17:04:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <121ac258-15bc-4308-88bb-6b385cb68102@b38g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231253760 30207 80.91.229.12 (6 Jan 2009 14:56:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 14:56:00 +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 Jan 06 15:57:10 2009 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.50) id 1LKDMj-0007oD-EH for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 15:57:09 +0100 Original-Received: from localhost ([127.0.0.1]:53019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKDLT-0004IM-R2 for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 09:55:51 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b38g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 69.226.242.127 Original-X-Trace: posting.google.com 1231203895 20853 127.0.0.1 (6 Jan 2009 01:04:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Jan 2009 01:04:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b38g2000prf.googlegroups.com; posting-host=69.226.242.127; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165765 X-Mailman-Approved-At: Tue, 06 Jan 2009 09:55:22 -0500 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:61109 Archived-At: On Jan 5, 2:58 am, thth wrote: > Hi, > > I have a file containing pathes to several other files I want to open > (actually it is just the buffer list of a previous session saved in a fil= e). > Opening each file by hand from this list is a bit laborious. So I wonder = if > there is a way to open all files contained in a list automatically in ema= cs? > > Cheers & Thanks for all ideas, depending on what you mean... others has mentioned desktop mode... if you want to open a bunch of marked files in dired, put (require 'dired-x) in your .emacs then you can Alt+x dired-x and dired-do-find-marked-files. If you have a list of paths, you can create this text (find-file "path1") (find-file "path2") ... then select them then Alt+x eval-region. Xah =E2=88=91 http://xahlee.org/ =E2=98=84