all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.g0@libero.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Visiting a set of files listed in a file
Date: Sat, 9 Apr 2022 13:01:53 +0200 (CEST)	[thread overview]
Message-ID: <1652965113.1759397.1649502113677@mail1.libero.it> (raw)
In-Reply-To: <83r1668rqw.fsf@gnu.org>


> Il 09/04/2022 12:40 Eli Zaretskii ha scritto:
> 
>  
> > Date: Sat, 9 Apr 2022 12:15:36 +0200 (CEST)
> > From: Angelo Graziosi
> > Cc: emacs-devel@gnu.org
> > 
> > > > How can I visit all those files without doing that manually which could be tedious if the file to be visited are 40-50?
> > > > 
> > > > It would be useful doing that both from command line and inside Emacs...
> > > 
> > > Something like
> > > 
> > >   emacs `cat FILE`
> > > 
> > > I guess.
> > 
> > Oh, yes but it works on unix-like systems. And on Windows? I assume to run some command from DOS prompt.. Which command? 
> 
> On Windows, you write a batch file that converts the file's contents
> into a list of file names, then invokes Emacs with that list of file
> names.

It's not very practical...

> 
> > If I run the above from MSYS2 shell there is a mismatch with the HOME directory and consequently where Emacs reads the init file and where it saves the desktop file..
> 
> What do you mean by "mismatch with HOME directory"?

For MSYS2 the HOME is /home/USER (C:\msys2inst\home\USER) for Emacs the HOME is in APPDATA\Roaming, or not?

In any case I found this discussion: https://stackoverflow.com/questions/43225925/windows-cmd-pass-output-of-one-command-as-parameter-to-another

from which I deduced this command:

for /F "usebackq delims=" %A in (`type list-of-buffers`) do C:\\Emacs\bin\emacs.exe %A

With it I have to close Emacs N times (it restarts automatically), where N is the number of file listed. The thing is just _tedious - epsilon_..

I think you should simplify this allowing to do this also inside Emacs wint an "M-x ..." command.



  reply	other threads:[~2022-04-09 11:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-09  9:31 Visiting a set of files listed in a file Angelo Graziosi
2022-04-09  9:59 ` Eli Zaretskii
2022-04-09 10:15   ` Angelo Graziosi
2022-04-09 10:40     ` Eli Zaretskii
2022-04-09 11:01       ` Angelo Graziosi [this message]
2022-04-09 11:10         ` Eli Zaretskii
2022-04-09 11:29           ` Angelo Graziosi
2022-04-09 14:44             ` Eli Zaretskii
2022-04-09 20:21               ` Angelo Graziosi
2022-04-09 17:44 ` [External] : " Drew Adams
2022-04-09 20:29   ` Angelo Graziosi
2022-04-09 20:35     ` Angelo Graziosi
2022-04-09 20:46       ` Angelo Graziosi
2022-04-09 21:06         ` Drew Adams
2022-04-09 21:45           ` Angelo Graziosi
2022-04-09 20:56     ` Drew Adams
2022-04-10  1:07 ` James Thomas
2022-04-11 15:18   ` João Pedro
2022-04-11 15:31   ` chad
2022-04-11 20:34     ` Angelo Graziosi
2022-04-12  6:59   ` James Thomas
2022-04-12 21:17 ` Mathias Dahl

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=1652965113.1759397.1649502113677@mail1.libero.it \
    --to=angelo.g0@libero.it \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.