diff options
author | Glenn Morris <rgm@gnu.org> | 2014-05-05 20:50:51 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-05-05 20:50:51 -0700 |
commit | 088e020172e7cdbf75a94ab13a147ff9bb1dd7b4 (patch) | |
tree | 253a81e0c93c7243d9aca2fa55b2a13bda9d6d50 /lisp/gnus/gnus-fun.el | |
parent | bf67c3f7ef0260eaf31ec301f8ba3c87809bd076 (diff) | |
download | emacs-088e020172e7cdbf75a94ab13a147ff9bb1dd7b4.tar.gz emacs-088e020172e7cdbf75a94ab13a147ff9bb1dd7b4.tar.bz2 emacs-088e020172e7cdbf75a94ab13a147ff9bb1dd7b4.zip |
* gnus-fun.el (gnus-grab-cam-face): Do not use predictable temp-file name.
Diffstat (limited to 'lisp/gnus/gnus-fun.el')
-rw-r--r-- | lisp/gnus/gnus-fun.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el index 50076821a8d..28c6a4d3312 100644 --- a/lisp/gnus/gnus-fun.el +++ b/lisp/gnus/gnus-fun.el @@ -250,20 +250,21 @@ colors of the displayed X-Faces." (interactive) (shell-command "xawtv-remote snap ppm") (let ((file nil) + (tempfile (make-temp-file "gnus-face-" nil ".ppm")) result) (while (null (setq file (directory-files "/tftpboot/sparky/tmp" t "snap.*ppm"))) (sleep-for 1)) (setq file (car file)) (shell-command - (format "pnmcut -left 110 -top 30 -width 144 -height 144 '%s' | pnmscale -width 48 -height 48 | ppmtopgm > /tmp/gnus.face.ppm" - file)) + (format "pnmcut -left 110 -top 30 -width 144 -height 144 '%s' | pnmscale -width 48 -height 48 | ppmtopgm >> %s" + file tempfile)) (let ((gnus-convert-image-to-face-command (format "cat '%%s' | ppmquant %%d | ppmchange %s | pnmtopng" (gnus-fun-ppm-change-string)))) - (setq result (gnus-face-from-file "/tmp/gnus.face.ppm"))) + (setq result (gnus-face-from-file tempfile))) (delete-file file) - ;;(delete-file "/tmp/gnus.face.ppm") + ;;(delete-file tempfile) ; FIXME why are we not deleting it?! result)) (defun gnus-fun-ppm-change-string () |