[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using libmagic in Emacs?
From: |
Stefan Monnier |
Subject: |
Re: using libmagic in Emacs? |
Date: |
Tue, 18 Aug 2009 23:21:13 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
>> >>> I think it's a good idea. It may require some non-trivial changes on
>> >>> the Lisp side, since libmagic's information is not quite the same as
>> >>> what Emacs currently uses: we'll probably want to use libmagic to get
>> >>> a MIME-type and then have a table mapping mime-types to major modes or
>> >>> some such.
>> >> This development would probably have to take place in a separate
>> >> branch.
>>
>> I don't expect it to be too intrusive, so I think it can be done on the
>> trunk, tho of course, each step needs to be planned with care.
> So what is the rule for new features that can be installed on the
> trunk at this time?
The rule is: anything is possible, but ones that aren't simple and safe
need to get confirmation here first.
> I thought only relatively minor and safe ones,
> but this one seems to break that rule, at least in my book.
It looks pretty safe: the first step is to add the Lisp API, which
should not impact any other code (tho it may cause temporary build
failures, I guess). After that, set-auto-mode (and/or image.el, ...)
will need to be tweaked to also take libmagic into account
when available. This should also be fairly simple.
> If this one is okay, then why not something like bidirectional
> editing, for example?
I was thinking of bidi for Emacs-24, but if you have code ready for it,
and if it's not too intrusive, I'd be willing to consider it.
> Maybe we should simply decide right here and now that Emacs 23.2 will
> be delivered from the RC branch, and open the trunk for all changes,
> even not-so-safe ones?
Yes, that's pretty much where we're at, I think, yes.
Stefan
- using libmagic in Emacs?, joakim, 2009/08/18
- Re: using libmagic in Emacs?, Stefan Monnier, 2009/08/18
- Re: using libmagic in Emacs?, Chong Yidong, 2009/08/18
- Re: using libmagic in Emacs?, joakim, 2009/08/18
- Re: using libmagic in Emacs?, Stefan Monnier, 2009/08/18
- Re: using libmagic in Emacs?, Eli Zaretskii, 2009/08/18
- Re: using libmagic in Emacs?,
Stefan Monnier <=
- Re: using libmagic in Emacs?, Chong Yidong, 2009/08/19
- Re: using libmagic in Emacs?, joakim, 2009/08/19
- next bugfix release? [was: Re: using libmagic in Emacs?], Dan Nicolaescu, 2009/08/19
- Re: next bugfix release?, Chong Yidong, 2009/08/19
- Re: next bugfix release?, Dan Nicolaescu, 2009/08/19
- Re: next bugfix release?, Alan Mackenzie, 2009/08/19
- Re: next bugfix release?, Nick Roberts, 2009/08/19
- Re: next bugfix release?, Lennart Borgman, 2009/08/20
- Re: next bugfix release?, Eric M. Ludlam, 2009/08/20
- Re: next bugfix release?, Alan Mackenzie, 2009/08/20