[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: treat .xpi as archive file
From: |
Juri Linkov |
Subject: |
Re: treat .xpi as archive file |
Date: |
Fri, 25 Mar 2005 03:57:34 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) |
> Files with extension .xpi should be treated like .jar,
> i.e. should be opened in Archive mode. (This extension
> indicates Mozilla extensions.)
We could add .xpi to `auto-mode-alist' to treat like .jar/.ear/.war.
But wouldn't it be better instead of these extension to add ZIP magic
string "PK^C^D" to `magic-mode-alist' to recognize archive files for
any possible extension? The only problem I see is that archive files
should have `no-conversion' property in `auto-coding-alist' to open
correctly in Archive mode. Maybe Archive mode should always revisit
files with `no-conversion' when archive-mode was called by rules in
`magic-mode-alist'.
--
Juri Linkov
http://www.jurta.org/emacs/