GNU bug report logs - #51586
27.2; Customize inserts trailing-space empty lines in doc string

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 3 Nov 2021 14:09:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 27.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51586 in the body.
You can then email your comments to 51586 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#51586; Package emacs. (Wed, 03 Nov 2021 14:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Nov 2021 14:09:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 27.2; Customize inserts trailing-space empty lines in doc string
Date: Wed, 3 Nov 2021 14:07:45 +0000
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.


In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1288)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51586; Package emacs. (Wed, 03 Nov 2021 22:15:01 GMT) Full text and rfc822 format available.

Message #8 received at 51586 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 51586 <at> debbugs.gnu.org
Subject: Re: bug#51586: 27.2; Customize inserts trailing-space empty lines in
 doc string
Date: Wed, 3 Nov 2021 15:14:10 -0700
severity 51586 wishlist
thanks

Drew Adams <drew.adams <at> oracle.com> 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?




Severity set to 'wishlist' from 'minor' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 03 Nov 2021 22:15:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51586; Package emacs. (Wed, 03 Nov 2021 23:17:02 GMT) Full text and rfc822 format available.

Message #13 received at 51586 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "51586 <at> debbugs.gnu.org" <51586 <at> debbugs.gnu.org>
Subject: RE: [External] : Re: bug#51586: 27.2; Customize inserts
 trailing-space empty lines in doc string
Date: Wed, 3 Nov 2021 23:16:24 +0000
> 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?

Sounds a bit like trying to make a virtue out of a
necessity. ;-)

My impression is that many users turn on highlighting
of trailing whitespace generally.  And it's typically
a pretty glaring highlighting.

I don't turn it on, myself, except when I want to
check something.  But I think many users do.  Of
course, you can say that if many do, and they're
bothered by this, they'll report it...

Do I really care about this?  No.  Just letting you
know it happens.

(I doubt that it was by design.  I expect it was done
by accident long before we had such highlighting.  It
wouldn't even have been noticed when done.)

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51586; Package emacs. (Thu, 04 Nov 2021 18:07:01 GMT) Full text and rfc822 format available.

Message #16 received at 51586 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 51586 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#51586: 27.2; Customize inserts trailing-space empty lines
 in doc string
Date: Thu, 04 Nov 2021 19:06:04 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> 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.

I think indenting this "rigidly" makes the most sense here -- i.e., not
indenting the blank lines is slightly worse.  So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Nov 2021 18:07:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 51586 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Nov 2021 18:07:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Dec 2021 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.