all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felician Nemeth <felician.nemeth@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 57325@debbugs.gnu.org
Subject: bug#57325: 27.1; functions in ff-other-file-alist
Date: Mon, 29 Aug 2022 13:57:44 +0200	[thread overview]
Message-ID: <87czcjs1mv.fsf@betli.tmit.bme.hu> (raw)
In-Reply-To: <831qt44u5f.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Aug 2022 11:14:20 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> AFAICT, what you saw is the consequence of one basic problem:
> ff-find-the-other-file is unprepared to deal with a function that
> returns nil (instead of a list of file-name extensions to try).  So it
> tries to use that nil value as if it was a list of extensions, and the
> result is basically random.
>
> It should be easy to make ff-find-the-other-file detect the nil value
> and handle it as if it found no match for the current buffer's file.
> Do you think this would be better?  Or we could simply document that a
> function in ff-other-file-alist must return a list of extensions.
>
> WDYT?

I think extending the documentation to explain what is expected from the
function is enough.  It would have helped me.  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.

Thank you.





  reply	other threads:[~2022-08-29 11:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-21 18:34 bug#57325: 27.1; functions in ff-other-file-alist Felician Nemeth
2022-08-21 18:55 ` Eli Zaretskii
2022-08-21 19:37   ` Felician Nemeth
2022-08-22 11:44     ` Eli Zaretskii
2022-08-25  8:14       ` Eli Zaretskii
2022-08-29 11:57         ` Felician Nemeth [this message]
2022-08-29 14:04           ` Eli Zaretskii
2022-08-29 14:27             ` Felician Nemeth
2022-08-29 16:49               ` Eli Zaretskii
2022-08-30  8:46                 ` Felician Nemeth
2022-08-30 12:43                   ` Eli Zaretskii
2022-08-30 13:48                     ` Felician Nemeth
2022-08-30 16:10                       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czcjs1mv.fsf@betli.tmit.bme.hu \
    --to=felician.nemeth@gmail.com \
    --cc=57325@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.