emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using libmagic in Emacs?


From: Juri Linkov
Subject: Re: using libmagic in Emacs?
Date: Mon, 31 Aug 2009 19:17:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

>> > PLEASE do not base Emacs infrastructure on external programs, unless
>> > they come with Emacs.
>>
>> There are many features in Emacs that depend on external programs,
>> e.g. `ls' for dired, `find' and `grep', `man', `ispell', `shell',
>> `gdb', `diff', VCS tools, etc.
>
> I said infrastructure, not features.  Of those you mentioned only `ls'
> is used in infrastructure, and that's precisely why we had to write
> ls-lisp.el.

`mailcap-file-default-commands' is not infrastructure.  It's one
small feature.

>> My patch fails gracefully when `file' is not available, I tried
>> removing `file' without any problem.  The function just returns nil.
>
> And that is graceful how?

When it returns nil, then default commands are the same as provided
by mailcap for plain text files, i.e. `less', `konqueror', etc.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]