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

Re: ImageMagick's `convert' program is not available

From: Leo <sdl.web@xxxxxxxxx> said
Subject: [emacs-w3m:11039] Re: ImageMagick's `convert' program is not available
Message-ID: <xbaiab1edbyv.fsf@xxxxxxxxx>
Date: Tue, 01 Sep 2009 14:35:36 +0100

> w3m-imagick-convert-program-available-p must be called somewhere when
> loading w3m.el for the first time and
>   (put 'w3m-imagick-convert-program 'available-p 'unknown)
> in w3m-image overrides this setting.

> it seems (put 'w3m-imagick-convert-program 'available-p 'unknown) is
> redundant. without it, w3m-imagick-convert-program-available-p still
> works and it will also give user at least a way to tell w3m before
> loading that convert is not available.

>> produces the msg:
>>  ImageMagick's `convert' program is not available

I commited the below patch to CVS HEAD. And, you put your

(setq w3m-use-favicon nil)
(setq w3m-imagick-convert-program nil) 

before loding of emacs-w3m. So I think that you satisfy it. 


Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)
--- w3m-image.el	12 Mar 2008 07:37:07 -0000	1.25
+++ w3m-image.el	2 Sep 2009 03:04:08 -0000
@@ -122,8 +122,9 @@
 		  (looking-at "\211PNG\r\n"))))
-	 (message "ImageMagick's `convert' program is not available")
-	 (sit-for 1)
+	 (when w3m-imagick-convert-program
+	   (message "ImageMagick's `convert' program is not available")
+	   (sit-for 1))
 	 (setq w3m-imagick-convert-program nil
 	       w3m-resize-images nil)
 	 (put 'w3m-imagick-convert-program 'available-p 'no)