From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode? Date: Tue, 23 Jul 2013 10:31:27 +0200 Organization: EUR Message-ID: <87siz5fzj4.fsf@gmail.com> References: <87a9lp8uxk.fsf@gmail.com> <87ppuk6qqb.fsf@gmail.com> <87vc49y793.fsf@gmail.com> <87ppuhxk04.fsf@gmail.com> <87k3kigxhz.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374568574 24808 80.91.229.3 (23 Jul 2013 08:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jul 2013 08:36:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 23 10:36:15 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V1Y4s-0006kq-Hu for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2013 10:36:14 +0200 Original-Received: from localhost ([::1]:34704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Y4r-00050X-SB for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2013 04:36:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Y0P-0005KJ-8S for emacs-devel@gnu.org; Tue, 23 Jul 2013 04:31:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1Y0J-0001jh-9D for emacs-devel@gnu.org; Tue, 23 Jul 2013 04:31:37 -0400 Original-Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:47012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Y0J-0001jQ-3f for emacs-devel@gnu.org; Tue, 23 Jul 2013 04:31:31 -0400 Original-Received: by mail-ea0-f178.google.com with SMTP id l15so4393382eak.9 for ; Tue, 23 Jul 2013 01:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=aXJSqOOqq7aACGrpwjT2rCaeHCaZBW8L6umWPfjvWLU=; b=C4Q0y3kiz6hgKGK7oWvkqYUMZoIUuClrIVUek4Qs43qRXfMOpDi3tA2uoWLCQosz01 aDEn7CnPVRQumRYESrMoQZvdExzsKM6pG7J/UBNj0cWmupzYNWx116JoMu2SL8dg7X2O ET8Alw00vZraAVxTlzULTLZS5i0O4DpAHq4DLHrXSRPsvOn0nH+ZAfL5nvBzYlq5xQD7 IKxbg4dYIRXsUwoWAnwEGReN814SWRf45d8yP0Boq430wXEpT8p51KRTYzBkYOVTR6s5 S3O84e5z1dJRUH7ylJIuWzzTa3wadW2tC9s+cn9X7k1OXyRrHf5jdadeHBg/6J4rOPNB /rCQ== X-Received: by 10.15.21.199 with SMTP id d47mr31168217eeu.36.1374568290225; Tue, 23 Jul 2013 01:31:30 -0700 (PDT) Original-Received: from localhost (dhcp-077-249-018-128.chello.nl. [77.249.18.128]) by mx.google.com with ESMTPSA id n45sm56950809eew.1.2013.07.23.01.31.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 23 Jul 2013 01:31:29 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 22 Jul 2013 22:31:15 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162085 Archived-At: 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 >> on Mon, 22 Jul 2013 22:31:15 +0200 wrote: > Vitalie Spinu 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.