bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7851: `customize's presentation of :type (repeat plist) declarations


From: Mauro Aranda
Subject: bug#7851: `customize's presentation of :type (repeat plist) declarations
Date: Tue, 24 Sep 2019 18:22:39 -0300

tags 7851 patch
quit

MON KEY <monkey@sandpframing.com> writes:

> `customize's presentation of variables defined with a type speciifer:
>
>  :type '(repeat plist :value-type (repeat symbol))
>
> do not present a sensibly in customize buffers.
>

I can reproduce this.  The problem is that in some cases, the
code that does the indenting (by inserting space characters) doesn't
really check if it should indent or not.

Sometimes it checks for a preceding newline character, but since
`widget-specify-insert' narrows the buffer, it can easily fail to detect
that "\n".  Sometimes, it doesn't check if it should indent at all, like
in `widget-editable-list-format-handler'.

I propose the attached patch, that introduces a function to perform the
necessary checks before indenting, and then uses it in all places I've
found is necessary.

Best regards,
Mauro.

Attachment: 0001-Fix-indentation-of-widgets-Bug-7851.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]