[PATCH 2/3] emacs: Don't mark messages as "unsaved" when printing.

Subject: [PATCH 2/3] emacs: Don't mark messages as "unsaved" when printing.

Date: Wed, 25 Jan 2012 13:08:32 +0000

To: notmuch@notmuchmail.org

Cc:

From: David Edmondson


`ps-print-buffer' notes that a buffer is unsaved unless
`buffer-modified-p' returns `nil', so ensure that it does.
---
 emacs/notmuch-print.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el
index f96ccbe..83eb525 100644
--- a/emacs/notmuch-print.el
+++ b/emacs/notmuch-print.el
@@ -80,6 +80,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
 
 (defun notmuch-print-message (msg)
   "Print a message using the user-selected mechanism."
+  (set-buffer-modified-p nil)
   (funcall notmuch-print-mechanism msg))
 
 (provide 'notmuch-print)
-- 
1.7.8.3


Thread: