From unknown Sat Aug 16 13:42:04 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#32035 <32035@debbugs.gnu.org> To: bug#32035 <32035@debbugs.gnu.org> Subject: Status: 27.0.50; master; tcl-mode indentation broken in namespaces Reply-To: bug#32035 <32035@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:42:04 +0000 retitle 32035 27.0.50; master; tcl-mode indentation broken in namespaces reassign 32035 emacs submitter 32035 Bruce Stephens severity 32035 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 02 11:02:56 2018 Received: (at submit) by debbugs.gnu.org; 2 Jul 2018 15:02:56 +0000 Received: from localhost ([127.0.0.1]:43679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0Lq-0005he-50 for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:02:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0Ln-0005hO-An for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:02:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0Ld-0003Fr-H2 for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:02:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fa0Ld-0003Fe-Dh for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:02:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0LY-0005wt-Hq for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:02:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0LV-0003Bg-GE for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:02:32 -0400 Received: from statler.isode.com ([62.232.206.189]:4174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0LV-0003B8-9B for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:02:29 -0400 Received: from tinier.isode.net ([172.20.0.175]) by statler.isode.com (smtp internal) via TCP with SMTP id for ; Mon, 2 Jul 2018 16:02:26 +0100 Received: by tinier.isode.net (sSMTP sendmail emulation); Mon, 02 Jul 2018 16:02:26 +0100 From: Bruce Stephens To: bug-gnu-emacs@gnu.org Subject: 27.0.50; master; tcl-mode indentation broken in namespaces Date: Mon, 02 Jul 2018 16:02:26 +0100 Message-ID: <80y3etn0jh.fsf@tinier.isode.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -5.0 (-----) With a file in tcl-mode (foo.tcl, say), I enter namespace eval Foo { variable foo I would expect the second line to be indented (basically because of the {, indicating it's beginning the namespace), but now it has indentation 0. If I revert commit cd5bb4bf3dbad8941d25823f398b595b8f0edbb9, "Fix two tcl-mode defun-related bugs" (which fixes #23565) then I get the expected indentation. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-02, modified by Debian built on tinier Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Debian GNU/Linux buster/sid From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 02 13:20:41 2018 Received: (at 32035) by debbugs.gnu.org; 2 Jul 2018 17:20:41 +0000 Received: from localhost ([127.0.0.1]:43864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa2VF-0000al-A8 for submit@debbugs.gnu.org; Mon, 02 Jul 2018 13:20:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa2VE-0000aZ-92 for 32035@debbugs.gnu.org; Mon, 02 Jul 2018 13:20:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa2V8-0003x0-1b for 32035@debbugs.gnu.org; Mon, 02 Jul 2018 13:20:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa2V4-0003sT-Up; Mon, 02 Jul 2018 13:20:31 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fa2V4-0004YD-Gs; Mon, 02 Jul 2018 13:20:30 -0400 From: Glenn Morris To: Bruce Stephens Subject: Re: bug#32035: 27.0.50; master; tcl-mode indentation broken in namespaces References: <80y3etn0jh.fsf@tinier.isode.net> X-Spook: Drug trade WMATA csim Bosnia Guantanamo Border Airport X-Ran: t]?W3Om2\E7un)i$ca:l-Y$5>lHt9LHWZBN]uqO~`Pn0^!iB]5 (Bruce Stephens's message of "Mon, 02 Jul 2018 16:02:26 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32035 Cc: 32035@debbugs.gnu.org, tom@tromey.com 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.0 (------) Explicitly cc'ing the author of the cited commit. Bruce Stephens wrote: > With a file in tcl-mode (foo.tcl, say), I enter > > namespace eval Foo { > variable foo > > I would expect the second line to be indented (basically because of the > {, indicating it's beginning the namespace), but now it has indentation > 0. > > If I revert commit cd5bb4bf3dbad8941d25823f398b595b8f0edbb9, "Fix two > tcl-mode defun-related bugs" (which fixes #23565) then I get the > expected indentation. > > In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2018-07-02, modified by Debian built on tinier From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 02 16:48:23 2018 Received: (at 32035) by debbugs.gnu.org; 2 Jul 2018 20:48:23 +0000 Received: from localhost ([127.0.0.1]:43980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa5kE-0001AS-GH for submit@debbugs.gnu.org; Mon, 02 Jul 2018 16:48:22 -0400 Received: from gateway22.websitewelcome.com ([192.185.47.144]:32661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa5kC-0001AE-3O for 32035@debbugs.gnu.org; Mon, 02 Jul 2018 16:48:20 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 6E943135D4 for <32035@debbugs.gnu.org>; Mon, 2 Jul 2018 15:48:19 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id a5k2fLRpa79N3a5k7fkhn4; Mon, 02 Jul 2018 15:48:18 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; 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=5VxJ1t5uCVl13yPQc6AjZV+J//n54N86mn9GRVUSgUc=; b=Fp/WpvwWcP3arkZNiEcTwMELOX Onvy10ejACrTn9bvVrlMZXjpiEtQO9fkYLGmC61T2AXTdM2puSv5jAAxNCWGDCWpKHgw7+XgdBZuc 4hXbj02HQZmkZI7TbiuAVLLSI; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:35114 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fa5k1-004F0p-Qk; Mon, 02 Jul 2018 15:48:10 -0500 From: Tom Tromey To: Glenn Morris Subject: Re: bug#32035: 27.0.50; master; tcl-mode indentation broken in namespaces References: <80y3etn0jh.fsf@tinier.isode.net> X-Attribution: Tom Date: Mon, 02 Jul 2018 14:48:07 -0600 In-Reply-To: (Glenn Morris's message of "Mon, 02 Jul 2018 13:20:30 -0400") Message-ID: <877emdqs8o.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1fa5k1-004F0p-Qk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:35114 X-Source-Auth: tom+tromey.com X-Email-Count: 26 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32035 Cc: Bruce Stephens , 32035@debbugs.gnu.org, tom@tromey.com 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 (-) >>>>> "GM" == Glenn Morris writes: GM> Explicitly cc'ing the author of the cited commit. Thanks. >> With a file in tcl-mode (foo.tcl, say), I enter >> >> namespace eval Foo { >> variable foo >> >> I would expect the second line to be indented (basically because of the >> {, indicating it's beginning the namespace), but now it has indentation >> 0. >> >> If I revert commit cd5bb4bf3dbad8941d25823f398b595b8f0edbb9, "Fix two >> tcl-mode defun-related bugs" (which fixes #23565) then I get the >> expected indentation. The appended worked for me, could you try it? If it works for you I will write a test or two and install it. Note that evaling this in Emacs isn't enough, see the doc comment of the variable in question. Tom diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index fad62e100a..586d8cc0ed 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el @@ -360,7 +360,7 @@ tcl-mode-hook (defvar tcl-proc-list - '("proc" "method" "itcl_class" "body" "configbody" "class") + '("proc" "method" "itcl_class" "body" "configbody" "class" "namespace") "List of commands whose first argument defines something. This exists because some people (eg, me) use `defvar' et al. Call `tcl-set-proc-regexp' and `tcl-set-font-lock-keywords' From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 03 06:02:08 2018 Received: (at 32035) by debbugs.gnu.org; 3 Jul 2018 10:02:08 +0000 Received: from localhost ([127.0.0.1]:44409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faI8N-0008Kb-Ro for submit@debbugs.gnu.org; Tue, 03 Jul 2018 06:02:08 -0400 Received: from statler.isode.com ([62.232.206.189]:36282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faI8M-0008K3-7J for 32035@debbugs.gnu.org; Tue, 03 Jul 2018 06:02:06 -0400 Received: from tinier.isode.net ([172.20.0.175]) by statler.isode.com (smtp internal) via TCP with SMTP id ; Tue, 3 Jul 2018 11:01:59 +0100 Received: by tinier.isode.net (sSMTP sendmail emulation); Tue, 03 Jul 2018 11:01:58 +0100 From: Bruce Stephens To: Tom Tromey Subject: Re: bug#32035: 27.0.50; master; tcl-mode indentation broken in namespaces References: <80y3etn0jh.fsf@tinier.isode.net> <877emdqs8o.fsf@tromey.com> Date: Tue, 03 Jul 2018 11:01:58 +0100 In-Reply-To: <877emdqs8o.fsf@tromey.com> (Tom Tromey's message of "Mon, 02 Jul 2018 14:48:07 -0600") Message-ID: <80sh50iqnd.fsf@tinier.isode.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32035 Cc: Glenn Morris , 32035@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: -1.0 (-) Tom Tromey writes: [...] > The appended worked for me, could you try it? > If it works for you I will write a test or two and install it. I can confirm it works for me, thanks. [...] From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 11 20:24:11 2018 Received: (at 32035-done) by debbugs.gnu.org; 12 Aug 2018 00:24:11 +0000 Received: from localhost ([127.0.0.1]:48494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foeB1-0002J6-Fa for submit@debbugs.gnu.org; Sat, 11 Aug 2018 20:24:11 -0400 Received: from gateway34.websitewelcome.com ([192.185.149.105]:11564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foeAz-0002Ix-CR for 32035-done@debbugs.gnu.org; Sat, 11 Aug 2018 20:24:10 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway34.websitewelcome.com (Postfix) with ESMTP id D618EFDFDE for <32035-done@debbugs.gnu.org>; Sat, 11 Aug 2018 19:24:08 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id oeAyf0bjdkBj6oeAyfHl2J; Sat, 11 Aug 2018 19:24:08 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc: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=WFGW4vIH9yaSn3ru6//HFQk+aPrRZAr5vuJVag/vHfs=; b=BLuKNiBAbqaGW44EYxlGZAjtGp M/y9a4vqG9XohhecpcTwJhbWVw7pu5drMSQnCx2JkA8HcxF8o00FiuGQU5+l3r3H8AUBIVlaNteTp 9soNN6PcyUxNVeOO1KkSH1MzB; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:59460 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1foeAy-0017Ug-JP; Sat, 11 Aug 2018 19:24:08 -0500 From: Tom Tromey To: 32035-done@debbugs.gnu.org Subject: done X-Attribution: Tom Date: Sat, 11 Aug 2018 18:24:07 -0600 Message-ID: <87r2j4sa8o.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1foeAy-0017Ug-JP X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:59460 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32035-done 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 (-) The fix to this was checked in a while ago. Tom From unknown Sat Aug 16 13:42:04 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, 09 Sep 2018 11:24:04 +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