From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Visiting a set of files listed in a file Date: Sat, 09 Apr 2022 14:10:28 +0300 Message-ID: <83lewe8qcb.fsf@gnu.org> References: <912809244.1719139.1649496689299@mail1.libero.it> <83sfqm8tlx.fsf@gnu.org> <1363320088.1756370.1649499336798@mail1.libero.it> <83r1668rqw.fsf@gnu.org> <1652965113.1759397.1649502113677@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9044"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 13:11:53 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nd90S-0002Bp-NA for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 13:11:52 +0200 Original-Received: from localhost ([::1]:60028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nd90R-0004ui-0G for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 07:11:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd8zB-0003oA-Vw for emacs-devel@gnu.org; Sat, 09 Apr 2022 07:10:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd8zB-0004Qw-Lv; Sat, 09 Apr 2022 07:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RcVEmE5BBJMaqotSqfhVGZXvaamy8SkX5ok1Osn1XVU=; b=JJ103gWOsOke 26ZyHOpEQS+QU5oe142E7HBci1Y+f/KMvUAi/7selmv5bYHHOi5faVq3773cYY2wclKIRIQJPMauN BFDs9hNAoHb11530cRMOCKnGHznTzDriiR37tU8b4LNQB+dHOKYbEyXyid9X6fRjbuz2inj2ZowEw /1noDc/kjdkeUcULesoHiYf9Qw214mjMpZz8XJlxEnJenPSew4hvLddOPHd7TrEUJ+CJmkJi8LfkV RTIH1xDyZMTKbAXhGNq910fJQmf2uUI2+mUUkgtSACUKFPqJl4+Hf69xCDP2h6YnEIpBtiOqB+8MA yKPq7dh0dJGBivKM/zqnDQ==; Original-Received: from [87.69.77.57] (port=1074 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd8yr-0004oI-JE; Sat, 09 Apr 2022 07:10:22 -0400 In-Reply-To: <1652965113.1759397.1649502113677@mail1.libero.it> (message from Angelo Graziosi on Sat, 9 Apr 2022 13:01:53 +0200 (CEST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288020 Archived-At: > Date: Sat, 9 Apr 2022 13:01:53 +0200 (CEST) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org > > > 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... Why not? you need to write the batch file only once. > > > 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? No, not if you define HOME in the environment. Then Emacs will follow it no matter how you invoke it. > 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_.. Yes, there's a lot of garbage advice on the Internet. Granted, that is not what I meant. See "set /?" for one way of doing that.