all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to open a list of files?
Date: Mon, 05 Jan 2009 18:12:16 +0100	[thread overview]
Message-ID: <1231175601.821759@arno.fh-trier.de> (raw)
In-Reply-To: <mailman.4022.1231169170.26697.help-gnu-emacs@gnu.org>

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 file).
> 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 emacs?
> 
> Cheers & Thanks for all ideas,
>   Thomas

With already onboard functions :

M-x replace-regexp RET .+ RET \,(progn (save-match-data (find-file-noselect \&)) \&) RET

or when available

M-x shell-command-on-region RET xargs emacsclient -n RET

or a macro, approximatetly

C-x ( M-x ffap RET RET C-b RET C-n C-0 C-x e

or use a function which maps a regexp in a buffer using some function
much like the replace-regexp stuff above.  I am curious whether
such a command already exists.

Now I am out of ideas.

-ap



       reply	other threads:[~2009-01-05 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4022.1231169170.26697.help-gnu-emacs@gnu.org>
2009-01-05 17:12 ` Andreas Politz [this message]
2009-01-06  1:27   ` how to open a list of files? Chetan
2009-01-06  1:04 ` Xah Lee
2009-01-06 14:53 ` OtherMichael
2009-01-07  6:32 ` roodwriter
2009-01-05 10:58 thth
2009-01-05 15:35 ` Tassilo Horn
2009-01-05 16:10 ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1231175601.821759@arno.fh-trier.de \
    --to=politza@fh-trier.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.