Subject: Re: bug#51586: 27.2; Customize inserts trailing-space empty lines in doc string

From: Stefan Kangas <[email-masked]>
Date: Wed, 3 Nov 2021 15:14:10 -0700

severity 51586 wishlist
thanks

Drew Adams <[email-masked]> writes:

> emacs -Q
> Eval this code, then `M-x customize-option foo'
>
> (defcustom foo 42
>   "Some doc.
> Several possibilities:
>
> * `xxx' - yyyyyyyyy yyyyyyyyyyyy
>
> * `yyy' - zzzzzzzzzzzzzz zzzzzzzzz
>
> * 42 - aaaaaa aaaaaaaaa
>   Some more description of this.
>   And some more.
>
>   And yet more
>   explanation of it.
>
> * `qqq' - rrrrrrrrr rrrrrrrrrr"
>   :group 'emacs :type 'sexp)
>
> In the Customize buffer, The empty lines in the doc string get filled
> with SPC chars up to the indentation.  That is, trailing whitespace
> chars are inserted.  If you turn on highlighting of trailing whitespace
> you can see this.  Shouldn't happen - the lines should remain empty.

Isn't it sort of nice that the user can put point at the "S" here

   Several possibilities:

   * ‘xxx’ - yyyyyyyyy yyyyyyyyyyyy

   * ‘yyy’ - zzzzzzzzzzzzzz zzzzzzzzz

and then hit `C-n' without having the cursor jump from column 0 to
column 4?  Neither way seems obviously better to me.

Also, does the user care about trailing whitespace here?