GNU bug report logs - #4298
.egg files could open in archive-mode by default

Previous Next

Package: emacs;

Reported by: Gareth Rees <gareth.rees <at> pobox.com>

Date: Mon, 31 Aug 2009 15:05:05 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4298 in the body.
You can then email your comments to 4298 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4298; Package emacs. (Mon, 31 Aug 2009 15:05:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gareth Rees <gareth.rees <at> pobox.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 31 Aug 2009 15:05:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Gareth Rees <gareth.rees <at> pobox.com>
To: bug-gnu-emacs <at> gnu.org
Subject: .egg files could open in archive-mode by default
Date: Mon, 31 Aug 2009 15:58:42 +0100
Python modules are often distributed as files with the extension  
".egg". These are just ZIP files with a convention about the layout of  
the contents, as described in [1].

It would be nice if Emacs could open these files in archive-mode by  
default, either by adding an entry for the file extension ".egg" to  
auto-mode-alist, or by adding a suitable pattern for ZIP files to  
magic-fallback-mode-alist.

(Perhaps this suggestion will become moot when libmagic is integrated  
into Emacs.)

[1] "The Internal Structure of Python Eggs"; http://svn.python.org/projects/sandbox/trunk/setuptools/doc/formats.txt

-- 
Gareth Rees




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4298; Package emacs. (Mon, 31 Aug 2009 19:10:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> jurta.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 31 Aug 2009 19:10:04 GMT) Full text and rfc822 format available.

Message #10 received at 4298 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Gareth Rees <gareth.rees <at> pobox.com>
Cc: 4298 <at> debbugs.gnu.org
Subject: Re: bug#4298: .egg files could open in archive-mode by default
Date: Mon, 31 Aug 2009 22:02:49 +0300
> It would be nice if Emacs could open these files in archive-mode by
> default, either by adding an entry for the file extension ".egg" to
> auto-mode-alist, or by adding a suitable pattern for ZIP files to
> magic-fallback-mode-alist.
>
> (Perhaps this suggestion will become moot when libmagic is integrated
> into Emacs.)

Emacs should support this regardless of the libmagic presence.

Could you please try to open an .egg file in the latest CVS.

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



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4298; Package emacs. (Mon, 31 Aug 2009 20:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gareth Rees <gareth.rees <at> pobox.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 31 Aug 2009 20:25:06 GMT) Full text and rfc822 format available.

Message #15 received at 4298 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Gareth Rees <gareth.rees <at> pobox.com>
To: Juri Linkov <juri <at> jurta.org>
Cc: 4298 <at> debbugs.gnu.org
Subject: Re: bug#4298: .egg files could open in archive-mode by default
Date: Mon, 31 Aug 2009 21:14:55 +0100
Juri Linkov wrote:
> Emacs should support this regardless of the libmagic presence.
>
> Could you please try to open an .egg file in the latest CVS.

Unfortunately the latest CVS does not build for me:

$ ./configure --with-ns && make
...
Compiling /Users/gdr/emacs-cvs/emacs/lisp/url/url-dav.el

In toplevel form:
url/url-dav.el:36:1:Error: Cannot open doc string file "/Applications/ 
Emacs.app/Contents/Resources/etc/DOC-23.1.50.1"
make[1]: *** [/Users/gdr/emacs-cvs/emacs/lisp/url/url-dav.elc] Error 1
make: *** [lisp] Error 2

(I don't know why it's looking in /Applications/Emacs.app for the doc  
string file instead of in the local build tree where it exists.)

-- 
Gareth Rees



Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 01 Sep 2009 19:40:10 GMT) Full text and rfc822 format available.

Notification sent to Gareth Rees <gareth.rees <at> pobox.com>:
bug acknowledged by developer. (Tue, 01 Sep 2009 19:40:10 GMT) Full text and rfc822 format available.

Message #20 received at 4298-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 4298-done <at> debbugs.gnu.org
Subject: Re: bug#4298: .egg files could open in archive-mode by default
Date: Tue, 01 Sep 2009 15:35:31 -0400
Juri Linkov wrote:

> Emacs should support this regardless of the libmagic presence.
>
> Could you please try to open an .egg file in the latest CVS.

I downloaded a random .egg file and it opened fine for me in the CVS
trunk (not in 23.1).



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4298; Package emacs. (Wed, 02 Sep 2009 11:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gareth Rees <gareth.rees <at> pobox.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 02 Sep 2009 11:15:05 GMT) Full text and rfc822 format available.

Message #25 received at 4298 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Gareth Rees <gareth.rees <at> pobox.com>
To: 4298 <at> debbugs.gnu.org
Subject: Works in CVS head
Date: Wed, 2 Sep 2009 12:09:43 +0100
I reported the build failure as a separate bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4309

I was eventually able to build from CVS head as described in bug 4309,  
and I can confirm that a .egg file opens in archive-mode by default.

-- 
Gareth Rees



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 30 Sep 2009 14:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.