From: Jason Rumney <jasonr@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Chong Yidong <cyd@stupidchicken.com>,
Stefan Monnier <monnier@iro.umontreal.ca>,
emacs-devel@gnu.org
Subject: Re: Image autodetection
Date: Tue, 30 Jan 2007 16:54:17 +0000 [thread overview]
Message-ID: <45BF7839.6050400@gnu.org> (raw)
In-Reply-To: <f7ccd24b0701300759v5a5c6bta978fc84f8d2e5a6@mail.gmail.com>
Juanma Barranquero wrote:
> That would be a different change. As it is now, if we just change
> `image-mode' to `image-minor-mode' in `magic-mode-alist' (as was done
> in a previous proposed patch, now rejected), image files would be
> opened in fundamental mode + image minor mode, because as soon as a
> non-nil mode is returned when searching in `magic-mode-alist' the
> detection of major mode is finished (and so `auto-mode-alist' is
> bypassed). At least, that's what I remember from a test I did.
We have image-mode-maybe that uses image-mode for files that are
unambiguously images, and image-minor-mode for files where there may be
another appropriate mode. With some minor changes, it could be used in
magic-mode-alist.
next prev parent reply other threads:[~2007-01-30 16:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-29 19:05 Image autodetection Chong Yidong
2007-01-29 19:19 ` Juanma Barranquero
2007-01-30 9:04 ` Jason Rumney
2007-01-30 9:38 ` Juanma Barranquero
2007-01-30 12:11 ` Juanma Barranquero
2007-01-30 15:24 ` Stefan Monnier
2007-01-30 15:59 ` Juanma Barranquero
2007-01-30 16:54 ` Jason Rumney [this message]
2007-01-30 17:07 ` Juanma Barranquero
2007-01-30 16:58 ` Chong Yidong
2007-01-29 23:53 ` Richard Stallman
2007-01-30 0:55 ` Miles Bader
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=45BF7839.6050400@gnu.org \
--to=jasonr@gnu.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--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 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.