diff options
author | Glenn Morris <rgm@gnu.org> | 2014-05-07 20:41:21 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-05-07 20:41:21 -0700 |
commit | fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b (patch) | |
tree | f106c360c3aef01bcacdc77b66b7c5b20261502e /lisp/gnus/gnus-fun.el | |
parent | 1ba38c429fa6ce17568771ef51c8e53b1a72bb94 (diff) | |
parent | 606695a67801acfd1792110e4ea3228b50b0117d (diff) | |
download | emacs-fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b.tar.gz |
Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org
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 d6b4fba6246..e0d1578f49a 100644 --- a/lisp/gnus/gnus-fun.el +++ b/lisp/gnus/gnus-fun.el @@ -301,20 +301,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 () |