From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help 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 Message-ID: <875yadjwwg.fsf@dod.no> References: <87o7o6lshs.fsf@dod.no> <83y1nawysz.fsf@gnu.org> <87edp2l41z.fsf@dod.no> <83pm8mwc65.fsf@gnu.org> <87a5zqkt47.fsf@dod.no> <83a5zqw0kr.fsf@gnu.org> <871ql1lwue.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27255"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 08:36:24 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjDnj-0006tS-Ut for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 08:36:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjDnC-00022J-FW; Mon, 03 Apr 2023 02:35:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjDmv-00021f-6T for help-gnu-emacs@gnu.org; Mon, 03 Apr 2023 02:35:34 -0400 Original-Received: from cadalora.bang.priv.no ([2001:41c9:1:424::90]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjDmr-0003hw-Ew for help-gnu-emacs@gnu.org; Mon, 03 Apr 2023 02:35:31 -0400 Original-Received: from marquez (unknown [84.210.69.52]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 5CD121046E1 for ; Mon, 3 Apr 2023 07:35:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb; t=1680503728; bh=kUmS9yHvLkLUfep7cBQP4y4eOQnoeNraaRIlcIKuU6w=; h=From:To:Subject:References:Date:In-Reply-To:From; b=L1z5oXWky34EVRotM5FmtCfcyFshuWSyYNnLA+m1D8hWvA826c20G6DnNf+AJSz3Y LW2+VSKAHtVT3+iE2x5ma1raDZM2qFqpjPUGx8NXVktj4kzLMkT+JVd3WxgZWtYAK1 oGmzfQ2Mr2j4xvKF21bjUs2INVoZfk0gVY3C6CLI= In-Reply-To: <871ql1lwue.fsf@dod.no> (Steinar Bang's message of "Mon, 03 Apr 2023 00:53:45 +0200") Received-SPF: none client-ip=2001:41c9:1:424::90; envelope-from=sb@dod.no; helo=cadalora.bang.priv.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143205 Archived-At: >>>>> Steinar Bang : >>>>> Eli Zaretskii : >>> From: Steinar Bang >>> >>>>> Eli Zaretskii : >>> >>> > 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