emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imagemagic in image-mode and image-dired-thumbnail-mode?


From: Vitalie Spinu
Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode?
Date: Tue, 23 Jul 2013 10:31:27 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

I cannot reproduce these warnings anymore. They suddenly
disappeared. But I am almost sure they are stderr. Similar warning
appears when emacs starts, and emacs 2> error.log gets rid of them. So
your suggestion should work.

Thanks, 

    Vitalie


 >> Lars Magne Ingebrigtsen <address@hidden>
 >> on Mon, 22 Jul 2013 22:31:15 +0200 wrote:

 > Vitalie Spinu <address@hidden> writes:
 >> But I wonder what is the correct way of doing it.
 >> 
 >> (call-process "convert"
 >> nil (list (get-buffer-create "tttt")) nil
 >> "temp.jpg" "-size 500x1000" "-")
 >> 
 >> also puts silly warnings into the same buffer:
 >> 
 >> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading 
 >> configurations from ~/.fonts.conf is deprecated.

 > Presumably (or hopefully :-) those are from STDERR, so you need to
 > redirect that:

 > (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS)

 > [...]

 > DESTINATION can also have the form (REAL-BUFFER STDERR-FILE); in that case,
 > REAL-BUFFER says what to do with standard output, as above,
 > while STDERR-FILE says what to do with standard error in the child.
 > STDERR-FILE may be nil (discard standard error output),
 > t (mix it with ordinary output), or a file name string.

 > So that should be

 >  (call-process "convert"
 >                 nil (list (get-buffer-create "tttt") nil) nil
 >                 "temp.jpg" "-size 500x1000" "-")

 > Note the extra nil in DESTINATION.                



reply via email to

[Prev in Thread] Current Thread [Next in Thread]