home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / bug / 1579 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.6 KB  |  45 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevin
  3. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  4. Subject: Re: mail-send incorrectly resets modified status
  5. Message-ID: <1992Dec16.165232.4162@den.mmc.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Martin Marietta Western Internal Systems, Technical Operations
  8. References: <1810@idacrd.UUCP>
  9. Distribution: gnu
  10. Date: Wed, 16 Dec 1992 16:52:32 GMT
  11. Approved: bug-gnu-emacs@prep.ai.mit.edu
  12. Lines: 31
  13.  
  14. In article <1810@idacrd.UUCP> desj@idacrd.UUCP (David desJardins) writes:
  15. >Emacs mail-mode uses the modified bit to determine whether the message
  16. >being composed has been sent.  However, this generates incorrect
  17. >behavior when the buffer is visiting a file.
  18. >
  19. >Visit a file, and type M-x mail-mode to enter mail mode.  Now type some
  20. >text into the buffer (in the format of an emacs mail message), and type
  21. >C-c C-s (mail-send).  The message will be mailed, and the buffer status
  22. >will be toggled to unmodified, even though the contents of the buffer do
  23. >not match the file on disk.
  24. >
  25. >I would find either of the following solutions acceptable:
  26. >
  27. >   (1) If the buffer is visiting a file, mail-send does not clear the
  28. >       modified bit.
  29. >
  30. >   (2) If the buffer is visiting a file, mail-send saves the file.
  31.  
  32. Or both:
  33.  
  34.   (if buffer-file-name
  35.       (if (or noninteractive
  36.           (y-or-n-p (format "Save file %s? " buffer-file-name)))
  37.       (save-buffer))
  38.     (set-buffer-modified-p nil))
  39. -- 
  40. Kevin Rodgers                kevin@traffic.den.mmc.com
  41. Martin Marietta MS A16401        (303) 790-3971
  42. 116 Inverness Dr. East
  43. Englewood CO 80112 USA            GO BUFFS!
  44.  
  45.