From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Nguy=E1=BB=85n_?= =?UTF-8?Q?Qu=E1=BB=91c?= Minh Newsgroups: gmane.emacs.bugs Subject: bug#73359: 30.0.91; editorconfig does not work on xml files Date: Thu, 19 Sep 2024 14:29:48 +0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000de261c062273e354" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37506"; mail-complaints-to="usenet@ciao.gmane.io" To: 73359@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 16:29:28 2024 Return-path: Envelope-to: geb-bug-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 1srI9w-0009bl-Dl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 16:29:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srI9H-0001xE-3F; Thu, 19 Sep 2024 10:28:47 -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 1srI9G-0001wv-7h for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 10:28:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srI9F-0002WX-Uc for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 10:28:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=m+jlSvxpv7E2Mcz/Uve0cG8Y7eLWGXwd4reOWzRy6WQ=; b=ERc/94KQyNrMBx/xGNEUtti/2ESOoOb5aq5ymmRylwIR5XWbqVQMz0qQcSL44p6gEB62ybr+LJXmf2o0Pn/gZyBW9+ocYXvxu8rQZLfEY2kuwvSFjW8J0/GTgoYu48Aq8tQ8TsAF015yqUZqM0f6jg1c29NxPQiX0SfAGRuz+zlUXyIWzUu7faWl5GlI4Bb+GeRhRLJ0G5grHvEbjA++XQlru8pkXhwh2fK2zjhaZq19GjlZMjgdoMmPUePjGY3XWwNQ8QnWBoEgdnSJpXZt1KzkagGScR7duHHNDyfIaz4/KVWBmY4BqWIIj5xdbnExBQWx1zWLrtAh3MDV4XYcJw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srI9X-0002T8-E7 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 10:29:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n_?= =?UTF-8?Q?Qu=E1=BB=91c?= Minh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2024 14:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73359 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17267561189422 (code B ref -1); Thu, 19 Sep 2024 14:29:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2024 14:28:38 +0000 Original-Received: from localhost ([127.0.0.1]:33204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srI97-0002Ro-9d for submit@debbugs.gnu.org; Thu, 19 Sep 2024 10:28:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srBcK-0004XV-Vc for submit@debbugs.gnu.org; Thu, 19 Sep 2024 03:30:21 -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 1srBc3-0007Jt-Hm for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 03:30:03 -0400 Original-Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srBc1-00011F-La for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 03:30:03 -0400 Original-Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-49bd45cfe38so178738137.1 for ; Thu, 19 Sep 2024 00:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726731000; x=1727335800; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=m+jlSvxpv7E2Mcz/Uve0cG8Y7eLWGXwd4reOWzRy6WQ=; b=SehzTiIcDfRuEwu4NQq8lLFIYetBg5typLWVR1Q3sbC4xnGwb8qoF5aWYbnBqhtQm+ iVElmMB/Q0XHHSpCsjAYn6KhLh+W2QGpn9QMkj5f5OswEtsqpp3a/zekeurWH3bLGhx2 oVsJgtW/zovj9eT/u+Md9GRST5E57bNR/ME0xgI8zze9WO51hmBNRzhuAUXl0lsEc6i0 L0aul3XOTEYOAhdVmHMeJ52VEYAYQMNH7zOlYz/fnVVRLnmjpo+qBD1T+zBY35uWA3lJ rnMV5r35cLzXhMF9Jp5v+KeBlaiUpOyPCNOF7Xo6wsG9taU+v/iqFLG4pj4KHq9WeV3Z QbXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726731000; x=1727335800; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=m+jlSvxpv7E2Mcz/Uve0cG8Y7eLWGXwd4reOWzRy6WQ=; b=U2uM+DnkRSggHZzLtWEB4h62JxzW4600VikvZ50xdCs4+HnJ+ijSC14EbXjVkHxjQW O8qjFM4Z8HT2gFnV6dZ1qmu0rBuiMsVRHqHGoWuB1Be8SerS7ODudatjf2paPvAd63wE 0udwjsYMNG5BgcTul3zHW8kCjQxDeYiu8+xHkuGSeOD4ifuuO/bUZotXmGL5jmBJZFdw WoJYHweZ4kudcVdyL0ZdB+H+RL0SxwfPOiWOCkDtAYA6amoydh5MbC5DIf+D79zoGYF2 qlxVaGAitoOyaKTUh0uk02pY62K0N8lrByjK+uFR+6tee6vwV1XjGczV1NkeUPOlPcK0 mioQ== X-Gm-Message-State: AOJu0Yzs0x4+g8M8wMkkSGoi+5S+lnbQ3j/eL8Md78LwebaivXscp2t8 W4+jvh5jK5iSJL4t+AY9ZSPrECiOZksheilLwFDj/xvx3iezPosfPfNgRAxHM6wugGk/8PBRvqa i8NqA9lDDqVOv3MjP7M8LB3iirAs5RauE X-Google-Smtp-Source: AGHT+IFp+yzSg22U34IkX+jloQZ6WKIW8KhMV5+58/dRZ/vTfDfJA5NVz5L+oGufacDu6KeEep7y6o5lIdd5vbA95e0= X-Received: by 2002:a05:6102:6c8:b0:497:5e68:887b with SMTP id ada2fe7eead31-49d415151a5mr18885091137.16.1726730999831; Thu, 19 Sep 2024 00:29:59 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e30; envelope-from=nqminhuit@gmail.com; helo=mail-vs1-xe30.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 19 Sep 2024 10:28:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292053 Archived-At: --000000000000de261c062273e354 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I have encountered an issue when opening an xml file from emacs 30, here is how to reproduce: 1. start emacs with 'emacs -Q -mm' 2. enable editorconfig-mode with 'M-x editorconfig-mode' 3. open an xml file, e.g., pom.xml from a Java project. 4. observe the minibuffer: For information about GNU Emacs and the GNU system, type C-h C-a. funcall-interactively: Text is read-only [10 times] Quit Editorconfig mode enabled Quit pom.xml has auto save data; consider M-x recover-this-file Using vacuous schema Unsupported element in =E2=80=98editorconfig-indentation-alist=E2=80=99: ((nxml-attribute-indent . 2) . 2) Directory-local variables error: (wrong-type-argument listp Unsupported element in =E2=80=98editorconfig-indentation-alist=E2=80=99: ((nxml-attribu= te-indent . 2) . 2)) My '.editorconfig' content: root =3D true [*] charset =3D utf-8 end_of_line =3D lf insert_final_newline =3D true trim_trailing_whitespace =3D true indent_style =3D space indent_size =3D 2 [*.{java,proto}] indent_size =3D 4 Best regards, minh --000000000000de261c062273e354 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have encountered an issue when opening an xml fil= e from emacs 30, here is how to reproduce:
1. start emacs with 'emac= s -Q -mm'
2. enable editorconfig-mode with 'M-x editorconfig-mod= e'
3. open an xml file, e.g., pom.xml from a Java project.
4. obs= erve the minibuffer:

For information about GNU Emacs and the GNU sys= tem, type C-h C-a.
funcall-interactively: Text is read-only [10 times]Quit
Editorconfig mode enabled
Quit
pom.xml has auto save data; = consider M-x recover-this-file
Using vacuous schema
Unsupported eleme= nt in =E2=80=98editorconfig-indentation-alist=E2=80=99: ((nxml-attribute-in= dent . 2) . 2)
Directory-local variables error: (wrong-type-argument lis= tp Unsupported element in =E2=80=98editorconfig-indentation-alist=E2=80=99:= ((nxml-attribute-indent . 2) . 2))


My '.editorconfig' c= ontent:

root =3D true
[*]
charset =3D utf-8
end_of_line =3D lf=
insert_final_newline =3D true
trim_trailing_whitespace =3D true
i= ndent_style =3D space
indent_size =3D 2
[*.{java,proto}]
indent_si= ze =3D 4

Best regards,
minh
--000000000000de261c062273e354--