home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.bug
- Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevin
- From: kevin@traffic.den.mmc.com (Kevin Rodgers)
- Subject: Re: mail-send incorrectly resets modified status
- Message-ID: <1992Dec16.165232.4162@den.mmc.com>
- Sender: gnulists@ai.mit.edu
- Organization: Martin Marietta Western Internal Systems, Technical Operations
- References: <1810@idacrd.UUCP>
- Distribution: gnu
- Date: Wed, 16 Dec 1992 16:52:32 GMT
- Approved: bug-gnu-emacs@prep.ai.mit.edu
- Lines: 31
-
- In article <1810@idacrd.UUCP> desj@idacrd.UUCP (David desJardins) writes:
- >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.
-
- Or both:
-
- (if buffer-file-name
- (if (or noninteractive
- (y-or-n-p (format "Save file %s? " buffer-file-name)))
- (save-buffer))
- (set-buffer-modified-p nil))
- --
- Kevin Rodgers kevin@traffic.den.mmc.com
- Martin Marietta MS A16401 (303) 790-3971
- 116 Inverness Dr. East
- Englewood CO 80112 USA GO BUFFS!
-
-