emacs: Don't mark messages as "unsaved" when printing.
authorDavid Edmondson <dme@dme.org>
Wed, 25 Jan 2012 13:48:33 +0000 (13:48 +0000)
committerDavid Bremner <bremner@debian.org>
Fri, 27 Jan 2012 12:01:59 +0000 (08:01 -0400)
`ps-print-buffer' notes that a buffer is unsaved unless
`buffer-modified-p' returns `nil', so ensure that it does.

emacs/notmuch-print.el

index fd86288acc62761442a297ef3b2cf6aa37f884ac..880f96d9053f38c3e7ad5a0837e874db7b8a89d2 100644 (file)
@@ -82,6 +82,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
 
 (defun notmuch-print-message (msg)
   "Print a message using the user-selected mechanism."
 
 (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)
   (funcall notmuch-print-mechanism msg))
 
 (provide 'notmuch-print)