all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Magic MIME
@ 2008-02-10 23:18 Juri Linkov
  2008-02-11  2:24 ` Stefan Monnier
  2008-02-11  4:16 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Juri Linkov @ 2008-02-10 23:18 UTC (permalink / raw)
  To: emacs-devel

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?

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-12  3:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-10 23:18 Magic MIME Juri Linkov
2008-02-11  2:24 ` Stefan Monnier
2008-02-11 20:55   ` Juri Linkov
2008-02-12  3:25     ` Stefan Monnier
2008-02-11  4:16 ` Eli Zaretskii
2008-02-11 20:59   ` Juri Linkov
2008-02-11 21:41     ` Eli Zaretskii
2008-02-12  3:51     ` Richard Stallman

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.