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 14:00:11 +0100 Message-ID: <87h74rz76s.fsf@mail.jao.io> References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.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="10806"; 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 15:01:16 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 1o00js-0002eU-6c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 15:01:16 +0200 Original-Received: from localhost ([::1]:37012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o00jq-0006hD-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 09:01:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o00je-0006gh-GB for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:01:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o00je-0002pk-7i for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o00je-00017J-3G for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:01: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 13:01: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.16549524354238 (code B ref 55879); Sat, 11 Jun 2022 13:01:02 +0000 Original-Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 13:00:35 +0000 Original-Received: from localhost ([127.0.0.1]:52086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o00jC-00016I-Pi for submit@debbugs.gnu.org; Sat, 11 Jun 2022 09:00:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o00j8-00015x-FZ for 55879@debbugs.gnu.org; Sat, 11 Jun 2022 09:00:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o00iz-0002g4-Qn; Sat, 11 Jun 2022 09:00:23 -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=nxsbgcX/pqEnNTPnxfEzWBQXV8wODKQp4+JzVfcdyb0=; b=B50QWmKVJ/N+z+50/7Kp /DzXrAvgUthPR5+bkQ0/xasG4Jk1Stzhq8aK/26CfmzP9kf5jenlceHQvv+7ssQaDVUApn6lthBLC H4CUuJdXT2Jw8LpC716r3IPLKcxbMP7r8S/X/zY3kANVraGyj40bgu2+02YVEwMUt7S+uAaFktvdN bDcOc1TRygCVXqInaVIxhvTA30dcWmqHIlcXYTjmGGnjeQT73nBTmjb4vQxV8sw7cYWgMfuG52erD U/tM4YvCENd+3wlaHQyF9/BE4HC5J852J8mdKgpSBpIMsY0u9/DdDHXFnx8v2pepOHeVOh5Y3zFDe pGFJmH7uAHfkSQ==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:46138 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 1o00iu-00047I-2t; Sat, 11 Jun 2022 09:00:20 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 098825be; Sat, 11 Jun 2022 13:00:11 +0000 (UTC) In-Reply-To: <87leu3sc03.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:234278 Archived-At: On Sat, Jun 11 2022, Lars Ingebrigtsen wrote: > Jose A Ortega Ruiz writes: > >> Lars, perhaps it'd be a good idea to make find-sibling-file--search a >> public function, so that it can be used from elisp? (i know it already >> can be used, you know what i mean :)) > > It's just a helper function for `find-sibling-file' -- do you have a use > case for it outside of that command? 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. Cheers, jao -- I used to think that the brain was the most wonderful organ in my body. Then I realized who was telling me this. -Emo Phillips, comedian, actor