all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: larsi@gnus.org, emacs-devel@gnu.org
Subject: Re: master f8bb6cca33: Return the same file from locate-file in nativecomp and non
Date: Sun, 13 Mar 2022 19:15:36 +0200	[thread overview]
Message-ID: <83mthtlqo7.fsf@gnu.org> (raw)
In-Reply-To: <jwv4k42ue01.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 13 Mar 2022 10:26:48 -0400)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
> Date: Sun, 13 Mar 2022 10:26:48 -0400
> 
> >> I object to such backward-incompatible change in a public API.  Please
> >> revert that change.
> > Stefan's patch does not change the behaviour of locate-file (after my
> > patch).  It does change the behaviour of locate-file-internal, but
> > that's not a public function (and it's only used in locate-file).  So
> > I'm not sure what you mean here.
> 
> AFAIK it reverts the behavior of `locate-file-internal` to that of
> Emacs-27

Emacs 27 behavior cannot guide us here, because the *.eln files and
the aspects they bring into the issue are new.

> and I think the change in Emacs-28 is just a bug (an oversight, I
> suspect)

How can you think that when this "bug" endured more than a year of
testing since the nativecomp branch was merged, including the pretest
until now?  The only place where this issue happens is in a test, and
we can easily change the test to adapt it to the actual behavior,
should we decide that it's the correct behavior--and I'm not yet
saying it has to be, but I'm not yet convinced it's wrong, either.
The whole issue is somewhat non-trivial, because load-history doesn't
(AFAIK) record the *.eln files when they are loaded, but instead
"lies" to us by mentioning only the *.elc files.  I'm not sure we
shouldn't change that, for example.

> so I'd even suggest we install my patch in `emacs-28`.

Do we want to release Emacs 28 any time soon, or do we want to
continue dragging our feet by making destabilizing changes in it?  The
behavior of locate-file on emacs-28 doesn't cause any problems that we
know about, so what would be our reason for making such a problematic
change and delaying the release?

Look, the native-compilation stuff introduces complexity into Emacs
whose implications we don't yet understand well enough.  It will take
time to collect enough experience and see what else should be done and
changed as result.  I submit that your opinion that
"locate-file-internal should not magically replace `.elc` files with
`.eln` files" is not based on enough data for us to change the
behavior that worked well for the last year.

Bottom line: I see no reason to rush in this matter, especially since
the "problem" so far exists only in a test.



  parent reply	other threads:[~2022-03-13 17:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <164712074096.14747.18124931770043811100@vcs2.savannah.gnu.org>
     [not found] ` <20220312213221.451B3C01684@vcs2.savannah.gnu.org>
2022-03-12 21:47   ` master f8bb6cca33: Return the same file from locate-file in nativecomp and non Stefan Monnier
2022-03-12 21:51     ` Lars Ingebrigtsen
2022-03-12 23:23       ` Stefan Monnier
2022-03-12 23:40         ` Lars Ingebrigtsen
2022-03-13  4:51           ` Stefan Monnier
2022-03-13  6:01             ` Eli Zaretskii
2022-03-13 14:16               ` Lars Ingebrigtsen
2022-03-13 14:26                 ` Stefan Monnier
2022-03-13 14:40                   ` Lars Ingebrigtsen
2022-03-13 17:15                   ` Eli Zaretskii [this message]
2022-03-14  0:20                     ` Stefan Monnier
2022-03-14 14:29                       ` Eli Zaretskii
2022-03-14 16:57                         ` Stefan Monnier
2022-03-14 17:22                           ` Eli Zaretskii
2022-03-14 18:09                             ` Stefan Monnier
2022-03-14 22:29                               ` Corwin Brust
2022-03-15 13:11                                 ` Stefan Monnier
2022-03-13 16:59                 ` Eli Zaretskii
2022-03-13 22:16                   ` Lars Ingebrigtsen
2022-03-14  3:26                     ` Eli Zaretskii
2022-03-14  2:57                   ` Stefan Monnier
2022-03-14  3:38                     ` Eli Zaretskii
2022-03-14  4:04                       ` Stefan Monnier

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=83mthtlqo7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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.