From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file Date: Sun, 12 Jun 2022 01:53:31 +0200 Message-ID: References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1084"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cc: 55879@debbugs.gnu.org, Jose A Ortega Ruiz To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 01:54:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o0Avh-000Ad4-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 01:54:11 +0200 Original-Received: from localhost ([::1]:48564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0Avg-0002lL-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 19:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Ava-0002lD-Ng for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 19:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0Ava-0000ln-Ek for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 19:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0Ava-0007nl-5U for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 19:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 23:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55879 X-GNU-PR-Package: emacs Original-Received: via spool by 55879-submit@debbugs.gnu.org id=B55879.165499162529967 (code B ref 55879); Sat, 11 Jun 2022 23:54:02 +0000 Original-Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 23:53:45 +0000 Original-Received: from localhost ([127.0.0.1]:54288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0AvI-0007nH-Py for submit@debbugs.gnu.org; Sat, 11 Jun 2022 19:53:45 -0400 Original-Received: from sonic307-7.consmr.mail.ir2.yahoo.com ([87.248.110.32]:37875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0AvG-0007n0-EA for 55879@debbugs.gnu.org; Sat, 11 Jun 2022 19:53:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1654991615; bh=w4RS1GtO74RQLkkt4V7m9IzdWj2QDlJuPH2dOhK1R4E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=e5I0z7CmGpQVeNg4uJVU7/vSA2awEWbazi8e2Zqw5NJI+opw2xbu0P2vzgBTfNjTAxlF3BSlGaipYGt8MoMIPOVzmnFNBeC9cwoqTCF2mIg68nRqYoQ8aafzUPESGL+hg1LXvx/r4mut9aqUfPbAxrhwvMBSK1+WpbEQGWx/UDfwG/eVTtEJk1Pw/Wpyhk+Oje9wcbmE10Gpe2NX14tN3rdyTGK9re7NtRZL29CHbc/AMOgEnf70PbS8HjAQjfr96uX4YZ8FRy6G+Jw32gyT6DsF0qUuceA0Z5fd+dXBVSpuX6n7OsiW+142+xPcOXJdRURQw1qR4BwyvEQRaJX+9w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1654991615; bh=2jmot/JtzlEwDuMf0E1XU6nIy6vyHoDsNkpCZV4hSkV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=YiHAK/058a181wipSXJGPD2REULlOsot0DLjDa5MVCh4SbU7VmnJ5X6xCUtiRrKkjzIWz5pxOn8u9vSfONOn+lSyuRhRkpBD/nEAdeLFtaJksyZZXDOf5ZXjusoFfLgMPBtKjuF2Y1UnHMHDwtIPvWqRw/sOwBkznHi0qbk17gdt40IUa5MOXpIsEFtYZU7UUbRsvzOiXmBpa1UG7FW/8teEtzkD5iJYbnhPiwU9r2A1/4v9dIVBNbXQRKtsv0uDovL0BqLF81/SchTuSWJO5m3w86j2xVexbQiJq6yA0Er8cZKMW+NMJv4L1/NiTV/PymrNyNfik2YhntATXD4L6g== X-YMail-OSG: po1sl1MVM1mvx12YXsDBTX5vYS_LL_t98LJ_9qQ0dE9po6GvuaCKhMkk6Z7DqE4 rKqv.aRWZU564d6Qg0ydHHOF1ZBalNttfZ9lIcDwzbUuTEL7F75UkfLTilkN6XBx9N1B5nKGnLIk kCA7aXRY.FCxdXQfOEbTJNofWF8S2MfWfGpdcB_mH9rsIBGlJkFM_h5aa8EoOIM7kz3Krz88Rknb 60sv1z_ATqsT_j8lDjHRKwIPxaSLrAG_snuh2VbmqkOfkF7pbZvY8CMqtNjjfJ58X8sZHnYq4rxS 8LbRvh_Lc95boinvwaoFT9xICQDxvwiZF100HRHKxoat_qbwIgWn4.i_TP3Dx7EUGuj9nBpDJpnj iFAX2MM0ZEf_e7wQ2eaK3f3gMJc6XgwUnFzh1ycB1IbPVY1ZbqsON7kGVNVOSvkto7CbFWIZs9Lw iuIZVa95BX.3vHDeUdsJ_.Qu1.W36DiL396VLHEM8RZN.0IufhkBO9asNlzqWwXRE_fPcY9VuwP3 zAZA_BvJwo5VFzrtFDgXlnsLR6BqjwsmNRqK7sQ935vAkAjFOwrrmgm1aAQiwxEV4vVbAm54QsuU Qb_0UrckU9EJ6USzlrkks3GRViU2LY58MnkR0wSabDUBlPabgueAaWV9u.YN.hAFZQXf4lF3X5v4 ivZo5eCzPx4S2QgrwUaAC9DRN1aNh.BKwz_w2.ziszzgyfHPbDyPWIMQP1Jo7jQkXF0n2fVisipo 4428FVgAmRika14ZtWcbhiYC357jmbjR3OL9hXDNTuJRfwx5UZanxjiUrXLFbEdZ_fgnY7gifxWC pjaIlH997wmLDjrhIqXoYMK0SvBcyG9_G0D.7Phyts X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Sat, 11 Jun 2022 23:53:35 +0000 Original-Received: by hermes--canary-production-ir2-6c7595c778-s2rk7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 95833f2ac0295aebc873efb6ed12d80c; Sat, 11 Jun 2022 23:53:32 +0000 (UTC) In-Reply-To: <878rq3qj0t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 11 Jun 2022 18:09:22 +0200") X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234312 Archived-At: Lars Ingebrigtsen writes: > Jose A Ortega Ruiz writes: > >> I was thinking of reusing the sibling files mechanism programmatically, >> outside the mere "find a single file" scenario. For instance, i have a >> few functions that associate a list of note org files to a single pdf, >> and i might want to display them all (perhaps in other window), or add >> text to one of them (with the decision of which one taken >> programmatically, depending on context)... For cases like that, i would >> start with the result of obtaining the list of siblings inside my >> commands, and find-sibling-file--search looked like the function doing >> that. > > find-sibling-file--search is there to find matches in the > `find-sibling-rules' variable, which is a user option, and returns > values in an order that's appropriate for the commmand. It sounds like > you want something slightly different, really -- pass in the rules, > perhaps? But I'm not sure that really makes that much sense, either, > because associating org files with a pdf sounds like something you'd > want a data file for, really... I think decoupling the computation of the list of siblings for a given file and the action to perform on them (find-file for now) may be a good idea. That would offer programmatic access to extensions or user customizations that want to do things to sibling files other than visiting them. If I'm not mistaken, this is what Jos=C3=A9 is interested about.