From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Visiting a set of files listed in a file Date: Sat, 9 Apr 2022 13:01:53 +0200 (CEST) Message-ID: <1652965113.1759397.1649502113677@mail1.libero.it> References: <912809244.1719139.1649496689299@mail1.libero.it> <83sfqm8tlx.fsf@gnu.org> <1363320088.1756370.1649499336798@mail1.libero.it> <83r1668rqw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 13:04:10 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 1nd8sz-00035R-8B for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 13:04:09 +0200 Original-Received: from localhost ([::1]:54712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nd8sx-0008Sq-Re for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 07:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd8qt-0007Ys-LZ for emacs-devel@gnu.org; Sat, 09 Apr 2022 07:01:59 -0400 Original-Received: from smtp-18-i2.italiaonline.it ([213.209.12.18]:38334 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd8qq-0002gl-Ao for emacs-devel@gnu.org; Sat, 09 Apr 2022 07:01:59 -0400 Original-Received: from oxapps-32-142.iol.local ([10.101.8.188]) by smtp-18.iol.local with ESMTPA id d8qnn1R86uFKJd8qnn7ocg; Sat, 09 Apr 2022 13:01:53 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1649502113; bh=MSxo4Igxo6GzGF8JbXBviPiixWIc3y1m07gPHrY+Z9E=; h=From; b=eQCo8NUk9H1TFJnQT+IqGQrOMd0GDjbGQOCoT0gir9aQ2f4lWOx0BYDOB79oZKWv6 g8Gosai3NPmvch+kvhCBW/k7NqSW4JRg4gXbJ6IN6PKC+0g/3VfTFtJURg5RpSRz9g 0NvBKKki/KfP1Jeb/9mZcyKh9BBGQGH645VN8FbIfH5PEI/NKkPVT+Uqg0r8z0LusD RYF91Z/DMi4LqlO3St0Eakc6+G6ztSp6bE9TfWECPsXkGRrFBjhBER7Ff8DQRsNbiU wLXn+AHS9pirqRYCZHgWFiuWgYx0lst9xAdxdHcntW6k+s5vm+nbVzhC4gFKUmsRIB Rv4d2h93Htsug== X-CNFS-Analysis: v=2.4 cv=LZH5VhTi c=1 sm=1 tr=0 ts=625167a1 cx=a_exe a=d5mb8ohLb9DErTKtnJ5n9A==:117 a=_dJfLzpt0bebRXjD:21 a=tjL3SZ24MMMA:10 a=IkcTkHD0fZMA:10 a=FPHzXidCtEMA:10 a=mDV3o1hIAAAA:8 a=uPZiAMpXAAAA:8 a=Xymn0J7P-X8g7FOhvZwA:9 a=QEXdDO2ut3YA:10 a=YYyvhrfdFPbuadpVEpuk:22 a=_FVE-zBwftR9WsbkzFJk:22 In-Reply-To: <83r1668rqw.fsf@gnu.org> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev39 X-Originating-IP: 87.21.196.97 X-Originating-Client: open-xchange-appsuite x-libjamsun: vFtyUmaXJubaVXz9HFlLTwwsO5GXhUqL x-libjamv: NOphuVlaa/U= X-CMAE-Envelope: MS4xfAJdLDJWpBL3ULEvH9e3jV/GEWSHfhhh7mgB4FLLqxq0axb0QFTxD9wEhjaRhtcFDoTQ8HRVQBnkmNFdmWkXko0/4IDaJ69XsSVViSJ9arRn51eo9H98 5GdaPDhJsx8LrOqHB2zn1TNdUujbbvHXYc4AhFFWQMpknHdqCIdAjwdkZIEpK7czesN09XmIt0vnG1v/s/qsxngZ+5bCEeiXK2gwAocY3tHW90aJc3bfk4xw Received-SPF: pass client-ip=213.209.12.18; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:288018 Archived-At: > 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.