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 09:43:17 +0200 Message-ID: <87r0t1if6y.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> <875yadjwwg.fsf@dod.no> <87wn2tihck.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="40684"; 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 09:44:10 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 1pjErJ-000AQu-Dn for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 09:44:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjEqj-000638-HR; Mon, 03 Apr 2023 03:43:33 -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 1pjEqf-0005bR-Ub for help-gnu-emacs@gnu.org; Mon, 03 Apr 2023 03:43:30 -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 1pjEqc-0006uU-4c for help-gnu-emacs@gnu.org; Mon, 03 Apr 2023 03:43:29 -0400 Original-Received: from marquez (unknown [84.210.69.52]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 99CEA100692 for ; Mon, 3 Apr 2023 08:43:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb; t=1680507798; bh=LsqZ39Lkzshfix+K4/C2t/7FuQyRvOEW7X+XtOIecD0=; h=From:To:Subject:References:Date:In-Reply-To:From; b=WuMu+Hg3sILeLwCaImWNUemq4bb211u2yecBTlDr3gOI/HBgzF9vzATKsVR21KObj ycEydUwHDLlcilBxRzxNCWT5C2VpClng+bVYJD6WZ8aGVKjLo9jskoNfj5k6ktWBVy erj1ZM9D/1bCAfunqdxjFKsxMThEenIf3cvjWyJk= In-Reply-To: <87wn2tihck.fsf@dod.no> (Steinar Bang's message of "Mon, 03 Apr 2023 08:56:43 +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:143207 Archived-At: >>>>> Steinar Bang : >> 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. > I couldn't find any config for excluding files from editorconfig-emacs, > so I opened the following issue on editorconfig-emacs: > https://github.com/editorconfig/editorconfig-emacs/issues/294 The editorconfig-emacs mode does indeed have config for excluding modes and buffers: https://github.com/editorconfig/editorconfig-emacs/blob/master/editorconfig.el#L338 I tried excluding the Zip-Archive major mode, but that had no effect: jar files in projects with .editorconfig files, still failed to open correctly. https://github.com/editorconfig/editorconfig-emacs/issues/294#issuecomment-1493814857 But the editorconfig-exclude-regexps which matches buffer names, worked for me: https://github.com/editorconfig/editorconfig-emacs/issues/294#issuecomment-1493824449 I replaced the customizations with hand-written config in my .emacs and the following also works: ;; editorconfig formatting support ;;;================================ (when (locate-library "editorconfig") (editorconfig-mode 1) (setq editorconfig-exclude-regexps '("\\.jar$")))