all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye"
Date: Sun, 02 Apr 2023 17:03:20 +0200	[thread overview]
Message-ID: <87edp2l41z.fsf@dod.no> (raw)
In-Reply-To: <83y1nawysz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Apr 2023 10:03:40 +0300")

>>>>> Eli Zaretskii <eliz@gnu.org>:

> I cannot reproduce this with a random .jar file I have here and with
> Emacs 27.1.  So I guess this is something specific to that particular
> jar file.

Indeed. I walked down into ~/.m2/repository/ and tried the first jar
there, which happened to be antlr-2.7.7.jar and that opened fine.

I've been doing this with jar files for years (decades, even,
maybe...?), on multiple platforms (various GNU/linux distros and
versions, mac OSX, various windows versions) and over many emacs
versions.

And I've never seen this behaviour before.

Hm... seems to be a problem on everything I've build myself...?
At least: everything I've recently built myself on this computer.

FWIW I'm using java11 and maven-jar-plugin 3.2.0 (if that rings a bell
for someone out there somewhere...?)

>> Any idea of how to debug this?

> Step with Edebug through arc-mode.el and see why it signals the error?
> It is possible that the jar file you tried uses some extensions of the
> ZIP format which were not yet supported in Emacs 27, so perhaps try
> with a later version of Emacs.

no luck with edebug so far.

I first did (setq debug-on-error t) in a fresh emacs and got the
following stack trace from attempting to open the javadoc file:
 https://gist.github.com/steinarb/234cf172c214b26b33ee92a4e5b5afd1
and found archive-zip-summarize which looks promising (and is in
arc-mode.el) 

Then I opened a new fresh emacs and openet /usr/share/emacs/27.1/lisp/arc-mode.el.gz
and but the cursor over archive-zip-summarize and did 'C-u C-M-x'

Then I tried opening the javadoc.jar but, unfortunately it didn't stop
in archive-zip-summarize

Not sure what more to do to make the code stop in the debugger (I have
skimmed the edebug docs to get this far).

>> Does the zip support of emacs 27.1 come in the form of running unzip in
>> a sub-process? Or does it use a linked in library? (libbz2...?)

> Neither.  Just visiting a zip file doesn't require any of that, at
> least not by default (I have no idea whether Ubuntu made any changes
> in the upstream sources or in site-wide customizations).

Thanks for the info.

FWIW From what you describe above, I doubt there are any modifications
in ubuntu/debian on the lines I was asking about (but I haven't actually
checked).

Thanks!


- Steinar



  reply	other threads:[~2023-04-02 15:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02  6:15 jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Steinar Bang
2023-04-02  7:03 ` Eli Zaretskii
2023-04-02 15:03   ` Steinar Bang [this message]
2023-04-02 15:12     ` Eli Zaretskii
2023-04-02 18:59       ` Steinar Bang
2023-04-02 19:23         ` Eli Zaretskii
2023-04-02 22:53           ` Steinar Bang
2023-04-03  6:35             ` Steinar Bang
2023-04-03  6:56               ` Steinar Bang
2023-04-03  7:43                 ` Steinar Bang
2023-05-07  7:42                 ` Steinar Bang
2023-04-02 20:10         ` Yuri Khan
2023-04-02 22:57           ` Steinar Bang
2023-04-02  8:35 ` Michael Albinus
2023-04-02 12:50   ` Steinar Bang

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=87edp2l41z.fsf@dod.no \
    --to=sb@dod.no \
    --cc=help-gnu-emacs@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.