[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 11 Feb 2008 01:18:41 +0200
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
Visiting an Arc Lisp file in Emacs fails with the error
"Buffer format not recognized".
Even though Emacs doesn't have an auto-mode-alist entry
associated with Arc, it should visit it in fundamental-mode,
not to fail trying to open it as an archive. Archive files
have a well-known signature, and using content-based file
type recognition rather than filename-based is more reliable.
This will also improve the recognition of image file formats.
Are there any obstacles to using magic-mime to determine the file
type in Emacs? If linking libmagic is not possible, then maybe
we could parse the magic.mime file, and even run the `file'
command directly on a visited file?
- Magic MIME,
Juri Linkov <=