[PATCH] emacs: use ".ps" suffix for PostScript temporary files.

classic Classic list List threaded Threaded
3 messages Options
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

[PATCH] 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
---
 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

_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
David Edmondson David Edmondson
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] emacs: use ".ps" suffix for PostScript temporary files.

On Wednesday, 2019-01-30 at 07:20:31 -04, David Bremner wrote:

> Joerg Jaspert [1] reported problems with evince reading unsuffixed
> temporary files in Debian.

Looks good.

>
> [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
>
> _______________________________________________
> notmuch mailing list
> [hidden email]
> https://notmuchmail.org/mailman/listinfo/notmuch

dme.
--
Sometimes these eyes, forget the face they're peering from.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] emacs: use ".ps" suffix for PostScript temporary files.

In reply to this post by David Bremner-2
David Bremner <[hidden email]> writes:

> Joerg Jaspert [1] reported problems with evince reading unsuffixed
> temporary files in Debian.
>
> [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920856

pushed to master
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch