GNU bug report logs - #50474
28.0.50; whitespace-mode in non-editable Gnus buffers

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Wed, 8 Sep 2021 13:22:02 UTC

Severity: normal

Tags: wontfix

Found in version 28.0.50

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 50474 in the body.
You can then email your comments to 50474 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#50474; Package emacs. (Wed, 08 Sep 2021 13:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 Sep 2021 13:22:02 GMT) Full text and rfc822 format available.

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

From: Stephen Berman <stephen.berman <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; whitespace-mode in non-editable Gnus buffers
Date: Wed, 08 Sep 2021 15:21:42 +0200
Enabling whitespace-mode in Gnus Group, Summary or Article buffers
removes the Gnus-specific fontification in these buffers.  This happens
when whitespace-color-on calls font-lock-add-keywords, which tests (and
font-lock-mode (not (or font-lock-keywords font-lock-defaults))), and in
the Gnus buffers font-lock-mode is t and font-lock-keywords and
font-lock-defaults are both nil, so the test succeeds and consequently
the following sexps are evaluated:

           (font-lock-mode -1)
           (setq-local font-lock-defaults '(nil t))
           (font-lock-mode 1)

which removes the buffer fontification.  Adding `(font-lock-mode -1)' to
the gnus-{group,summary,article}-mode definitions prevents this (i.e.,
keeps the Gnus-specific fontification), but then the whitespace-mode
faces are not applied to the Gnus buffers.


In GNU Emacs 28.0.50 (build 16, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4)
 of 2021-09-08 built on strobelfs
Repository revision: 439ca062c830a7f3288a2dac48457edf5b1bfc59
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Linux From Scratch 10.2-rc1

Configured using:
 'configure --with-native-compilation 'CFLAGS=-Og -g3'
 PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM
GTK3 ZLIB




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50474; Package emacs. (Wed, 08 Sep 2021 13:28:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 50474 <at> debbugs.gnu.org
Subject: Re: bug#50474: 28.0.50; whitespace-mode in non-editable Gnus buffers
Date: Wed, 08 Sep 2021 15:26:55 +0200
Stephen Berman <stephen.berman <at> gmx.net> writes:

> Enabling whitespace-mode in Gnus Group, Summary or Article buffers
> removes the Gnus-specific fontification in these buffers. 

Yes, that's not supported -- none of the font locking stuff can be used
in Gnus buffers (since it controls the fonts itself).  

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50474; Package emacs. (Wed, 08 Sep 2021 13:50:02 GMT) Full text and rfc822 format available.

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

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50474 <at> debbugs.gnu.org
Subject: Re: bug#50474: 28.0.50; whitespace-mode in non-editable Gnus buffers
Date: Wed, 08 Sep 2021 15:48:53 +0200
On Wed, 08 Sep 2021 15:26:55 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
>> Enabling whitespace-mode in Gnus Group, Summary or Article buffers
>> removes the Gnus-specific fontification in these buffers.
>
> Yes, that's not supported -- none of the font locking stuff can be used
> in Gnus buffers (since it controls the fonts itself).

That's what I assumed, but is it documented?  (I briefly looked but
didn't see anything relevant.)  And although it's probably not too
common to enable whitespace-mode in a non-editable Gnus buffer, it is a
gotcha if you happen to do so.  It would be user-friendly to prevent
that, but maybe the effort isn't worth it.

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50474; Package emacs. (Thu, 09 Sep 2021 13:44:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 50474 <at> debbugs.gnu.org
Subject: Re: bug#50474: 28.0.50; whitespace-mode in non-editable Gnus buffers
Date: Thu, 09 Sep 2021 15:43:36 +0200
Stephen Berman <stephen.berman <at> gmx.net> writes:

> That's what I assumed, but is it documented?

Apparently not, so I've now added a paragraph to the Gnus manual about this.

> (I briefly looked but
> didn't see anything relevant.)  And although it's probably not too
> common to enable whitespace-mode in a non-editable Gnus buffer, it is a
> gotcha if you happen to do so.  It would be user-friendly to prevent
> that, but maybe the effort isn't worth it.

Yeah, I don't think it's worth it -- your report about this is the first
time I can recall somebody trying this in...  er...  has it been 30
years now?  :-)

-- 
(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, 09 Sep 2021 13:44:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 50474 <at> debbugs.gnu.org and Stephen Berman <stephen.berman <at> gmx.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Sep 2021 13:44: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, 08 Oct 2021 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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