[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65414: save-some-buffers-functions are unexpectedly called when save
From: |
Eli Zaretskii |
Subject: |
bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil |
Date: |
Sat, 02 Sep 2023 10:30:31 +0300 |
> From: Joseph Turner <joseph@breatheoutbreathe.in>
> Cc: 65414@debbugs.gnu.org, jonas@bernoul.li
> Date: Sat, 26 Aug 2023 00:32:23 -0700
>
>
> > In any case, not calling save-some-buffers-functions when PRED is
> > non-nil is not something we can do, as that would be an incompatible
> > behavior change. We could perhaps add PRED to the arguments with
> > which save-some-buffers-functions are called, as an optional argument.
> > Would that be satisfactory?
>
> Yes, that would solve the interference between Magit and hyperdrive.el.
>
> See patch.
Hmm... but how to make this change backward-compatible? I mean, if
there's some function out there that is used in
save-some-buffers-functions, and it was written to accept only 2
arguments, we cannot safely call it with 3 arguments, can we?
Stefan, do we have any way of doing that without causing errors?
If not, perhaps the way forward is to bind some variable around the
call to these functions, whose value will be PRED?
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil,
Eli Zaretskii <=
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Stefan Monnier, 2023/09/03
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Eli Zaretskii, 2023/09/03
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Joseph Turner, 2023/09/03
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Eli Zaretskii, 2023/09/04
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Joseph Turner, 2023/09/04
- bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Eli Zaretskii, 2023/09/04
bug#65414: save-some-buffers-functions are unexpectedly called when save-some-buffers pred is non-nil, Juri Linkov, 2023/09/03