From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 31 Mar 2018 10:28:58 +0000
> Cc: =E7=BA=AA=E7=A7=80=E5=B3=B0 <jixiuf@qq.com>, emacs-devel@gnu.org
>
>=C2=A0 I agree that customization isn't the best solution here. How= ever, I'm suprised that `save-some-buffers'
>=C2=A0 still prompts even if :noprompt is passed.
>=C2=A0 The issue might be in `save-some-buffers': Its docstring say= s "If PRED is t, then certain non-file buffers
>=C2=A0 will also be considered.", but later it only checks whether= PRED is non-nil:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (or
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(buffer-file-name buffer)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(with-current-buffer buffer
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(or (eq buffer-offer-save 'always)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(and pred buffer-offer-save (> (buffer= -size) 0)))))
>
>=C2=A0 Maybe instead of `pred' here we should say (eq pred t). Alte= rnative, the predicate lambda should check
>=C2=A0 whether `buffer-file-name' is non-nil.
>
> Probably the second option is better because the first option would pr= event PRED from running for
> non-file-visiting buffers. Patch attached.
AFAIU, this will unconditionally disable auto-saving in *ediff-merge*
and all the similar buffers, when auto-save-visited-mode is turned
on.=C2=A0 Is that what we want?=C2=A0 And if that's going to be the def= ault, how
are users supposed to override it if they want?