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: Mon, 03 Apr 2023 08:35:27 +0200	[thread overview]
Message-ID: <875yadjwwg.fsf@dod.no> (raw)
In-Reply-To: <871ql1lwue.fsf@dod.no> (Steinar Bang's message of "Mon, 03 Apr 2023 00:53:45 +0200")

>>>>> Steinar Bang <sb@dod.no>:
>>>>> Eli Zaretskii <eliz@gnu.org>:
>>> From: Steinar Bang <sb@dod.no>

>>> >>>>> Eli Zaretskii <eliz@gnu.org>:
>>> 
>>> > You need to "M-x load-file RET arc-mode.el.gz RET" before "C-u M-x" of
>>> > the function.  The Emacs will stop in the function.
>>> 
>>> Ok, archive-zip-summarize looks for the magic sequence "PK\005\006" or
>>> "PK\006\007" or "PK\006\006" or "PK\001\002".
>>> 
>>> But what this jar file starts with, is "PK^c^d", which I think is
>>> "PK\003\004", which is non of the above.
>>> 
>>> I.e. archive-zip-summarize doesn't recognize the magic number of these
>>> jar files.

>> Please report this as a bug and include such a jar file.

> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62630

This was not a bug in GNU Emacs.  This was a problem in my config.

I determined this by first running "emacs -Q" and when that opened the
offending .jar file without problems, I tried "emacs -q".

Since "emacs -q" also opened the .jar file without problems, I started
bisecting my ~/.emacs file.

The offending config was the following in my ~/.emacs:

;; editorconfig formatting support
;;;================================
(when (locate-library "editorconfig")
  (editorconfig-mode 1))

editorconfig is a minor mode that makes emacs respect formatting
settings found in .editorconfig files at the top of projects, making
emacs respect the same formatting settings as e.g. IntelliJ IDEA and
Eclipse.
 https://github.com/editorconfig/editorconfig-emacs

And all of the projects that contains .jar files that have failed to
open correctly have .editorconfig files on the top.

Removing the .editorconfig file on the top of the project with the
failing jar files removed the problem.

I bisected the .editorconfig file and found that the offending line was: https://github.com/steinarb/modelstore/blob/master/.editorconfig#L7

I.e:
charset = utf-8

I will look into the .editorconfig settings to see if there is a way to
exclude .jar files and/or the target directories from what editorconfig
affects, and if there isn't, open an issue on editorconfig-emacs.

Thanks!


- Steinar



  reply	other threads:[~2023-04-03  6:35 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
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 [this message]
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=875yadjwwg.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.