From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Visiting a set of files listed in a file Date: Mon, 11 Apr 2022 11:31:14 -0400 Message-ID: References: <912809244.1719139.1649496689299@mail1.libero.it> <877d7xbvaa.fsf@gmx.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000024b97a05dc62a301" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Angelo Graziosi , "emacs-devel@gnu.org" To: James Thomas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 17:41:05 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 1ndwA4-0001YS-Vh for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 17:41:04 +0200 Original-Received: from localhost ([::1]:40534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndwA3-0000jn-TX for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 11:41:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndw0r-00023r-69 for emacs-devel@gnu.org; Mon, 11 Apr 2022 11:31:36 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:45042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndw0p-0006bG-0G for emacs-devel@gnu.org; Mon, 11 Apr 2022 11:31:32 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id z17so2811206lfj.11 for ; Mon, 11 Apr 2022 08:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7Hs1tD9J4NikXnuNxVm75UreaLjy7n6eAQph33sIzoQ=; b=Wff+0acMp+vd6yFuOXrBZAk0jchrXt7PXESQFhh2iM3cUNSL5DOnTOgqFbwhV2GVCJ Iv1pDcAe+NpcB1ZAGuUcVEAdw0sJ+7jpi+DXEa0O0VdR99Cmcgez/xVjd0Qh6845ULku CoCC86SbUbJdonG13TPLMensF0c5t8U5jpl4rSQcCzNVg5ZDnlBsPQX+VOFp9wSP71KD LfRzO/Wgtm48S/Yr940ev84wXeJT3o4xtoRs2k+HSunZbZRdhFmBXinFGTkFJbvn1gKv ZlPMftYgC3OIVQQXAnQu624QZC/YHbQrOpEBvKutjsZ51Qp0T0tOn8v9K8dND+Ou37Ta wRhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Hs1tD9J4NikXnuNxVm75UreaLjy7n6eAQph33sIzoQ=; b=ugA2LnpPXciBcB6K7QDZAicnz1HgZxb4PekIjPhEEkW5BwR55Q7Hsy6RTcHWUZ3Mc9 WDw0RgkLjMlz81YjMj7SwSG2z1aX9dldmI2Y2ui6bNUttxpM0mItFpiKEaG74K5Xwmgp SH0yZiUVg/xty31jqxL0XFD2jxaGD1qkiXZ0/ZT0pN5wx5XBNRwds2pntI0SyNk29wZw rLI83EjoEQHJx9jxbqnsOVFQq5gHK+CNO3jrhlhMIUutgICj3sbMBdeDVFODtWE4P3wv F4WY5QZqx0fv8Fe1Q22LGD6o/gdZEIwT1Ok8oWhf8ArTkEpelKEJoYlPLyOYpLz9esv5 3QSQ== X-Gm-Message-State: AOAM530Ee8ZIKDbSDLTx+MqIiAGgKELjNoioA8VuPF9ELyV04eRBonLC 9DBWNM+XzPhHcHMG64R55kckLz4h/Ev3uDaCTs8= X-Google-Smtp-Source: ABdhPJzSTnQxk58sR8fcZT5RoAEK0iIQgsvJhQz2eopQHyiW7mf4xVd1xf1ZwRYjZ9NymB9BSv9NnpKxBt356u0A5l4= X-Received: by 2002:a05:6512:33cb:b0:464:f5f4:22cb with SMTP id d11-20020a05651233cb00b00464f5f422cbmr15002310lfg.186.1649691085550; Mon, 11 Apr 2022 08:31:25 -0700 (PDT) In-Reply-To: <877d7xbvaa.fsf@gmx.net> Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=yandros@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:288219 Archived-At: --00000000000024b97a05dc62a301 Content-Type: text/plain; charset="UTF-8" It looks like you have received several viable suggestions, but since the topic is still somewhat open, let me ask you: are you familiar with emacs' keyboard macro system? https://www.gnu.org/software/emacs/manual/html_node/emacs/Keyboard-Macros.html Once your list of files is in a buffer, ideally one per line, getting emacs to open the file named by each line is pretty simple, and if you build a keyboard macro to do it, you have total control over the various options, (reuse window or not? reuse frame or not? absolute paths or relative? Relative to home, current, or specified in the buffer? process the entire list at once, once per keypress, or otherwise throttled? etc). Additionally, since they can be named and saved for later, you can refine it over time. This also makes it simple to incorporate whatever method you use to generate the filelist, and you can craft the unusual/error cases to suit your needs. Hope that helps, ~Chad --00000000000024b97a05dc62a301 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It looks like you have received several viable suggestions= , but since the topic is still somewhat open, let me ask you: are you famil= iar with emacs' keyboard macro system?

=C2=A0=C2=A0<= a href=3D"https://www.gnu.org/software/emacs/manual/html_node/emacs/Keyboar= d-Macros.html">https://www.gnu.org/software/emacs/manual/html_node/emacs/Ke= yboard-Macros.html

Once your list of files is = in a buffer, ideally one per line, getting emacs to open the file named by = each line is pretty simple, and if you build a keyboard macro to do it, you= have total control over the various options, (reuse window or not? reuse f= rame or not? absolute paths or relative? Relative to home, current, or spec= ified in the buffer? process the entire list at once, once per keypress, or= otherwise throttled? etc). Additionally, since they can be named and saved= for later, you can refine it over time. This also makes it simple to incor= porate whatever=C2=A0method you use to generate the filelist, and you can c= raft the unusual/error cases to suit your needs.

H= ope that helps,
~Chad

--00000000000024b97a05dc62a301--