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: Thu, 3 Nov 2016 12:38:42 +0000

On 3 November 2016 at 01:06, Dmitry Gutov <dgutov@yandex.ru> wrote:

> * lisp/whitespace.el (whitespace-report-region): force parameter
previously changed whitespace-style globally. Fix this, and use

Please honor sentence-end-double-space, which is set to t in .dir-locals.el. Here and in other log messages.

I have sentence-end-double-space customized to nil, and a find-file hook that changes it according to the contents of the buffer. I changed this hook function so that it only ever sets sentence-end-double-space, and never clears it.

After this, I find that the variable is correctly overridden by .dir-locals.el in some magit buffers, but not in COMMIT_EDITMSG buffers (which are in text-mode). I don't know whether this is something to do with commit buffers being invoked via emacsclient.

Anyway, I ensured the spacing manually, and filed a magit bug. I thought this problem might be of interest to other Emacs maintainers, as magit seems to be (rightfully!) quite popular.

--

reply via email to

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