X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=emacs%2Fnotmuch-print.el;h=6dd9f775a9ddba858c9358dc569f70b462f073b1;hb=b4ee80dcbdd6702a693110321ad69c380967846d;hp=6653d97782c4c6a046679f8da99ceec73611989b;hpb=d43f6c00b351424e903c2f2b71c34bc5902b467e;p=notmuch
diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el
index 6653d977..6dd9f775 100644
--- a/emacs/notmuch-print.el
+++ b/emacs/notmuch-print.el
@@ -1,4 +1,4 @@
-;; notmuch-print.el --- printing messages from notmuch.
+;;; notmuch-print.el --- printing messages from notmuch
;;
;; Copyright © David Edmondson
;;
@@ -15,17 +15,19 @@
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
-;; along with Notmuch. If not, see .
+;; along with Notmuch. If not, see .
;;
;; Authors: David Edmondson
+;;; Code:
+
(require 'notmuch-lib)
(declare-function notmuch-show-get-prop "notmuch-show" (prop &optional props))
(defcustom notmuch-print-mechanism 'notmuch-print-lpr
"How should printing be done?"
- :group 'notmuch
+ :group 'notmuch-show
:type '(choice
(function :tag "Use lpr" notmuch-print-lpr)
(function :tag "Use ps-print" notmuch-print-ps-print)
@@ -67,7 +69,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
(defun notmuch-print-ps-print/evince (msg)
"Preview a message buffer using ps-print and evince."
- (let ((ps-file (make-temp-file "notmuch"))
+ (let ((ps-file (make-temp-file "notmuch" nil ".ps"))
(subject (notmuch-prettify-subject
(plist-get (notmuch-show-get-prop :headers msg) :Subject))))
(rename-buffer subject t)
@@ -80,7 +82,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
(defun notmuch-print-muttprint/evince (msg)
"Preview a message buffer using muttprint and evince."
- (let ((ps-file (make-temp-file "notmuch")))
+ (let ((ps-file (make-temp-file "notmuch" nil ".ps")))
(notmuch-print-run-muttprint (list "--printer" (concat "TO_FILE:" ps-file)))
(notmuch-print-run-evince ps-file)))
@@ -90,3 +92,5 @@ Optional OUTPUT allows passing a list of flags to muttprint."
(funcall notmuch-print-mechanism msg))
(provide 'notmuch-print)
+
+;;; notmuch-print.el ends here