all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: rmail buffer switches in R/O mode everytime: how to debug ?
Date: Tue, 04 Feb 2025 14:14:58 +0200	[thread overview]
Message-ID: <86bjvhc3el.fsf@gnu.org> (raw)
In-Reply-To: <m2cyfydb18.fsf@maillard.im> (message from Xavier Maillard on Mon, 03 Feb 2025 21:32:35 +0100)

> From: Xavier Maillard <x@maillard.im>
> Cc: help-gnu-emacs@gnu.org
> Date: Mon, 03 Feb 2025 21:32:35 +0100
> 
> 
> Fount it !
> 
> Culprit seems to be this:
> 
> ; Clean trailing whitespace before saving:
> (add-to-list 'write-file-functions 'delete-trailing-whitespace)
> 
> Is this a bug ? (GNU Emacs 31)

I don't think this is a bug: why would you want to delete trailing
space from the inbox file?  Its format must be preserved, even if
there are excess spaces there.

So I would be more selective in your hook: invoke
delete-trailing-whitespace only in some buffers, not in Rmail buffer.



  reply	other threads:[~2025-02-04 12:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-02 22:40 rmail buffer switches in R/O mode everytime: how to debug ? Xavier Maillard
2025-02-03 12:09 ` Eli Zaretskii
2025-02-03 19:50   ` Xavier Maillard
2025-02-03 20:15     ` Eli Zaretskii
2025-02-03 20:24       ` Xavier Maillard
2025-02-03 20:32         ` Xavier Maillard
2025-02-04 12:14           ` Eli Zaretskii [this message]
2025-02-04 18:59             ` Xavier Maillard
2025-02-04  8:49     ` Alfred M. Szmidt

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=86bjvhc3el.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.