From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jose A Ortega Ruiz Newsgroups: gmane.emacs.bugs Subject: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file Date: Sat, 11 Jun 2022 22:23:37 +0100 Message-ID: <87edzuzyg6.fsf@mail.jao.io> References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55879@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 23:24:23 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 1o08ak-0009XO-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 23:24:23 +0200 Original-Received: from localhost ([::1]:34694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o08aj-0003Gz-6M for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 17:24:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o08aS-0003Fe-GE for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 17:24:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o08aR-0007BN-Ax for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 17:24:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o08aQ-0001qW-7X for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 17:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jose A Ortega Ruiz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 21:24: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.16549826337077 (code B ref 55879); Sat, 11 Jun 2022 21:24:02 +0000 Original-Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 21:23:53 +0000 Original-Received: from localhost ([127.0.0.1]:54143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o08aC-0001pz-Cy for submit@debbugs.gnu.org; Sat, 11 Jun 2022 17:23:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o08aA-0001pi-WE for 55879@debbugs.gnu.org; Sat, 11 Jun 2022 17:23:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o08a5-0007AZ-HM; Sat, 11 Jun 2022 17:23:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xOYDOtcNs/GtLaaKG0A6XuKi1ytdplkN2ILCxcRejvw=; b=U6wFTZigvLWVmqaC45Wo 4nVDeWHgvCAyMXvviMGQ5In3/FfzSc9wpWjSNq35SqTw5y+1cS4VtmmMb732detiaKBLB+sTEBeU+ tWRfUGA1sScGrx5WD36BYH5s1OMwl8a8TLFlZyrnQ+3CSJVsEUmz01xHBRYyd5wHJE0+BLwJVoBIV 8B2oVMkCesrTKYjyrrHplw/Qjsrvr+sQjrqswYX3sh83N8aWX1PFlCRRvGcfUtjld+Fb5yqdU21G4 RaBDhLMO3QIF8zxcMrNbLFW3mnTgOkgfpvsd5RBnvVH+Hp4nV+7xFy0WmC2beYZilpPQIeaNaUAmH TjMYY6WeD1KJTg==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:46634 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o08a5-00037c-31; Sat, 11 Jun 2022 17:23:41 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 3edf68d5; Sat, 11 Jun 2022 21:23:38 +0000 (UTC) In-Reply-To: <878rq3qj0t.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:234308 Archived-At: On Sat, Jun 11 2022, Lars Ingebrigtsen wrote: > 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 was thinking of a rule saying for instance 'the siblings of dir/foo.pdf are dir/foo/*.org'. that might be a bad example. but even in the "normal" case, i'd like to be able to define find-first-sibling, or maybe find-last-modified-sibling, or show-sibling-other-window, or... for that i'd use find-sibling-file--search (i think). in other words, i am thinking that there are two parts to this new api, one is defining/listing the siblings of a given file and the other is actually finding (in the find-file sense) one of them. i was asking for a public way of accessing the first half. jao -- I always pass on good advice. It's the only thing to do with it. It is never any use to oneself. -Oscar Wilde