From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: [PATCH] emacs: use ".ps" suffix for PostScript temporary files.
Date: Wed, 30 Jan 2019 07:20:31 -0400 [thread overview]
Message-ID: <20190130112031.28642-1-david@tethera.net> (raw)
Joerg Jaspert [1] reported problems with evince reading unsuffixed
temporary files in Debian.
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920856
---
emacs/notmuch-print.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el
index bca759fa..d9b3d449 100644
--- a/emacs/notmuch-print.el
+++ b/emacs/notmuch-print.el
@@ -69,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)
@@ -82,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)))
--
2.20.1
next reply other threads:[~2019-01-30 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-30 11:20 David Bremner [this message]
2019-01-30 11:45 ` [PATCH] emacs: use ".ps" suffix for PostScript temporary files David Edmondson
2019-02-01 13:43 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190130112031.28642-1-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).