On Fri, Mar 21, 2025 at 3:51 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Ship Mints <shipmints@gmail.com>
> 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)."