From unknown Tue Aug 19 23:12:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27552 <27552@debbugs.gnu.org> To: bug#27552 <27552@debbugs.gnu.org> Subject: Status: 25.2.50; Indentation problem in rnc-mode Reply-To: bug#27552 <27552@debbugs.gnu.org> Date: Wed, 20 Aug 2025 06:12:01 +0000 retitle 27552 25.2.50; Indentation problem in rnc-mode reassign 27552 emacs submitter 27552 Ivan Andrus severity 27552 minor tag 27552 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 16:34:16 2017 Received: (at submit) by debbugs.gnu.org; 1 Jul 2017 20:34:16 +0000 Received: from localhost ([127.0.0.1]:47994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRP5s-00012I-8E for submit@debbugs.gnu.org; Sat, 01 Jul 2017 16:34:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRP5q-000128-NB for submit@debbugs.gnu.org; Sat, 01 Jul 2017 16:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRP5k-0002c4-Ar for submit@debbugs.gnu.org; Sat, 01 Jul 2017 16:34:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRP5k-0002c0-6w for submit@debbugs.gnu.org; Sat, 01 Jul 2017 16:34:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRP5i-00084X-Mj for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2017 16:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRP5f-0002bH-Jc for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2017 16:34:06 -0400 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:35526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRP5f-0002ah-EW for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2017 16:34:03 -0400 Received: by mail-it0-x234.google.com with SMTP id v202so74243016itb.0 for ; Sat, 01 Jul 2017 13:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=KziSNqJ0jm+1vjjjYghtzhaC22Hd9pSrf2f+IR1yA94=; b=j90OwXgemZ1PhEBsv8CCZSBLGVxwkZxD5ObrctdZ7n25vaQ8+d189Kd06b+gggVc3W DXU1YGf9n38orwGBbEKhH8OTg0OhbDNCAzqPFlMgMn5doXjEd+uxmK42kGT3/L/ONxfU Qy7251t2T8qlnQGYE7ewa11Yh8XU2lgbnqS0+aBCWOa6dSdrp+pQOOGALU9BPHXQOjJi 6KUv6dvGnzD55gREVu25LxqSOg+UN5Gvtk7vhrFfLzKkkcoJF/KwNZ6kDFGJATOf8wvy XtuTHk7vXgVaQau4pSNxRyy/do1Y0e9/U05ReLnnsjlL+bpJtOxd2rUdHZWdgfSJiBzq w4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=KziSNqJ0jm+1vjjjYghtzhaC22Hd9pSrf2f+IR1yA94=; b=GIOJTgJHOaXpbvwVurl8265Lk+RNvt5dav9/eyigpR+AMWxiywpMvcoZAg5MbZMTqA si1HSdGq6w6E+wfckKvOaCMn3yu3aYcP6uUjKH4/FoeSaJoqlkNSlCyPi4ja5ulzaDcW IooZE3rJrIRK1fl5x23lOFSQ7oLjDDP63v25PdGQ8Sbbimom7saw38UNOICUsuCkXYfb plNxFnQTirQT5/6/iPIvmIjMA1Q4efGf9Vnrp6hNyAYrBQFaNePITqYoPH9XzIKescPL n5OEo7FwwdpDDMjSrDvu44uJmosO71jsuk9OhVC39oIzt/e5HRL/nWjcla/GFyMxL6cd jE4g== X-Gm-Message-State: AKS2vOw6S5e4GrS4WKIyt5uBGf+EUfGjHpzsCgWLDPkFapLcJ0AstZas URVR19KN5YAIfaZ0w6w= X-Received: by 10.36.89.139 with SMTP id p133mr25806304itb.5.1498941240838; Sat, 01 Jul 2017 13:34:00 -0700 (PDT) Received: from [192.168.0.9] (174-23-124-127.slkc.qwest.net. [174.23.124.127]) by smtp.gmail.com with ESMTPSA id t5sm415746ita.22.2017.07.01.13.34.00 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 01 Jul 2017 13:34:00 -0700 (PDT) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 25.2.50; Indentation problem in rnc-mode Message-Id: Date: Sat, 1 Jul 2017 14:33:59 -0600 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.8 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.8 (------) The RNC snippet below (from http://cs.brown.edu/courses/cs196-9/slidestore/relaxng.html) shows an indentation problem when using multiple opening namespace/datatypes clauses. -Ivan default namespace rng =3D "http://relaxng.org/ns/structure/1.0" namespace local =3D "" datatypes xsd =3D = "http://www.w3.org/2001/XMLSchema-datatypes" start =3D pattern pattern =3D element element { (nameQName | nameClass), (common & pattern+) } | element attribute { (nameQName | nameClass), (common & pattern?) } | element group|interleave|choice|optional |zeroOrMore|oneOrMore|list|mixed { common & pattern+ } | element ref|parentRef { nameNCName, common } | element empty|notAllowed|text { common } | element data { type, param*, (common & exceptPattern?) } | element value { commonAttributes, type?, xsd:string } | element externalRef { href, common } | element grammar { common & grammarContent* } In GNU Emacs 25.2.50.5 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 = Version 10.11.6 (Build 15G1421)) of 2017-06-28 built on iandrus-osx Repository revision: efe7a7f79f8eb9c716136561821d350b69456b55 Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --without-makeinfo PKG_CONFIG_PATH=3D/opt/X11/lib/pkgconfig' Configured features: JPEG RSVG DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: RNC Minor modes in effect: achievements-mode: t highlight-symbol-mode: t which-function-mode: t show-paren-mode: t global-semantic-stickyfunc-mode: t save-place-mode: t msb-mode: t minibuffer-depth-indicate-mode: t gud-tooltip-mode: t global-hl-line-mode: t delete-selection-mode: t guide-key-mode: t auto-insert-mode: t yas-global-mode: t yas-minor-mode: t ido-everywhere: t beacon-mode: t global-page-break-lines-mode: t gvol-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t TeX-PDF-mode: t global-edit-server-edit-mode: t auto-image-file-mode: t desktop-save-mode: t drag-stuff-global-mode: t drag-stuff-mode: t recentf-mode: t global-anzu-mode: t anzu-mode: t keyfreq-autosave-mode: t keyfreq-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 15:25:18 2022 Received: (at 27552) by debbugs.gnu.org; 17 May 2022 19:25:18 +0000 Received: from localhost ([127.0.0.1]:57983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2oo-0006d2-2X for submit@debbugs.gnu.org; Tue, 17 May 2022 15:25:18 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2ol-0006ck-Nf for 27552@debbugs.gnu.org; Tue, 17 May 2022 15:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OzKxpxRQeRGuy8l8uP3Gk/WYOXyQYT21toGIIdbPya8=; b=CsFQhvKSFB9V/8vHsL0WrTR4Uq Xt+L7RG351jaMGBg1vxca3U3x3Prt8GRfnRA+JsNaK+nYRoHi2QqEO5OJaWRP3NZ6xInHd2WgWvp3 1YWxuY/S0bfHfzqctbnJMP+oSRyvJoy9BBNwULx2qPvgsnma7/tublBm3iJIppoTv0Xg=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nr2ob-0006Qa-1K; Tue, 17 May 2022 21:25:07 +0200 From: Lars Ingebrigtsen To: Ivan Andrus Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode References: X-Now-Playing: Stephan Mathieu's _Radiance (4): A Rainbow of Moonlight_: "A Rainbow of Moonlight" Date: Tue, 17 May 2022 21:25:04 +0200 In-Reply-To: (Ivan Andrus's message of "Sat, 1 Jul 2017 14:33:59 -0600") Message-ID: <87k0akhshb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ivan Andrus writes: > The RNC snippet below (from > http://cs.brown.edu/courses/cs196-9/slidestore/relaxng.html) shows an > indentation problem when using multiple opening namespace/datatypes > clauses. > > -Ivan > > def [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 27552 Cc: 27552@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ivan Andrus writes: > The RNC snippet below (from > http://cs.brown.edu/courses/cs196-9/slidestore/relaxng.html) shows an > indentation problem when using multiple opening namespace/datatypes > clauses. > > -Ivan > > default namespace rng = "http://relaxng.org/ns/structure/1.0" > namespace local = "" > datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes" > > start = pattern > > pattern = > element element { (nameQName | nameClass), (common & pattern+) } > | element attribute { (nameQName | nameClass), (common & pattern?) } > | element group|interleave|choice|optional (defun rnc-smie-rules (kind token) (pcase (cons kind token) (`(:list-intro . "element") t) (`(:elem . empty-line-token) " ; ") (`(:before . ,(or "include" "default" "namespace" "datatypes")) 0) [...] (`(:after . ,(or "=" "|=" "&=")) smie-indent-basic) I guess this "=" rule is for stuff like the "pattern =" etc. But it leads to things like this being indented more for each line: default namesace rng = "http://relaxng.org/ns/structure/1.0" namespace local = "" datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes" I betcha this is easy to express in smie, but I have no idea how, so I've added Stefan to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 15:25:22 2022 Received: (at control) by debbugs.gnu.org; 17 May 2022 19:25:22 +0000 Received: from localhost ([127.0.0.1]:57986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2os-0006dK-B7 for submit@debbugs.gnu.org; Tue, 17 May 2022 15:25:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2oo-0006cs-QC for control@debbugs.gnu.org; Tue, 17 May 2022 15:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=prKX5A9UlhBhIZRBrHwouNBpyhZ1LA1bnQzNxJ+hBdU=; b=jrlhih1VTmj45a3EbTUFS5wEQc enhkmhsAwW5eMTzHXrB+txoqspzcErswyMBm7BbhVYo/Cno3x1/A4enr9b9y4pIO7xeU/Mfz+XLFM 0F7CEJBUqQaER5MvqCm1eLEBsjBHJ9pCjw8AFKPNjuL5y4vuO6m3l74Yzro72nAiSiqI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nr2oh-0006Qj-0w for control@debbugs.gnu.org; Tue, 17 May 2022 21:25:12 +0200 Date: Tue, 17 May 2022 21:25:10 +0200 Message-Id: <87ilq4hsh5.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27552 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27552 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 27552 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 10:25:44 2022 Received: (at 27552) by debbugs.gnu.org; 15 Jun 2022 14:25:44 +0000 Received: from localhost ([127.0.0.1]:39368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Txo-0007Xj-HN for submit@debbugs.gnu.org; Wed, 15 Jun 2022 10:25:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Txm-0007XS-Q8 for 27552@debbugs.gnu.org; Wed, 15 Jun 2022 10:25:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=K07Z3iLxnZgvtiX1oewMOAD5UrkbEtAOymPFAQVANts=; b=tOeYZF3YbkN8TOCxF77fTohxdM fW9mhH31U7cWDiCedmZgrMpQPXINtFAGVqjhzEkTyinqlkHkN/w1OJMVO2x2C7hR8gL6s/6wq3izq 2IlPbFLrpg4Pv9v47gGrvbCPbdqWekIEvNee7HI6m3YY6qGXueoRTKwS8XXUPs4pT+1I=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1Txc-0003T1-8q; Wed, 15 Jun 2022 16:25:34 +0200 From: Lars Ingebrigtsen To: Ivan Andrus Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode References: <87k0akhshb.fsf@gnus.org> X-Now-Playing: The Wake's _Harmony & Singles_: "The Old Men" Date: Wed, 15 Jun 2022 16:25:29 +0200 In-Reply-To: <87k0akhshb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 17 May 2022 21:25:04 +0200") Message-ID: <87sfo6gg12.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I guess this "=" rule is for stuff like the "pattern =" etc. But it > leads to things like this being indented more for each line: > > default namesace rng = "http://relaxng.org/ns/structure/1.0" > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27552 Cc: 27552@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > I guess this "=" rule is for stuff like the "pattern =" etc. But it > leads to things like this being indented more for each line: > > default namesace rng = "http://relaxng.org/ns/structure/1.0" > namespace local = "" > datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes" Or... is the problem here that we don't end pattern with a newline? Because the "assignment" ends at the newline in this case. (smie-prec2->grammar (smie-bnf->prec2 '((id) (atom) (args) (header (header "include" atom)) (decls (id "=" pattern) (id "|=" pattern) (id "&=" pattern) (decls " ; " decls)) (pattern ("element" args) ("attribute" args) ("list" args) ("mixed" args) ("parent" id) ("external" id) ("grammar" atom) ("{" pattern "}") (pattern "," pattern) (pattern "&" pattern) (pattern "|" pattern) (pattern "?") (pattern "*") (pattern "+"))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 11:15:40 2022 Received: (at 27552) by debbugs.gnu.org; 15 Jun 2022 15:15:40 +0000 Received: from localhost ([127.0.0.1]:39452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Uk7-000134-Ew for submit@debbugs.gnu.org; Wed, 15 Jun 2022 11:15:40 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Uk5-0000v0-12 for 27552@debbugs.gnu.org; Wed, 15 Jun 2022 11:15:38 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6CF37100479; Wed, 15 Jun 2022 11:15:31 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id AA4A1100173; Wed, 15 Jun 2022 11:15:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655306129; bh=VaV3FkwdTC+XXnLaZnlv1IhEEkXc+1fg60sitrQrEjM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WlGjkQbiOwUdTbTcqARp22kXS2NeAT1ECmO8t1M2cUtnFFd5O9JLA5NEANgIai8AK TehfzyMfLbr49NURyrwQXV4d3ymMXfU+nRpQTWoJ9AuXw/lH9GrFROgglJBq62KBB1 cv4HPsLb3Ln7gZ7p4MmpTLta0K/5c7SjpqFMHQfg6zAeW8oRU/T2afg59NQdrbrRCG DNrSxKxqsEMg7Z2Biyrup8/Tp+IVgPagl0H+j677l+OCkOeEBh8xy8hf6XIXtD2keM iJZF4yD6aicLZcPrBGT7e1BLFfXCc9vVCQUA5zweEaiNO36TqidnTJ27TDS6rAKnxt pCpGbM2TRLd4Q== Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8AA9F1202DD; Wed, 15 Jun 2022 11:15:29 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode Message-ID: References: <87k0akhshb.fsf@gnus.org> <87sfo6gg12.fsf@gnus.org> Date: Wed, 15 Jun 2022 11:15:28 -0400 In-Reply-To: <87sfo6gg12.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 15 Jun 2022 16:25:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.181 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain KAM_SHORT 0.001 Use of a URL Shortener for very short URL T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27552 Cc: Ivan Andrus , 27552@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen [2022-06-15 16:25:29] wrote: > Lars Ingebrigtsen writes: > >> I guess this "=" rule is for stuff like the "pattern =" etc. But it >> leads to things like this being indented more for each line: >> >> default namesace rng = "http://relaxng.org/ns/structure/1.0" >> namespace local = "" >> datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes" Part of the problem is that the grammar we use is incorrect, so we parse incorrectly, and we have to patch things up in the indentation rules :-( > Or... is the problem here that we don't end pattern with a newline? Kind of, yes. There are various places where we could try and fix this problem, but this might be the simplest, indeed. I pushed the patch below which does that. Stefan diff --git a/rnc-mode.el b/rnc-mode.el index 30f3c39970..33363d2057 100644 --- a/rnc-mode.el +++ b/rnc-mode.el @@ -1,6 +1,6 @@ ;;; rnc-mode.el --- Emacs mode to edit Relax-NG Compact files -*- lexical-binding:t -*- -;; Copyright (C) 1994-1998, 2001-2016 Free Software Foundation, Inc. +;; Copyright (C) 1994-1998, 2001-2022 Free Software Foundation, Inc. ;; Author: Stefan Monnier ;; Keywords: xml relaxng @@ -96,11 +96,18 @@ '((assoc "," "&" "|") (nonassoc "?" "*" "+")) ))) +(defconst rnc-smie--def-regexp + (concat "\\(?:\\(?:namespace\\|datatypes\\)[ \t\n]+\\)?" + "\\(?:\\s_\\|\\sw\\)+[ \t\n]*[|&]?=") + "Regexp matching a \"definition\". +Any line that starts with this is presumed to start a new definition, +so the preceding newline is turned into an implicit \" ; \" token.") + (defun rnc-smie-forward-token () (let ((start (point))) (forward-comment (point-max)) (if (and (> (point) start) - (looking-at "\\(?:\\s_\\|\\sw\\)+[ \t\n]*[|&]?=") + (looking-at rnc-smie--def-regexp) (save-excursion (goto-char start) (forward-comment -1) @@ -120,7 +127,7 @@ (let ((pos (point))) (goto-char start) (prog1 - (looking-at "\\(?:\\s_\\|\\sw\\)+[ \t\n]*[|&]?=") + (looking-at rnc-smie--def-regexp) (goto-char pos)))) " ; " (if (looking-back "\\s." (1- (point))) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 11:57:11 2022 Received: (at 27552) by debbugs.gnu.org; 15 Jun 2022 15:57:11 +0000 Received: from localhost ([127.0.0.1]:39626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1VOJ-0003l7-2g for submit@debbugs.gnu.org; Wed, 15 Jun 2022 11:57:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1VOG-0003kh-89 for 27552@debbugs.gnu.org; Wed, 15 Jun 2022 11:57:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+k2G6B4ojqPUcCIHI8Q7Np2AKaPllc69y9NlxHlvk54=; b=lF5V+ZwpjK/0r+uNrY1LTJt0eo LVAQjIJpt+rapkTVzFMAIbEmqfqygL98LaNm4xlsykFemPcSpbOaNdxmgscpwPLP4ejo/oz4F0T2e c8HRK2P4I1EyqxDvCO08R4HR3u71qjP6NWvSVD5gj+f4xfJsOwCmIWQBf1Tz1UBnFwJk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1VO5-0004Nh-Qn; Wed, 15 Jun 2022 17:57:00 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode References: <87k0akhshb.fsf@gnus.org> <87sfo6gg12.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVoaJNEQFYFAgYf Giq6uNX///8My2XNAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGDw8xOD7pT9gAAAG5SURBVDjLlZSN cesgDIBFYAALPEBAHQCkDIBb7z9TxY+dOG3f3dNdYk6f9S8M4FNaEEO6SoB9SykCylVPHvbawZtF Sd2CnHmzCAmoPTNcLSInGAcwfPU0gQAgJ3mGPoGr6syfntIJHkaD8DP0ASJzolMf/QlIwqmmFvoA LZEjgpCfgMaLdhpg4Qn6k9MskcI4PMHUl+kTpicFd25uQ04TSH9ZBuQSZnOARCZgy0SYvRxgWhBZ nzEgTyBaNFOLROAB0QbpfqEERUWamGgw58DU5glFF4H1D9FzDmJ0lgU1gQa8FFEskk0OWAkRFIiQ JiOag3YPgfJ+U+CbBYXSzFoqqBm7rzwtXma9akJYcx0gou5b57RpNejs3gGvexf1ddefLEt91Fag DD0o0SUroRhnv1pLSnUduBo/qVW0rHX0am9g22G7t9YYXDd3672qoMCu25jygqueiaG1LEOFbGIa a+xC2W0DKsu2yq2vU6IFJOhaDpDq3Xtdmz6aAtY+GMYgVz4XV1ff2o9POC4EvwBj4w7ph5DRWf0G hu+/AMHzDl0FXu7FGyj4O9DR8/+AAOnH92Vs/z+C/yHf2uyZc+STjKUAAAAldEVYdGRhdGU6Y3Jl YXRlADIwMjItMDYtMTVUMTU6NDk6NTYrMDA6MDClM4NHAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIy LTA2LTE1VDE1OjQ5OjU2KzAwOjAw1G47+wAAAABJRU5ErkJggg== X-Now-Playing: Blaine L. Reininger's _The Blue Sleep_: "Odi Et Amo" Date: Wed, 15 Jun 2022 17:56:56 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 15 Jun 2022 11:15:28 -0400") Message-ID: <87a6adhqd3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Kind of, yes. There are various places where we could try and fix > this problem, but this might be the simplest, indeed. > I pushed the patch below which does that. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27552 Cc: Ivan Andrus , 27552@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Kind of, yes. There are various places where we could try and fix > this problem, but this might be the simplest, indeed. > I pushed the patch below which does that. Thanks; I can confirm that that fixes this issue, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 11:57:19 2022 Received: (at control) by debbugs.gnu.org; 15 Jun 2022 15:57:19 +0000 Received: from localhost ([127.0.0.1]:39629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1VOR-0003lS-90 for submit@debbugs.gnu.org; Wed, 15 Jun 2022 11:57:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1VOP-0003lF-DJ for control@debbugs.gnu.org; Wed, 15 Jun 2022 11:57:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=p/d0LilZrDojPyqZgi6XCDZ00yAOKTzTn+V3xYxSXME=; b=pnU8B4T1s/19KKsK22VYk8kTYA ty5a7IJgR5/6kIJFix40CcaiUu9dwaw+mYMxhORNtoq30wTm8DYo8IjokLIHCyB3Ke7yzi7alW+nq KRb9v9DwNQwnJ0ZIUPFQ5U8a8yWcobdIF5F+LEEUlFoJgcVpFVKfSeRACDkeB2E3NplY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1VOH-0004O0-DY for control@debbugs.gnu.org; Wed, 15 Jun 2022 17:57:11 +0200 Date: Wed, 15 Jun 2022 17:57:08 +0200 Message-Id: <878rpxhqcr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27552 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 27552 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 27552 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 02 16:44:02 2022 Received: (at 27552) by debbugs.gnu.org; 2 Jul 2022 20:44:02 +0000 Received: from localhost ([127.0.0.1]:42952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7jyE-0004Cn-FS for submit@debbugs.gnu.org; Sat, 02 Jul 2022 16:44:02 -0400 Received: from mail-io1-f41.google.com ([209.85.166.41]:35411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7jy9-0004C7-P8 for 27552@debbugs.gnu.org; Sat, 02 Jul 2022 16:44:01 -0400 Received: by mail-io1-f41.google.com with SMTP id y18so5347111iof.2 for <27552@debbugs.gnu.org>; Sat, 02 Jul 2022 13:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XgBmWlXhWHKJmHYMe7SXGJfgoWTPIRWspa0CsJzZ10Q=; b=OUcaELuFpaEBjAXvPcjNsaWF2ZQ62LMJ4Iu3R0OGKFEI4OGuRY0Sh3GvYpbz0aPmIj Caot+fuYCjAlONrxuDLxkQW9oaD8CjsYD6K8/ZB249bIGSCVEFHQ9c2Rj+fZiLA+9c9T EtW89T5s7Rc076N5SCJrZhm0KhrHE301sVwMTa0OyeY6UUfKsUx3/OvHENXtpUraCI/R LPKgOXY9nD4F2yf0vE1ej4QgrNHPH9M9NSdA9d24d0As8fsto4mnoeJTmGOVrmicdEcR sf7X2cBg7Ro+6D37ZVqNWVPDAvzgzWmjDXjKB9Ln6VdMMFo3RLOY+wk1bXM5TtU7svvv MkYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XgBmWlXhWHKJmHYMe7SXGJfgoWTPIRWspa0CsJzZ10Q=; b=0/OM0BG8C6UhDL/X64sQNQiSqOZo1qLp1wt/yDLyFvxM0fsFW0uEmak7YCl0K+PB2b A06SYknTPr6+XqI72i0xEFBFa43OIVrbYR8bIIbMgvVbdpuo0wroNpq48K9KPyboPUl3 k1flIB7IpEePIiitgQq9vkauXpmbL0/Dgwbyf+nwMDDMhC2SEqS4EiBHkwoI8nmTyLJS wBMieLt+uaICyNm7z9ivKFVH2kRLY2/U4GtlgRGETN4X1cdDu0bDPxzY6JPLnnUSPNs6 B0OVQYZKYExSPZ2nnSTCA/Wnfasb358zJ8jqPb5AVTd66vu99+xYy1nx/Cdr1UZxYKn9 o9QA== X-Gm-Message-State: AJIora8s+P4KS8cVX/LYU6yJea2WR5uNnXFfPh8cDZ3L1aJJT2VP6diq 9i6jJ6FdPodS/RFob2Vc/tY= X-Google-Smtp-Source: AGRyM1tT4fbdu7/o6Ymbt7o9K6KtV0DI/LnN3pMwjBqcDiPvD9lZ7DflgGXq9X4E80V/K4tStCLxMw== X-Received: by 2002:a02:cd99:0:b0:33e:9bdc:8c8f with SMTP id l25-20020a02cd99000000b0033e9bdc8c8fmr6549411jap.248.1656794631854; Sat, 02 Jul 2022 13:43:51 -0700 (PDT) Received: from smtpclient.apple (67-2-44-25.slkc.qwest.net. [67.2.44.25]) by smtp.gmail.com with ESMTPSA id h20-20020a056638063400b00339c1f7130csm11326056jar.84.2022.07.02.13.43.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jul 2022 13:43:51 -0700 (PDT) From: Ivan Andrus X-Google-Original-From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode In-Reply-To: <87a6adhqd3.fsf@gnus.org> Date: Sat, 2 Jul 2022 14:43:49 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <71D4EC3D-A0CF-431F-87FD-7D9C772DF8D0@gmail.com> References: <87k0akhshb.fsf@gnus.org> <87sfo6gg12.fsf@gnus.org> <87a6adhqd3.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27552 Cc: 27552@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) First off, thank you very much for fixing this!=20 I noticed, however, that it's not updated in ELPA because the version = wasn't updated. Then I was going to check out the GNU ELPA repository = and maybe try bumping the version myself, but I failed (tried several = times): $ git clone git://git.sv.gnu.org/emacs/elpaa Cloning into 'elpa'... remote: Counting objects: 420700, done. remote: Compressing objects: 100% (122372/122372), done. warning: object 40b50e2bcb5b674697e3e2a41627564f810880c4: = gitignoreSymlink: .gitignore is a symlink warning: object da777249505761d5c51406d4a0d268629f146f8e: = gitignoreSymlink: .gitignore is a symlink warning: object fa73f7d32f618bd46247364932cac8aa591ed8b9: = gitignoreSymlink: .gitignore is a symlink warning: object 6bca01e6638f0e92ce277c1497c8f1175236315a: = gitignoreSymlink: .gitignore is a symlink warning: object 4246bb45961f0e8ed4ccb123648d55a2f043524c: = gitignoreSymlink: .gitignore is a symlink error: object 2699d230e3b592ae42506d7b5c969a7ac6a4593c: = zeroPaddedFilemode: contains zero-padded file modes fatal: fsck error in packed object fatal: fetch-pack: invalid index-pack output But that's a separate issue, I'll probably bring it up on Emacs devel, = but I thought I actually send this email before I forget a second time. = :) -Ivan > On Jun 15, 2022, at 09:56, Lars Ingebrigtsen wrote: >=20 > Stefan Monnier writes: >=20 >> Kind of, yes. There are various places where we could try and fix >> this problem, but this might be the simplest, indeed. >> I pushed the patch below which does that. >=20 > Thanks; I can confirm that that fixes this issue, so I'm closing this > bug report. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 02 17:37:54 2022 Received: (at 27552) by debbugs.gnu.org; 2 Jul 2022 21:37:54 +0000 Received: from localhost ([127.0.0.1]:42992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7koM-0005XR-5Z for submit@debbugs.gnu.org; Sat, 02 Jul 2022 17:37:54 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7koK-0005XD-4b for 27552@debbugs.gnu.org; Sat, 02 Jul 2022 17:37:53 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8A239440F6B; Sat, 2 Jul 2022 17:37:46 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E3221440F9D; Sat, 2 Jul 2022 17:37:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656797864; bh=FmUEwWGF8iBaVGjfsNvfB3rk9Uv0OPfcd6tTn/qIVC0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LfoxvRAZI3pM3QVRC23x4KbOiFbx+vYAYa9JW2cCoYC89GjCYRH8cEyXmVMzrxWIB sI7o7AqBlxDKPdm60k8/0WRZQOrluLUEJE7kVS2MFu0to/f/1G11WnFBeSKEvPSsXM dQDiPfTkph6MgIiWuLwAUAJ+KFndb4xFLpNdRtAq8QYcA4+iIdCBuW30/yaSCMDqcr 8e576N04/gn3b6TvPtf+G6AlcjSWGQ7TNL7yGm2pTI4+dahZM8gj31TD3/9dizqisZ d33tE/++R/tSdrYALVZK1hxqcb5uoAjyXLX6ON1GNjEVdpMlbr+gt0HMx/9ezXVjRb ZQYQS94pPJv0w== Received: from alfajor (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7E9BC120520; Sat, 2 Jul 2022 17:37:44 -0400 (EDT) From: Stefan Monnier To: Ivan Andrus Subject: Re: bug#27552: 25.2.50; Indentation problem in rnc-mode Message-ID: References: <87k0akhshb.fsf@gnus.org> <87sfo6gg12.fsf@gnus.org> <87a6adhqd3.fsf@gnus.org> <71D4EC3D-A0CF-431F-87FD-7D9C772DF8D0@gmail.com> Date: Sat, 02 Jul 2022 17:37:43 -0400 In-Reply-To: <71D4EC3D-A0CF-431F-87FD-7D9C772DF8D0@gmail.com> (Ivan Andrus's message of "Sat, 2 Jul 2022 14:43:49 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.186 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain KAM_LOTSOFHASH 0.25 Emails with lots of hash-like gibberish T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27552 Cc: 27552@debbugs.gnu.org, Lars Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > $ git clone git://git.sv.gnu.org/emacs/elpaa `elpa.git` is fairly large, you don't want to clone all of it just for `rnc-mode`. Try something like: git clone --single-branch git://git.sv.gnu.org/emacs/elpa cd elpa make # Initial setup, only needed once. make packages/rnc-mode # Fetches rnc-mode and sets it up. make packages/rnc-mode # Generate autoloads, -pkg,el, and compile. -- Stefan > Cloning into 'elpa'... > remote: Counting objects: 420700, done. > remote: Compressing objects: 100% (122372/122372), done. > warning: object 40b50e2bcb5b674697e3e2a41627564f810880c4: gitignoreSymlink: .gitignore is a symlink > warning: object da777249505761d5c51406d4a0d268629f146f8e: gitignoreSymlink: .gitignore is a symlink > warning: object fa73f7d32f618bd46247364932cac8aa591ed8b9: gitignoreSymlink: .gitignore is a symlink > warning: object 6bca01e6638f0e92ce277c1497c8f1175236315a: gitignoreSymlink: .gitignore is a symlink > warning: object 4246bb45961f0e8ed4ccb123648d55a2f043524c: gitignoreSymlink: .gitignore is a symlink > error: object 2699d230e3b592ae42506d7b5c969a7ac6a4593c: zeroPaddedFilemode: > contains zero-padded file modes > fatal: fsck error in packed object > fatal: fetch-pack: invalid index-pack output If you do want to clone it all, then I think you'll need [fetch "fsck"] zeroPaddedFilemode = warn in your `~/.gitconfig` because we were unlucky to have some entries in our Git history (generated by some earlier version of Git) which Git later decided should use a different format. IIRC we had that in our old `master` branch which should be gone now, but since then we inherited some other occurrence of the problem from the history of some package. I bumped the version so a new 0.3 should appear soonish, tho. Stefan > But that's a separate issue, I'll probably bring it up on Emacs devel, but > I thought I actually send this email before I forget a second time. :) > > -Ivan > >> On Jun 15, 2022, at 09:56, Lars Ingebrigtsen wrote: >> >> Stefan Monnier writes: >> >>> Kind of, yes. There are various places where we could try and fix >>> this problem, but this might be the simplest, indeed. >>> I pushed the patch below which does that. >> >> Thanks; I can confirm that that fixes this issue, so I'm closing this >> bug report. >> >> -- >> (domestic pets only, the antidote for overdose, milk.) >> bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 23:12:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 Jul 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator