From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
Subject: Magic MIME
Date: Mon, 11 Feb 2008 01:18:41 +0200 [thread overview]
Message-ID: <87prv4h032.fsf@jurta.org> (raw)
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/
next reply other threads:[~2008-02-10 23:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 23:18 Juri Linkov [this message]
2008-02-11 2:24 ` Magic MIME 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
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=87prv4h032.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
/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.