all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gabriel <gabriel376@hotmail.com>
To: 59687@debbugs.gnu.org
Subject: bug#59687: 30.0.50; whitespace-mode not working on message-mode
Date: Tue, 29 Nov 2022 15:42:34 -0300	[thread overview]
Message-ID: <SJ0PR06MB86096872710450FB2EF3F7B18B129@SJ0PR06MB8609.namprd06.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

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).


[-- Attachment #2: bug.mkv --]
[-- Type: video/x-matroska, Size: 524087 bytes --]

[-- Attachment #3: Type: text/plain, Size: 13 bytes --]


---
Gabriel

                 reply	other threads:[~2022-11-29 18:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR06MB86096872710450FB2EF3F7B18B129@SJ0PR06MB8609.namprd06.prod.outlook.com \
    --to=gabriel376@hotmail.com \
    --cc=59687@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.