unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] emacs/lisp image.el
Date: Tue, 1 Sep 2009 02:05:44 +0200	[thread overview]
Message-ID: <f7ccd24b0908311705v3fc8bec2rfea619b65f726f9@mail.gmail.com> (raw)
In-Reply-To: <jwvzl9f4k9f.fsf-monnier+emacs@gnu.org>

On Tue, Sep 1, 2009 at 01:49, Stefan Monnier<monnier@iro.umontreal.ca> wrote:

> I have a the vague impression that it's linked to the long discussion we
> had about safety and other such things linked to the use of magic-* in
> preference to auto-mode-alist, so we wanted to avoid false positives.

But image-jpeg-p exists, and has been used in image-type-regexps, since 2001:

2001-08-08  Gerd Moellmann  <gerd@gnu.org>

        * image.el (image-type-regexps): Allow predicates.  Change the way
        JPEG images are recognized.
        (image-jpeg-p): New function.
        (image-type-from-data): Handle predicates in image-type-regexps.

It was, apparently, never intended to be anything but a helper for
image-type-regexps.

The discussion you're talking about is much more recent, isn't? (2005
or 2006, I think.)

    Juanma




      reply	other threads:[~2009-09-01  0:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1MhBBw-0007QN-2z@cvs.savannah.gnu.org>
2009-08-29  0:21 ` [Emacs-diffs] emacs/lisp image.el Juanma Barranquero
2009-08-29 22:46   ` Juri Linkov
2009-08-29 23:14     ` Juanma Barranquero
2009-08-30 20:51       ` Juri Linkov
2009-08-31 15:15   ` Chong Yidong
2009-08-31 23:49     ` Stefan Monnier
2009-09-01  0:05       ` Juanma Barranquero [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=f7ccd24b0908311705v3fc8bec2rfea619b65f726f9@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).