Subject: bug#77157: [PATCH] 'uniquify' user option setters and automatic buffer refresh

From: Ship Mints <[email-masked]>
Date: Fri, 21 Mar 2025 16:02:34 -0400

On Fri, Mar 21, 2025 at 3:51 PM Eli Zaretskii <[email-masked]> wrote:

> > From: Ship Mints <[email-masked]>
> > Date: Fri, 21 Mar 2025 14:11:01 -0400
> >  (defcustom uniquify-buffer-name-style 'post-forward-angle-brackets
> >    "How to construct unique buffer names for files with the same base
> name.
> > @@ -121,6 +135,8 @@ uniquify-buffer-name-style
> >               (const post-forward-angle-brackets)
> >                  (function :tag "Other")
> >               (const :tag "numeric suffixes" nil))
> > +  :initialize #'custom-initialize-default
> > +  :set #'uniquify--set-option
>
> Please tell in the doc string that changing the style in the middle of
> an Emacs session must be done via Customize or by using setopt, but
> not by setting the variable directly (unless uniquify--set-option is
> then invoked).
>
>
Eli, how is this wording which I'll put in each docstring?

"To reflect a change to this option's value in your live buffer names,
use `customize' interactively, or use `setopt' in Elisp, both of which
call `uniquify--set-option' (setq will not do that for you)."