From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57325: 27.1; functions in ff-other-file-alist Date: Mon, 29 Aug 2022 19:49:47 +0300 Message-ID: <83edwzvvtg.fsf@gnu.org> References: <87fshpjviu.fsf@betli.tmit.bme.hu> <83h725bf4w.fsf@gnu.org> <875yiljslg.fsf@betli.tmit.bme.hu> <837d30biz4.fsf@gnu.org> <831qt44u5f.fsf@gnu.org> <87czcjs1mv.fsf@betli.tmit.bme.hu> <83r10zw3gj.fsf@gnu.org> <87zgfnqg5a.fsf@betli.tmit.bme.hu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57325@debbugs.gnu.org To: Felician Nemeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 18:50:46 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 1oShyH-00017k-CM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 18:50:45 +0200 Original-Received: from localhost ([::1]:32832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oShyF-0007Ye-LN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 12:50:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oShxa-0007U0-TV for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 12:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oShxa-00079E-Af for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oShxZ-0008IK-Rk for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 12:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2022 16:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57325 X-GNU-PR-Package: emacs Original-Received: via spool by 57325-submit@debbugs.gnu.org id=B57325.166179177331842 (code B ref 57325); Mon, 29 Aug 2022 16:50:01 +0000 Original-Received: (at 57325) by debbugs.gnu.org; 29 Aug 2022 16:49:33 +0000 Original-Received: from localhost ([127.0.0.1]:33713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oShx7-0008HW-F2 for submit@debbugs.gnu.org; Mon, 29 Aug 2022 12:49:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oShx5-0008HJ-Lb for 57325@debbugs.gnu.org; Mon, 29 Aug 2022 12:49:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oShx0-00076I-Ei; Mon, 29 Aug 2022 12:49:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dTV0+4UCqICY30Gje/+wkLYOq1mC9bR+R6++wvW8b0A=; b=ZjBZJPeUjDVh adnqzc40cKV6BnUaZE+331R9JmgWWG2iKf9Q7Ay8yJpIm8ac4gpKKtgQrkHL5pSHdXAosVHMJK7fs LrvbblC8U3c9HXLGxOQtncvqSvNfEp39whkif+4A8T5kFy3xfkItrX3bBlAMinQwYAaj3cFmOjaz/ VqFkGpP5Jw3mTfuxWTzm2QrZnLglL41a6UaiSf9tpAhIFSIS/UHPg7goiNKR9c9mhPC6LzX7aIYbU hIvtgvWROBM+T3b8S8oh0B5W1M/5aad56MTY5SOcdgpeNk4QeTZZnG9+c9+rIKHfSuZEJ8KYWH2uY DHqCl7TYO4InNs5I2xINUg==; Original-Received: from [87.69.77.57] (port=1262 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 1oShwz-0006wU-SU; Mon, 29 Aug 2022 12:49:26 -0400 In-Reply-To: <87zgfnqg5a.fsf@betli.tmit.bme.hu> (message from Felician Nemeth on Mon, 29 Aug 2022 16:27:13 +0200) 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:241056 Archived-At: > From: Felician Nemeth > Cc: 57325@debbugs.gnu.org > Date: Mon, 29 Aug 2022 16:27:13 +0200 > > >> Also, when the function returns an absolute file name, then the > >> returned file should be already opened, otherwise ff-find-other-file > >> cannot find it. > > > > Hmm... not sure how this is relevant. The function should return a > > list of extensions, not a file name. What am I missing? > > In my case, the related file of foo.toml is bar.json. From an extension > it is not possible to guess whether the related file is bar.json or > baz.json. find-file.el of Emacs 27.1 has this in the Commentary > section: > > ;; These functions must return a list consisting of the possible names of the > ;; corresponding file, with or without path. > > That's why I thought my function could return an absolute file name. If the returned list includes file names with leading directories, find-file.el strips the leading directories and uses the basename to match against. Another thing to clarify in the docs?