From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10112: ImageMagick doesn't display some image formats Date: Thu, 14 Jun 2012 02:57:05 +0300 Organization: JURTA Message-ID: <87bokmbwa2.fsf@mail.jurta.org> References: <871usz3jh8.fsf@mail.jurta.org> <87zkfltk13.fsf@mail.jurta.org> <85ehwx2o4v.fsf@iznogoud.viz> <857h2p2nnv.fsf@iznogoud.viz> <87pqghrv9a.fsf@mail.jurta.org> <874nx11j7j.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339632385 3597 80.91.229.3 (14 Jun 2012 00:06:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2012 00:06:25 +0000 (UTC) To: 10112@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 14 02:06:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SexZw-0001vC-0i for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jun 2012 02:06:24 +0200 Original-Received: from localhost ([::1]:45377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SexZv-00088u-Ol for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 20:06:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SexZp-00088e-BU for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 20:06:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SexZk-00050g-Gt for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 20:06:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SexZk-00050W-DL for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 20:06:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SexcT-0000HK-Vw for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 20:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jun 2012 00:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10112 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: pending patch Original-Received: via spool by 10112-submit@debbugs.gnu.org id=B10112.13396324901012 (code B ref 10112); Thu, 14 Jun 2012 00:09:01 +0000 Original-Received: (at 10112) by debbugs.gnu.org; 14 Jun 2012 00:08:10 +0000 Original-Received: from localhost ([127.0.0.1]:41463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SexbU-0000Fn-AN for submit@debbugs.gnu.org; Wed, 13 Jun 2012 20:08:10 -0400 Original-Received: from [69.163.218.105] (port=42507 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SexbJ-0000ER-Cq for 10112@debbugs.gnu.org; Wed, 13 Jun 2012 20:07:59 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 082F3451CA46 for <10112@debbugs.gnu.org>; Wed, 13 Jun 2012 17:04:05 -0700 (PDT) In-Reply-To: <874nx11j7j.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 16 Dec 2011 01:57:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60957 Archived-At: I'm starting to adapt this patch to the recent changes in bug#11557. I propose the following modifications: 1. Currently the priority of specialized image libraries over ImageMagick is hard-coded in `imagemagick-register-types' as: ;; Append to `image-type-file-name-regexps', so that we ;; preferentially use specialized image libraries. (add-to-list 'image-type-file-name-regexps (cons re 'imagemagick) t) It could use a new customizable variable where the user can specify whether to use ImageMagick for all enabled image types, or use available specialized libraries. The same option could also specify the priority of `imagemagick' elements in `image-type-header-regexps'. Or maybe this new option is not necessary, and `imagemagick' should have the highest priority. When the user wants to use specialized image libraries, it's possible to remove conflicting image types (such as jpeg/png/gif) from `imagemagick-enabled-types'. 2. The most user-friendly UI to enable image types is to allow the user to select a set of enabled formats from the list of all available formats displayed as checkboxes. This is like during installation of some graphical programs when they present a list of available image format to allow the user to associate them with file extensions. It's possible to do this in Customization UI using the following type for `imagemagick-enabled-types': :type (cons 'set (mapcar (lambda (type) (list 'const type)) (sort (imagemagick-types) 'string<))) 3. `imagemagick-types-inhibit' could use the same customization type, and it should be renamed to `imagemagick-disabled-types' or completely removed, with adding a new element to `imagemagick-enabled-types' that will specify whether the list excludes/includes the defined types.