🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #898

mail-send incorrectly resets modified status

#898
From: David desJardins
Date: Mon, 14 Dec 1992 04:41
18 lines
1212 bytes
Emacs mail-mode uses the modified bit to determine whether the message
being composed has been sent.  However, this generates incorrect
behavior when the buffer is visiting a file.

Visit a file, and type M-x mail-mode to enter mail mode.  Now type some
text into the buffer (in the format of an emacs mail message), and type
C-c C-s (mail-send).  The message will be mailed, and the buffer status
will be toggled to unmodified, even though the contents of the buffer do
not match the file on disk.

I would find either of the following solutions acceptable:

   (1) If the buffer is visiting a file, mail-send does not clear the
       modified bit.

   (2) If the buffer is visiting a file, mail-send saves the file.

                                        David desJardins
Technical Details
Message-ID: <1810@idacrd.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!idacrd.UUCP!desj

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!idacrd.UUCP!desj
From: desj@idacrd.UUCP (David desJardins)
Subject: mail-send incorrectly resets modified status
Message-ID: <1810@idacrd.UUCP>
Sender: gnulists@ai.mit.edu
Organization: IDA Center for Communications Research, Princeton
Distribution: gnu
Date: Mon, 14 Dec 1992 04:41:35 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 19