From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 17:28:01 2022 Received: (at submit) by debbugs.gnu.org; 9 Jun 2022 21:28:01 +0000 Received: from localhost ([127.0.0.1]:48020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzPhB-0006pP-14 for submit@debbugs.gnu.org; Thu, 09 Jun 2022 17:28:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:42420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzPh5-0006pF-PY for submit@debbugs.gnu.org; Thu, 09 Jun 2022 17:27:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzPh5-0000RJ-JS for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 17:27:55 -0400 Received: from sonic313-21.consmr.mail.ir2.yahoo.com ([77.238.179.188]:46284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzPh3-0000eE-4R for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 17:27:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1654810068; bh=82Baet9giCexhjJdxBjT3S74H4R83qPBOeIW+unt/3k=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=sLvjjidK1tyjzqY+ri6opOHyPqMBODEi0b8qbrxao1bDStw1ttKpQ89Ms9a+rAQx7nQlXEf1uRZ4/NsrLoEQ7oSxZ2bm6AC56ohhPXALABdbhYviGB0eTk+4DqoK/Hm/3RZV0iHvrRiorYD5xOulgyIqGRE4iI602nKqxpdFKX4yA1AfPegW6Oszgn/1aBTWvDpSn1kzb+DrIaZTPdHzNcN27q/+SSDVOe4J+0FTWWvcnID0W4XVfquG/ktjoL2pllLyPok0y9ytrFHGqx4oNCwFmjjNXIe09+TRnWtOCK2GFJflI23mwuBPpEKc5XiV93PlZT137vfsPz3F2Mb5JA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1654810068; bh=Nk6cBmOxUZw44pTJKZKs/5FRjKax6DynjcgdNSFViB+=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FLyq1EMXYcpIC7ljJsZLn/bbsFNcs7US6WZIxZyOBTakigiCWFnjm6blqiIjjfhvU07qQCGe+jiMEivMq5gV8xX4bP4NL0cQAPIcYBLIszNP/rsDNvkX+t/gMDxjtuwI643y80uxNUGbDHoZeHeC+fNJhTDRgThYdjazSyqBr+FHraSyjMsBHAUIx6XKkRyucmLD6ThH6HFbTBo1l4+KGDjCO8PnxyNKRoCg/8AATDbZ5m3tQX+NLvFWT3bwuGVJ6FT8JA9S5M9Vtk/WeIBI5i+4kOs4x1rC1EOVan+fX3IycMS+9uVk/I48TLwRBafeMQPW/cpbol6KaM1eadCKcA== X-YMail-OSG: Mf6SmJwVM1lWbEgPdfA8vVfpLxPceOnOWfLqNW_Kh.h_t9hssvW_RUNXQtyf6SN 1ta_KIM3P9JiiS2w7bZJtpKcOU9eyGASfKLKnD2dYYE8AB2.bRpIP23Tme0XWcculMtOBC11mvji 1blGGUt6Q0L9hIArvfNKMtHo0EmJyDtlBK2UoIzSj2mBgZBy3HrqhuvSDul2KK9UKMen4PqaIqQX mFYib3kthNbSbQ8efub2gis6nwOw4OPcS0GMkBevkODa0uQoAa7sK8ItWjkxgw0Pyb5aNqqclFor HrIaaMXYYwTgnAVZZyHI1QZPMGc9LmN5Xc126mkI_odYosV3VpSZ2RtNLpBJpUrmnBXxQQvNMYs8 JesEXfcbKM0DTpx5seFKrigznK504Esc.mlshgtA.E5Dzgc1NHxwAjgTFN1nPTRlM6m7tNq89iuB 0Z.PypwQTy2FEX_muq0hahRrjtEXUg1vu.Fl7J8jbkOGKPmhwqhz8tpf5YNuiHk_JPK8nlPQeqxp d9oTq79K0dixOc.tr0f5zwkDrOYS3XMW5NeaTMHg6pSTX1SWxnCHkETnbymcuWPYgSfOG0UOptw0 qvAWj6mjYpjs6k3fGvnkILXIFnheltYJfmhYKIvO8rYTGrf47G209PfHJMmm5VYif3JLBd9HVfn0 evQeEDV0xNxk9oakZL81AW9NeZTZorVafSgb5WOVkJ5BJJS8kl4oBzZjCqcG.dremu1PvGeeaULu P61EDMnf_WdOZIwJAaViGccCOAKBsysEyuLmH1EioztexCDtRVUoiA1zACyoQXgW9oAi6i9xjpaQ fW.6u.fLSS7XqGuUXC4aVCyHtaWTj36qecZQAD3Ie1Vws4SrzJVTYBoFvaY_bb.H2pvvd8QbQoQ3 O.jlhEYPtvxXs0S9SHKNLEnplVd7mySllP0smc4G_0BAxF4bxs38OOVLKHCdvQXe0uedeRBIeDAb 5y7Vsh5vT9jqik0LPfZQkofu8fvfcHU9r3OXH0h_Exlhqfm5pjcgyKxnRHby3gNK969XA6BLjtI4 Xf2GpwOCZoai94cXqXpK2Z2EPgeWv7o5inkpMXQVAuhIQetikGNSHqwlH4aOdHhFXen9Xk2FjtrV wghiKN5Czpk7JYpE6Ytsh9Ahu6dTfMPzM5MwpL2FK6OOAIYT6AB7YfF92CrU4xA2JU00r.x5dZq7 yZJsLc4.WI3nZg7Stxmp09N7YJRqRiRyAl2UqBwXywQhlpC3E1GwBL.4JY_lg.NxppvAXCeuBXrs 8AUNEMjmUbYSHZs5yhu0xvdJm.8dgjTWeq3cHQxRykfynBVcN6IjfnuZbJfigoEdpwHfTI.vc0pT 6Dj80JPGlKp3nHDwIjS0yJh35ir7BkYQFCbuvkOWLD8DyH6EkS.TXcLnECt6T0fjyBXzYyeLLiTZ BM_5559_NE.tWKvZMNxQo3IYNF9gv.7xmqgkkBeuUJhXCbuYUt9_1Fxh3ho83rplCQbl.9rw0Q7b diNYamucd1TrnR36NSuCTLp7e2A8Yko6qTuolGJ9ClWQv57.teh1i.rpySj42gJE6pjJ577OrLGJ u49Nv9MpE47xGtQtW3rKRwtPcKnr2btqrbcdo_cfmGC051oQhZ7UtAnFWr3SzGrPGohBgePQTAB5 52irDvjoTLOWq9KFsWg4t5brNr6V4fNfYlMGH7npZg0spNwFSXkTIMfNW4CANuzPaFRWm_Og_6wz gHzP18cHMHdNASHAlV_QxuhUGpax4y5a.njVUAtT9NV1YEmFxWgOpWp5H70PWFgrwtysC54t7zx6 gFgVB2IiOEHrMfuMq9jeuTgn6iqVp.g7aWDvZ5WsTitLdpQLCT93RwxMuZkuvEJSeg9yqXNkBV35 8z5.7yuf.voSzsJIeyrxHD.VJ7tPB0MM5XmqyuGMQPaqieZZmTo1qzkBJwqxs1syL5f0RGosvHcV YloB2Qi7LJZWXVmnKVbXNjVJItMqnb0pBoMzd8cWk5QBxDA0Od5W0jdOloc7KmQwuTrUG5TP7W49 f9Wp4LyX48COEG.PZnT1qzLE5KkbYaziTDsg23uKbzU.Nj2rURojtr2iAPtjtvKREV4bc66IxAjo uc68PjgfLr1P3MebFMYSWOetaZivJfs5SnBYj5Vy4x29WKS344.DgbaQiba_l7zYIFQDtz6z0nLL 38BIFNWguokY172qGMhn5EDBSRS7jIv3QxelJ4HPE1OuqBsVNWg434LeFULBruZFnhC0EgR5Aj9e KCUMsza.Se5jPm0QPZ0np2c.BtZAV X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Thu, 9 Jun 2022 21:27:48 +0000 Received: by hermes--canary-production-ir2-6c7595c778-c47pw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a57a69d28927daa7d3db23ab1b9f76a7; Thu, 09 Jun 2022 21:27:47 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Missing ALL argument in find-sibling-file Date: Thu, 09 Jun 2022 23:27:46 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain References: X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 362 Received-SPF: pass client-ip=77.238.179.188; envelope-from=mardani29@yahoo.es; helo=sonic313-21.consmr.mail.ir2.yahoo.com 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, 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-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) C-h f find-sibling-file RET The documentation says "By default, return only files that exist, but if ALL is non-nil, return all matches.", but there is no ALL argument you can pass to the command. Also, the Info documentation could reference ff-find-related-file when it gives the example of going from the source file to the header file in C files. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 01:46:21 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 05:46:21 +0000 Received: from localhost ([127.0.0.1]:48439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzXTQ-00050C-R3 for submit@debbugs.gnu.org; Fri, 10 Jun 2022 01:46:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzXTN-0004zx-7z for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 01:46:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzXTH-0003cT-U0; Fri, 10 Jun 2022 01:46:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=jO5QDyEKrU1zDwSM3K1R0L2ZikydNicCC4eBa1cYIZs=; b=Z9ECnAY20hXr4dqeT2m+ lvJEqRKrntu20DFU3vYYJYZmLo3d3v562oKjwAqzLpK8GFNXbKf+p8nnnb4wCaDiER6Yc6Ji5YV74 4UvMOXcDNtiDzQtcVHHH6hdBX4YsQvCofc8jooT2CIiSoxRdMeh41T/1wapOZAUUa/Un3ypmkBY8H XQPEw+gjbKspdmoeo2z2Y7yI4yclKNEf4I4DoHImQi5wXSoIplvxXe58Z8UahJ7bxrFTDXiWjyxaD T7xkANRmiozvdrdGva5mzXKqL55UX3JABhojVeXtdLzwsSw/Fv2Oe4cSpptbvG+SSdV1k13T6iXOI ybVRlKK2BWmc2Q==; Received: from [87.69.77.57] (port=3580 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzXTH-00040B-BQ; Fri, 10 Jun 2022 01:46:11 -0400 Date: Fri, 10 Jun 2022 08:46:10 +0300 Message-Id: <83fskd136l.fsf@gnu.org> From: Eli Zaretskii To: Daniel =?utf-8?Q?Mart=C3=ADn?= In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Resent-From: Daniel Martín > Original-Sender: "Debbugs-submit" > Resent-CC: bug-gnu-emacs@gnu.org > Resent-Sender: help-debbugs@gnu.org > Date: Thu, 09 Jun 2022 23:27:46 +0200 > From: Daniel Martín via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > C-h f find-sibling-file RET > > The documentation says "By default, return only files that exist, but if > ALL is non-nil, return all matches.", but there is no ALL argument you > can pass to the command. > > Also, the Info documentation could reference ff-find-related-file when > it gives the example of going from the source file to the header file in > C files. I still think we should have extended ff-find-related-file instead of introducing a completely new facility with an incompatible UI. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 04:44:46 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 08:44:46 +0000 Received: from localhost ([127.0.0.1]:48659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaG6-0003X4-2f for submit@debbugs.gnu.org; Fri, 10 Jun 2022 04:44:46 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:53269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaFu-0003WQ-LZ for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 04:44:36 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 2725E100011; Fri, 10 Jun 2022 08:44:26 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file Organization: LINKOV.NET References: <83fskd136l.fsf@gnu.org> Date: Fri, 10 Jun 2022 10:55:28 +0300 In-Reply-To: <83fskd136l.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jun 2022 08:46:10 +0300") Message-ID: <86bkv1dj8r.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?iso-8859-1?Q?Mart=EDn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Also, the Info documentation could reference ff-find-related-file when >> it gives the example of going from the source file to the header file in >> C files. > > I still think we should have extended ff-find-related-file instead of > introducing a completely new facility with an incompatible UI. I started to use find-sibling-file and noticed that it's quite powerful despite its simplicity. For example, with such configuration: dir1/.dir-locals-2.el: ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" "src/dir2/\\1\\'")))))) dir2/.dir-locals-2.el: ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" "src/dir3/\\1\\'")))))) dir3/.dir-locals-2.el: ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" "src/dir1/\\1\\'")))))) it allows cycling between sibling files of three source trees in the predefined order. Can ff-find-related-file do the same? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 05:49:16 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 09:49:17 +0000 Received: from localhost ([127.0.0.1]:48780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzbGW-0003HT-Mm for submit@debbugs.gnu.org; Fri, 10 Jun 2022 05:49:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzbGU-0003HG-Fw for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 05:49:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=P5VZv/4HAceYikvwRXfyzIZmX6n4rNlcVi3bFmFFilg=; b=R2f2J38qE9hCBNhCclomjEmXHS QuBPmsX7+1haFAIzaXcbvSqSQmt2imewRnrCXRYETvG2eNfqHrSZG/XVXXiJ5wv1Km1ewTlL4wFaX pc2iADjfFwukPG4moHLCOpGZw/jJCJlI43t1AsD3Xs2A3TUsaIUL0iKO7dKx2uj8SqQk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzbGL-00075i-PT; Fri, 10 Jun 2022 11:49:08 +0200 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: X-Now-Playing: Little Annie Anxiety & Hiro Kone's _Repossessed_: "Third Gear" Date: Fri, 10 Jun 2022 11:49:04 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Thu, 09 Jun 2022 23:27:46 +0200") Message-ID: <87o7z0vofj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > The documentation says "By default, return only files that exist, but if > ALL is non-nil, return all matches.", but there is no ALL argument you > can pass to the command. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Daniel Mart=C3=ADn writes: > The documentation says "By default, return only files that exist, but if > ALL is non-nil, return all matches.", but there is no ALL argument you > can pass to the command. I've now fixed this in Emacs 29. > Also, the Info documentation could reference ff-find-related-file when > it gives the example of going from the source file to the header file in > C files. Good idea; now done. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 05:49:21 2022 Received: (at control) by debbugs.gnu.org; 10 Jun 2022 09:49:21 +0000 Received: from localhost ([127.0.0.1]:48783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzbGa-0003Hk-Ta for submit@debbugs.gnu.org; Fri, 10 Jun 2022 05:49:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzbGZ-0003HL-Hl for control@debbugs.gnu.org; Fri, 10 Jun 2022 05:49:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cxTRqvqhazac2GTpZbHspleh/bZgaFRF0OtFjfcyXII=; b=hYmSCjYNKFkYLyzExYcPHt2BKK kNcupc/WqyptA84GPGPdK5Z4T+pf7wiJzOW29t4aBhNbREZSIK4fh7B5DbOXsySWy0YaOp61Qckua ocZTMFc0I5MOtgKwKzvE3Zbt4AQFFdYJJcpT+iisHLkdSK0VndZ8mcP3apkm2QsZe7gI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzbGR-00075x-Mw for control@debbugs.gnu.org; Fri, 10 Jun 2022 11:49:13 +0200 Date: Fri, 10 Jun 2022 11:49:11 +0200 Message-Id: <87mtekvofc.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55879 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55879 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55879 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 06:57:14 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 10:57:14 +0000 Received: from localhost ([127.0.0.1]:48965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzcKH-000141-VH for submit@debbugs.gnu.org; Fri, 10 Jun 2022 06:57:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzcKG-00013f-Br for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 06:57:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzcKB-0001g8-02; Fri, 10 Jun 2022 06:57:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=MiFWfFetIbhgVA0JaY+IqU0MXr9pz6wnaQtAF7moatw=; b=ghNJgF/2p0/KRT64q3bO 7UhCYKy00Z8WFXhHkAwcpkJhFw8LtWazjt1m+9uMzbF69Xo7Kza6Td36ShqvrP62LQtcCRtepPVm2 kB9QYe4BNMGBX+SWl+fmrsNacMaj1jnF0gXbaQSy+8e3D43jwYqTP0Z0k5Ot5knQ3ZBvG/vG8tyKD LeOOd+/9b3jlT7zOjiODO1UfS3Glpbuc2p+N+xVZ9Xhs4CfKtB4sNcpiz7ZW5jcC6PVHWtoZgjRHX 4kAP0ueEbKanlaSfdZ3Wit9+QhFBFLVmZX5eueGoUf3H0nkj8Jwve+ZweoRFMZ2bvK2BMX3IQ5ted UgAg5bIgvm5hdQ==; Received: from [87.69.77.57] (port=2652 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzcK9-00067P-GE; Fri, 10 Jun 2022 06:57:06 -0400 Date: Fri, 10 Jun 2022 13:57:04 +0300 Message-Id: <83v8t8zszj.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <86bkv1dj8r.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 10 Jun 2022 10:55:28 +0300) Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: <83fskd136l.fsf@gnu.org> <86bkv1dj8r.fsf@mail.linkov.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, mardani29@yahoo.es X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Cc: Daniel Martín , > 55879@debbugs.gnu.org > Date: Fri, 10 Jun 2022 10:55:28 +0300 > > >> Also, the Info documentation could reference ff-find-related-file when > >> it gives the example of going from the source file to the header file in > >> C files. > > > > I still think we should have extended ff-find-related-file instead of > > introducing a completely new facility with an incompatible UI. > > I started to use find-sibling-file and noticed that it's quite powerful > despite its simplicity. For example, with such configuration: > > dir1/.dir-locals-2.el: > ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" > "src/dir2/\\1\\'")))))) > dir2/.dir-locals-2.el: > ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" > "src/dir3/\\1\\'")))))) > dir3/.dir-locals-2.el: > ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" > "src/dir1/\\1\\'")))))) > > it allows cycling between sibling files of three source trees > in the predefined order. I don't think I understand what "cycling" means in this context, let alone why it would make sense. If file A has a "related" file B, then file B should have file A as its related file, and any feature similar to these two should support this concept. If this concept is supported, then you can get from any file to any of its "siblings", in any order you like. > Can ff-find-related-file do the same? ff-find-related-file separates the directories to look in from the rules for basenames of the files, but other than that, these two features are equivalent. And please note that I said "extended", i.e. if ff-find-related-file doesn't support some use case, it should be extended to do so. I expect the extension to be simple enough, given the infrastructure that already exists. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 12:18:45 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 16:18:45 +0000 Received: from localhost ([127.0.0.1]:51106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzhLR-0003KW-0o for submit@debbugs.gnu.org; Fri, 10 Jun 2022 12:18:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzhLN-0003KH-50 for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 12:18:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzhLG-0000Oe-V4; Fri, 10 Jun 2022 12:18:34 -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=DVwt7gqaSyF20ueVI5zYnj4RomZjDPYUGcDWp7Lv0Jg=; b=EdtCPO5MeKM0Db7Tcqh+ qHSk7lMnxtOq/YnZh+RvkJOIfyaTD6KJx08Vz6IjF1vzWlD5fIiLFiOOJWyEAT6Gp1uXMd4sJ5v/2 s3uFKULoHfAjpj/QxuBXT4Ekd1jMexXsWZ3AXK1Ilh+wGHMmp8eAWrYb40kE3/46zPsZWue5Yjw/L fM8r7hKYIdoIXgiuykmdjN4lMexZKkRLql+y2RtKtvuj+LHe20N3T+B1Ecobe5+Osv4kOh/aOgeUk y5RwpTck9XUiwdMfvCPocgfb93oRQ+duc31sBvulH6YoK4K0jfFLTi8/tGAm13BXIUoVOc8PDGwwc q227vxoxr6cJmw==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:45478 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 1nzhLG-0004yr-G9; Fri, 10 Jun 2022 12:18:34 -0400 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 18a0201d; Fri, 10 Jun 2022 16:18:31 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen , Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file In-Reply-To: <87o7z0vofj.fsf@gnus.org> References: <87o7z0vofj.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Fri, 10 Jun 2022 17:18:31 +0100 Message-ID: <87pmjgze3s.fsf@mail.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 :)) thanks, jao -- Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve. - Alan Perlis, Epigrams on Programming From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 12:44:53 2022 Received: (at 55879) by debbugs.gnu.org; 10 Jun 2022 16:44:53 +0000 Received: from localhost ([127.0.0.1]:51126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzhkj-0003xj-Gr for submit@debbugs.gnu.org; Fri, 10 Jun 2022 12:44:53 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzhke-0003xD-VZ for 55879@debbugs.gnu.org; Fri, 10 Jun 2022 12:44:49 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id B5A221BF206; Fri, 10 Jun 2022 16:44:40 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file Organization: LINKOV.NET References: <83fskd136l.fsf@gnu.org> <86bkv1dj8r.fsf@mail.linkov.net> <83v8t8zszj.fsf@gnu.org> Date: Fri, 10 Jun 2022 19:39:24 +0300 In-Reply-To: <83v8t8zszj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jun 2022 13:57:04 +0300") Message-ID: <86v8t8blnf.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, mardani29@yahoo.es X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> I started to use find-sibling-file and noticed that it's quite powerful >> despite its simplicity. For example, with such configuration: >> >> dir1/.dir-locals-2.el: >> ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" >> "src/dir2/\\1\\'")))))) >> dir2/.dir-locals-2.el: >> ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" >> "src/dir3/\\1\\'")))))) >> dir3/.dir-locals-2.el: >> ((nil . ((find-sibling-rules . (("src/[^/]+/\\(.*\\)\\'" >> "src/dir1/\\1\\'")))))) >> >> it allows cycling between sibling files of three source trees >> in the predefined order. > > I don't think I understand what "cycling" means in this context, let > alone why it would make sense. Cycling is visiting siblings in the defined order such as dir1 -> dir2 -> dir3 -> dir1 -> ... > If file A has a "related" file B, then file B should have file A as > its related file, and any feature similar to these two should support > this concept. If this concept is supported, then you can get from any > file to any of its "siblings", in any order you like. find-sibling-file supports more than 2 siblings, i.e. triplets and more. >> Can ff-find-related-file do the same? > > ff-find-related-file separates the directories to look in from the > rules for basenames of the files, but other than that, these two > features are equivalent. > > And please note that I said "extended", i.e. if ff-find-related-file > doesn't support some use case, it should be extended to do so. I > expect the extension to be simple enough, given the infrastructure > that already exists. I have no opinion about extending find-file.el, but when looking at it, it strikes as too complicated, so extending will make it complicated even more. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 11 06:58:17 2022 Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 10:58:17 +0000 Received: from localhost ([127.0.0.1]:51973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzyor-0008HX-0a for submit@debbugs.gnu.org; Sat, 11 Jun 2022 06:58:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzyop-0008HL-IL for 55879@debbugs.gnu.org; Sat, 11 Jun 2022 06:58:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/5oKSclURN/1d78/E5hmX9w/NbJ0dI4aIOsRVt4N4dY=; b=arHWFbBk3p3QUo5hkqodBDmecZ SsY7kAA9l5KbKcvhRyA1tjfAsC5bcMfL29lfMYboZdjonxvjYHhu0FNrnIjwCVEkWkPro2P3WhCNr 6h9fuVt2TPXHe22EGHi0EZ1RH9A42FyX9FHlknxWEPe1H6dMQdbsQ8SV2GhId26kbw0g=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzyog-00085W-J3; Sat, 11 Jun 2022 12:58:09 +0200 From: Lars Ingebrigtsen To: Jose A Ortega Ruiz Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> X-Now-Playing: Mourning A BLKstar's _The Cycle_: "Be" Date: Sat, 11 Jun 2022 12:58:04 +0200 In-Reply-To: <87pmjgze3s.fsf@mail.jao.io> (Jose A. Ortega Ruiz's message of "Fri, 10 Jun 2022 17:18:31 +0100") Message-ID: <87leu3sc03.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 :)) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 11 09:00:35 2022 Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 13:00:35 +0000 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 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 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==; 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 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 098825be; Sat, 11 Jun 2022 13:00:11 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file In-Reply-To: <87leu3sc03.fsf@gnus.org> References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Sat, 11 Jun 2022 14:00:11 +0100 Message-ID: <87h74rz76s.fsf@mail.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 11 12:09:34 2022 Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 16:09:34 +0000 Received: from localhost ([127.0.0.1]:53761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o03g6-0006Fm-B1 for submit@debbugs.gnu.org; Sat, 11 Jun 2022 12:09:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o03g4-0006Fa-Kr for 55879@debbugs.gnu.org; Sat, 11 Jun 2022 12:09:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2lbBE8jLkvo4lwZKoewka6+830WTM5Z5+lWSHY6Hons=; b=CJdV+wq8bzVWJVCeahEiY+Wdsc zv9HWo7Zex5ICRJA51FJ++xzalsCdx8/WGlYIXEBGXMqOnL5SeWy9F8RpjSFO4qLlKNunxPTwbuDb muS3JACCmHYIONRx5fkxgNn854GVI/G75U7xDt9EYkctmRGFSoXfOoI+ihf8Fvhmhbwk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o03fv-0002m8-D5; Sat, 11 Jun 2022 18:09:25 +0200 From: Lars Ingebrigtsen To: Jose A Ortega Ruiz Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEW/q6Ll3NpmV1OV cFvGlWhMOzb///8hgvjEAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YGCw8lOegiP0wAAAGtSURBVDjL fdJBl6MgDADgUNy77MzeXSh3K/aua+Y+Lzb//69sAjjVaTu8p6KfSSAKxuVhWp1AuXFyAxWE5PAb uG8Q3NcAtx/313ZgSu7nEe4lXO7Fj/D3WYSm6Z6tY7dD8wDmMaLdR7xMdQDzY/FgXsH8BHQ0l0do tTD2j9BMgjgeQV5u+2Tc+4QHaOX8ux8uDmeszS0Acj711jucFl3eBgC9cdehiTfExdTtZ7A9OA79 sC5o55IpgxV4IwpNTOMd5GpTB3+YyXzQ2OwiBAL8YubR+jHvZoNUIQwBM5gKg/dwlVT0sSJ+gz5K BKc1TftUfgNag/akdAkyBM4j0FezKvgCJNAegeSxppub+mNXiBRLzK0xFYzJsCWLOMMeqByR/p1h i4BcQ+srWIKp1gArq40aImVo4RGn8vHgFDsnz3wssI6oHYYkr8qH5bJcf+V4XqZWAiT3pwEYfN5f iuxXnCQPyL3XKww6Q+Y1IhYg7opEJlG6jgIWcot6mSVZhdZZ+QyYEuicvMakzpJpbYw3aCSIpUtr /ARtWt70iWkCKS8lFPRff8u/eksc5Pl/vByDkiLkOvgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt MDYtMTFUMTU6Mzc6NTcrMDA6MDDgh+FEAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTExVDE1 OjM3OjU3KzAwOjAwkdpZ+AAAAABJRU5ErkJggg== X-Now-Playing: Drew McDowall's _Agalma_: "Agalma I (Folding)" Date: Sat, 11 Jun 2022 18:09:22 +0200 In-Reply-To: <87h74rz76s.fsf@mail.jao.io> (Jose A. Ortega Ruiz's message of "Sat, 11 Jun 2022 14:00:11 +0100") Message-ID: <878rq3qj0t.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 fil [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 11 17:23:53 2022 Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 21:23:53 +0000 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 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 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==; 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 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 3edf68d5; Sat, 11 Jun 2022 21:23:38 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file In-Reply-To: <878rq3qj0t.fsf@gnus.org> References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Sat, 11 Jun 2022 22:23:37 +0100 Message-ID: <87edzuzyg6.fsf@mail.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 11 19:53:45 2022 Received: (at 55879) by debbugs.gnu.org; 11 Jun 2022 23:53:45 +0000 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 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.7Phyts5pkiOf2LS_o7JsJvWNNc.tnRS4JjNHbn6b sq.QnNS6xYBXB6GuEMsUtvhy9Gviunjwq3eg2hfnAfOQ_GvM.OJA1AhjRgqlQjAhu_KjIesrES1W wkg9.LIqpNd7YuRZRhscQitTkVjcpkGAZ4RbjY4NrxV.F0Ybz7jXb.SavJUoEfQKQRwoozgRnqeD N7PWD5rRqx.RCL9Xy0w4lFFO.pMI7UsvVruTIrbzZLZXdZ_ZscL6YxUM.nIRG5dr6WzUnY2m4G.s kYca7XMhrlBudcflDLJvPfshaH8XKIcX2spYcwRrQYjmH.YJ3hJ2EK1ChibUeWmLdnq2b791WRU0 LdW1E2kCmhiC2Rk47y2dVTvHqz2PO_F0FJpyvGWFjTuboUmWm_VOL8C.dX10zbZV61mCQNQkLDzl tArWRdKUdSSVz9evwWJnbU3rnpd9scyW8H7roZaSpGYLm0Uy4Dlk_EJNnVO54G.9d8m5gpldeHjL 3_H5lp71UFojf4K.jXXhsaiQTUPe1RLNqdJWioWh87km2HQTsx4in6rxU2gkxCyvfah1uL1TdGLL txU9ZZYnR.qrQ4zUcYmza1HkC5faijNm7np5kEeA4TBUrL5Syg22JPCgiDJEbfOxwDqNe6JwXRqT QOZ9PKEhg_fDyX6pQ7bm_OKBQ3IiA2Ngg7U0WLiGccWNRMFRod60Orf02P.GDCLW3zZj4f5QkwpC xuEa.tdT0K2yC7vy6Ucz_G9abS6eRpTYXKjZX_I4VfwsALwxMGas0Lu556i82KEiLSW7NEQJ.ms. BGOsOqwdilNmJGODo5HaE2rXv4qB..1Gmb97m7qDTo8mVxRTw2WGWQ2j49blUJTxhDLael5pq8D9 8t9tJ1t163ZnlxMQH1WNqW_sedwPbYNbOckjU2w4hfw5Djc6NzEdocQZnWGdojH.cdenrkrwlJ3w YowkvO_za9ZtIzHxS6Sb_PZjwaX6cPwrlWCVC8.cOVSdpJaaYArIADfpBHxRa1ETeL22YOvei8lo RUvTfCMveqLLu4rOz98cAiP37VQ9PH94H9a3mpHs3CxPYHiQ.1vsbwmbmz8nm2jm13dj6kVVzbGk 9G.kZbmaivIiyvmIDLZn0uUeeV633AP7ehi.9g9fcRev2P2nMWJEKsYtZKVqRacVTd.L6i90bfEB HU6TeIrf4ZIFKRlVFCTcReMxQMORr1aq3kuauFxn_4NMszWkfnH9buP2QtmcHjTxTs9KS9ax7QXu Qe7BbbHQEMUiV110O3QlMYBE9STwCufGnAxNyprrd7DxkVGXAcp1M5fq.U3O19rQ9nz_gq2h43xZ OZFric98qF9yiRdG6M37euMML_WwzbuekjbAu2bRP7GAKdrJQmIkT5yN9pw1u1WB6JAU4lrIvefE tplHWmXYLuUFXg3z3lae9hKnvAC79bWe7J1I.clcesU6AX0czSXcfVw-- X-Sonic-MF: 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 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) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: Lars Ingebrigtsen Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> Date: Sun, 12 Jun 2022 01:53:31 +0200 In-Reply-To: <878rq3qj0t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 11 Jun 2022 18:09:22 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1485 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Jose A Ortega Ruiz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 12 06:10:27 2022 Received: (at 55879) by debbugs.gnu.org; 12 Jun 2022 10:10:28 +0000 Received: from localhost ([127.0.0.1]:54791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KY7-0000ol-Ms for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:10:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KY6-0000oW-UK for 55879@debbugs.gnu.org; Sun, 12 Jun 2022 06:10:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aUFq4h2ls4oQqq0dtyvryO8jQwIsis1RDqm10M9X56Y=; b=sFIO+lZlIACsKVtMkVFCaWDzcM mWVlHXe6CvdOR5eU3se6pS8zdZmGwF19jmDxMDK9jk99q1f9hIrgth24Hh5wS7QlsZkEGdSjf90wd 5mSevdMid+eS0b1VtM9H4f0kRX8F+r8e3hRhG+n4fDr66TQzXfRFlWNbb795rrsgNsTk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0KXw-0003U5-Pi; Sun, 12 Jun 2022 12:10:20 +0200 From: Lars Ingebrigtsen To: Jose A Ortega Ruiz Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> <87edzuzyg6.fsf@mail.jao.io> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUSERF6jHyryLxV PDmXWlz///9ZQryFAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGDAk5N3C3Cx0AAAGoSURBVDjLbZIL csQgCIbJ0ANE4wU0ewBSPMBauf+ZCpjsmm3JTDLhkx95ACzFbQds8SESkggzd7hAhipmrQsDfAJm kS5CCPQCRQFB7dItsvcZELKe7+JEQTahUkhIPdWkTrCHGEKIqzvqkBoReQYh8QVGirj5fy258w2U zSSYfxLXegfjHABKzQPkUHLMKpDIAFcuYXMQcyw7dy0QmCfg9uhPkyHAT6Cy2lX1c6WfS0rTaLeB mJQpaFNEbqrOOIBMoDSXcsBzRBk5uoPvGaTnFcF0zGDvOLzIeOQJPDqKA33uEcQxo1WuIE2AqcZt U6C2TGAvtIQwAB3p3fZQ1iXEZACpyfM9wbKiRqD6GUVoAjuGzQbC2O5Ar+R+bkn6tIklrwxf2t4j aF8UYLyA/rHoJiUel8YTBLbxNfX76OEU0xyeGl9uteMEltnEXcjmb0RXyJbEF3fE4Kova8kJUnu+ tUCFvq+IbfJb/o193y6hyzCs6GXXDp9mfdW66Q/wizL/C8Y2zBnOkj79cAzgAbcrbX/AOqo4AbyU lgF8v84kAxzrdXAqxj/0C8wtgenSMRVkAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTEyVDA5 OjU3OjU1KzAwOjAwsdDWUQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0xMlQwOTo1Nzo1NSsw MDowMMCNbu0AAAAASUVORK5CYII= X-Now-Playing: Arto Lindsay's _Mundo Civilizado_: "Erotic City" Date: Sun, 12 Jun 2022 12:10:16 +0200 In-Reply-To: <87edzuzyg6.fsf@mail.jao.io> (Jose A. Ortega Ruiz's message of "Sat, 11 Jun 2022 22:23:37 +0100") Message-ID: <87leu2p4zb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jose A Ortega Ruiz writes: > 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-f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jose A Ortega Ruiz writes: > 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). OK, I've now made the function public (and changed the arglist a bit). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 12 21:21:39 2022 Received: (at 55879) by debbugs.gnu.org; 13 Jun 2022 01:21:39 +0000 Received: from localhost ([127.0.0.1]:56765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Ylv-0005cu-2a for submit@debbugs.gnu.org; Sun, 12 Jun 2022 21:21:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Ylr-0005ce-HJ for 55879@debbugs.gnu.org; Sun, 12 Jun 2022 21:21:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Ylk-0001d9-QS; Sun, 12 Jun 2022 21:21:28 -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=Cr7U7/BRE6ieVjpLDADmUlin/B/WGXPtDfwXjfvd16w=; b=WN6of89l5lrbcAKz0Xyx JC/AztDz/abW8OAZ9X+parRDdgI5M7RDYBv66FnqjHo0Ok5e8L19lgZ4xJA9Zz3gnakG4y9VXv5yx BELJg1uFRbAdZc8z8Y8oNjwq3j+p1giDcYMugbe9RAlpafQ6MiJWzIW1z3uiyvkubpcLPcCrh0FuQ X0UDDXp794aFyFAypgJxDOtIXhpquWoRXmq3y6qGrziUP68GGJzim+3EfHeMI3Gp/H29m0g/XKKWm fNXr6mOwLzuX9hwEIm4AqtiCdDZWuBpHSYWOs7n1s0/YlL/+/5so6j3NpnWduz45vii7EBHZ5Mmdk K3l9boiMCmv/Ew==; Received: from 40.red-79-159-140.dynamicip.rima-tde.net ([79.159.140.40]:42838 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 1o0Ylk-0001Zw-Cq; Sun, 12 Jun 2022 21:21:28 -0400 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id e628d83c; Mon, 13 Jun 2022 01:21:25 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen Subject: Re: bug#55879: 29.0.50; Missing ALL argument in find-sibling-file In-Reply-To: <87leu2p4zb.fsf@gnus.org> References: <87o7z0vofj.fsf@gnus.org> <87pmjgze3s.fsf@mail.jao.io> <87leu3sc03.fsf@gnus.org> <87h74rz76s.fsf@mail.jao.io> <878rq3qj0t.fsf@gnus.org> <87edzuzyg6.fsf@mail.jao.io> <87leu2p4zb.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Mon, 13 Jun 2022 02:21:25 +0100 Message-ID: <87bkuxz7ca.fsf@mail.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55879 Cc: 55879@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Sun, Jun 12 2022, Lars Ingebrigtsen wrote: > Jose A Ortega Ruiz writes: > >> 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). > > OK, I've now made the function public (and changed the arglist a bit). excellent, thanks! jao -- Life isn't about finding yourself. Life is about creating yourself. -George Bernard Shaw, writer, Nobel laureate (1856-1950) From unknown Sun Aug 10 10:55:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Jul 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator