all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: imagemagick format detection code
Date: Mon, 12 Aug 2013 19:43:05 +0200	[thread overview]
Message-ID: <87li46st3q.fsf@zigzag.favinet> (raw)
In-Reply-To: <m361vblyzw.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Mon, 12 Aug 2013 17:17:39 +0200")

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

() Lars Magne Ingebrigtsen <larsi@gnus.org>
() 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 ‘magic-mode-alist’, 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.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2013-08-12 17:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-11 21:14 imagemagick format detection code Lars Magne Ingebrigtsen
2013-08-11 21:27 ` Lars Magne Ingebrigtsen
2013-08-12  1:06   ` Stefan Monnier
2013-08-12 15:17     ` Lars Magne Ingebrigtsen
2013-08-12 17:43       ` Thien-Thi Nguyen [this message]
2013-08-13 14:23       ` Stefan Monnier
2013-08-13 18:14         ` Lars Magne Ingebrigtsen
2013-08-13 18:19           ` Lars Magne Ingebrigtsen
2013-08-13 18:56           ` Stefan Monnier
2013-08-13 19:05             ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87li46st3q.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.