mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: use ".ps" suffix for PostScript temporary files.
Joerg Jaspert [1] reported problems with evince reading unsuffixed temporary files in Debian. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920856
This commit is contained in:
parent
175f80c4c1
commit
617b36f3d1
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
|
||||||
|
|
||||||
(defun notmuch-print-ps-print/evince (msg)
|
(defun notmuch-print-ps-print/evince (msg)
|
||||||
"Preview a message buffer using ps-print and evince."
|
"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
|
(subject (notmuch-prettify-subject
|
||||||
(plist-get (notmuch-show-get-prop :headers msg) :Subject))))
|
(plist-get (notmuch-show-get-prop :headers msg) :Subject))))
|
||||||
(rename-buffer subject t)
|
(rename-buffer subject t)
|
||||||
|
@ -82,7 +82,7 @@ Optional OUTPUT allows passing a list of flags to muttprint."
|
||||||
|
|
||||||
(defun notmuch-print-muttprint/evince (msg)
|
(defun notmuch-print-muttprint/evince (msg)
|
||||||
"Preview a message buffer using muttprint and evince."
|
"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-muttprint (list "--printer" (concat "TO_FILE:" ps-file)))
|
||||||
(notmuch-print-run-evince ps-file)))
|
(notmuch-print-run-evince ps-file)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue