GNU bug report logs - #59687
30.0.50; whitespace-mode not working on message-mode

Previous Next

Package: emacs;

Reported by: Gabriel <gabriel376 <at> hotmail.com>

Date: Tue, 29 Nov 2022 18:43:01 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 59687 AT debbugs.gnu.org.

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#59687; Package emacs. (Tue, 29 Nov 2022 18:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gabriel <gabriel376 <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org.

Your message specified a Severity: in the pseudo-header, but the severity value bug was not recognised. The default severity normal is being used instead. The recognised values are: critical, grave, serious, important, normal, minor, wishlist.

(Tue, 29 Nov 2022 18:43:02 GMT) Full text and rfc822 format available.


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

From: Gabriel <gabriel376 <at> hotmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; whitespace-mode not working on message-mode
Date: Tue, 29 Nov 2022 15:42:34 -0300
[Message part 1 (text/plain, inline)]
Severity: bug

Description:

Some styles from whitespace-mode are not working properly when enabled
in message-mode and mail-user-agent is set to gnus-user-agent.

Steps:

1) emacs -Q (master "7939184f8e0370e7a3397d492812c6d202c2a193")

2) Eval the following to automatically enable whitespace-mode on
message-mode buffers:

(add-hook 'message-mode-hook #'whitespace-mode)

3) Compose new email with C-x m

Result: the whitespace-mode is enabled and the styles are properly
displayed, e.g., the red mark (trailing) on line 2 after the word "Subject: ".

4) Run Gnus with M-x gnus (ignore all errors, just make sure gnus is running)

5) Compose new email with C-x m

Result: the whitespace-mode is enabled and the styles are properly
displayed, e.g., the red mark (trailing) on line 2 after the word "Subject: ".

6) Eval the following to set mail-user-agent:

(setopt mail-user-agent 'gnus-user-agent)

7) Compose new email with C-x m

Result: the whitespace-mode is enabled but some styles are NOT properly
displayed, e.g., the red mark (trailing) on line 2 after the word
"Subject: " is missing.  The dot (space-mark) and the dollar sign
(newline-mark) are properly displayed.

8) Toggle whitespace-mode by executing twice M-x whitespace-mode

Result: the whitespace-mode is disabled and enabled, and now all styles
are properly displayed (as in steps 3 and 5).

Notes:

- The problem is not be reproduced if mail-user-agent is not set to
  gnus-user-agent.

- The problem is not reproduced if whitespace-mode is manually enabled
  in message-mode buffers (i.e., without using hook).

[bug.mkv (video/x-matroska, attachment)]
[Message part 3 (text/plain, inline)]
---
Gabriel

This bug report was last modified 1 year and 359 days ago.

Previous Next


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