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

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

bug#24745: 25.1.50; whitespace.el: fix beginning/end of buffer checks


From: Reuben Thomas
Subject: bug#24745: 25.1.50; whitespace.el: fix beginning/end of buffer checks
Date: Wed, 26 Oct 2016 00:26:03 +0100

On 25 October 2016 at 23:45, Dmitry Gutov <dgutov@yandex.ru> wrote:
On 25.10.2016 21:44, Reuben Thomas wrote:

I should check some context: my understanding is that inline
documentation in .el files is mainly useful for high-level documentation
for standalone packages. Packages that form part of Emacs should be
documented in the manual (as whitespace.el is); details of functions and
variables should be in docstrings (as is the case for whitespace.el).
The docstrings of customizable options are readable in the customize
interface.

Maybe you're right. I'd leave at least "to change behavior, do M-x customize-group whitespace", though.

​I've re-added that.​

You can automate the adherence to most of these rules by first entering the messages in a local-only ChangeLog file, using 'C-x 4 a'. Also see "Generating ChangeLog entries" in CONTRIBUTE.

​Thanks, I was confused by the fact that since I last submitted patches, we no longer update ChangeLog files directly when committing.

Thanks. Do you have commit access?

​I have.​

I attach the patch series again with the documentation fix above, and two more patches which complete my intended work. The last two are:

1. Fix documentation to mention `tab-width', not `8'.

2. Fix whitespace-report-region to a) use the currently active whitespace-style, that is, whitespace-style-active, and b) take a copy of it, so that use of the `force' parameter does not cause the style to be updated outside the function. It falls back to `whitespace-style' if `whitespace-active-style' is not set, so that whitespace-report can be used when the mode is not already active (I use it thus to turn the mode on only in whitespace-clean buffers in my whitespace-enable-predicate).

--

Attachment: 0001-Fix-bob-eob-checks.patch
Description: Text Data

Attachment: 0002-Remove-duplicate-documentation.patch
Description: Text Data

Attachment: 0003-Fix-whitespace-space-after-tab-regexp.patch
Description: Text Data

Attachment: 0004-Make-whitespace-report-region-respect-current-settin.patch
Description: Text Data

Attachment: 0005-Document-use-of-tab-width.patch
Description: Text Data

Attachment: 0006-Stop-force-parameter-of-whitespace-report-region-hav.patch
Description: Text Data


reply via email to

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