From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: imagemagick format detection code Date: Mon, 12 Aug 2013 19:43:05 +0200 Message-ID: <87li46st3q.fsf@zigzag.favinet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1376329242 20885 80.91.229.3 (12 Aug 2013 17:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2013 17:40:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 12 19:40:41 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 1V8w6h-0000dB-PH for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 19:40:39 +0200 Original-Received: from localhost ([::1]:41878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8w6g-0000vY-UG for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 13:40:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8w6V-0000nS-1V for emacs-devel@gnu.org; Mon, 12 Aug 2013 13:40:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8w6P-0003UT-Pj for emacs-devel@gnu.org; Mon, 12 Aug 2013 13:40:26 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:37655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8w6P-0003U9-FB for emacs-devel@gnu.org; Mon, 12 Aug 2013 13:40:21 -0400 Original-Received: from zigzag.favinet (87.9.131.145) by smtp207.alice.it (8.6.060.28) id 51F28102040396E8 for emacs-devel@gnu.org; Mon, 12 Aug 2013 19:40:20 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1V8w9C-0000cN-S9 for emacs-devel@gnu.org; Mon, 12 Aug 2013 19:43:14 +0200 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 12 Aug 2013 17:17:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 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:162636 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Lars Magne Ingebrigtsen () Mon, 12 Aug 2013 17:17:39 +0200 Yes. This will add to the general confusion in this area. Another idea (that may or may not increase confusion) is to use GNU libextractor: http://www.gnu.org/software/libextractor/ for image type (format) detection, and perhaps (w/ a SMOP) as an additional "magic" for =E2=80=98magic-mode-alist=E2=80=99, something like: (EXTRACTOR-SPEC . FUNCTION) where EXTRACTOR-SPEC is a non-string (otherwise it would be taken as REGEXP) form that configures libextractor to DTRT. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlIJHqwACgkQZwMiJEyAdQKYEACgpcjPk8gWly4SoKJ3cY+YrXIt oqUAn1KDtiXlzHHM5tcmMiUVL82Rv/kM =3yrm -----END PGP SIGNATURE----- --=-=-=--