GNU bug report logs - #32035
27.0.50; master; tcl-mode indentation broken in namespaces

Previous Next

Package: emacs;

Reported by: Bruce Stephens <bruce.stephens <at> isode.com>

Date: Mon, 2 Jul 2018 15:03:01 UTC

Severity: normal

Found in version 27.0.50

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32035 in the body.
You can then email your comments to 32035 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32035; Package emacs. (Mon, 02 Jul 2018 15:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruce Stephens <bruce.stephens <at> isode.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 02 Jul 2018 15:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruce Stephens <bruce.stephens <at> isode.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; master; tcl-mode indentation broken in namespaces
Date: Mon, 02 Jul 2018 16:02:26 +0100
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32035; Package emacs. (Mon, 02 Jul 2018 17:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 32035 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Bruce Stephens <bruce.stephens <at> isode.com>
Cc: 32035 <at> debbugs.gnu.org, tom <at> tromey.com
Subject: Re: bug#32035: 27.0.50; master;
 tcl-mode indentation broken in namespaces
Date: Mon, 02 Jul 2018 13:20:30 -0400
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32035; Package emacs. (Mon, 02 Jul 2018 20:49:01 GMT) Full text and rfc822 format available.

Message #11 received at 32035 <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tom <at> tromey.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Bruce Stephens <bruce.stephens <at> isode.com>, 32035 <at> debbugs.gnu.org,
 tom <at> tromey.com
Subject: Re: bug#32035: 27.0.50; master;
 tcl-mode indentation broken in namespaces
Date: Mon, 02 Jul 2018 14:48:07 -0600
>>>>> "GM" == Glenn Morris <rgm <at> gnu.org> 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'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32035; Package emacs. (Tue, 03 Jul 2018 10:03:01 GMT) Full text and rfc822 format available.

Message #14 received at 32035 <at> debbugs.gnu.org (full text, mbox):

From: Bruce Stephens <bruce.stephens <at> isode.com>
To: Tom Tromey <tom <at> tromey.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 32035 <at> debbugs.gnu.org
Subject: Re: bug#32035: 27.0.50; master; tcl-mode indentation broken in
 namespaces
Date: Tue, 03 Jul 2018 11:01:58 +0100
Tom Tromey <tom <at> tromey.com> 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.

[...]





Reply sent to Tom Tromey <tom <at> tromey.com>:
You have taken responsibility. (Sun, 12 Aug 2018 00:25:01 GMT) Full text and rfc822 format available.

Notification sent to Bruce Stephens <bruce.stephens <at> isode.com>:
bug acknowledged by developer. (Sun, 12 Aug 2018 00:25:02 GMT) Full text and rfc822 format available.

Message #19 received at 32035-done <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tom <at> tromey.com>
To: 32035-done <at> debbugs.gnu.org
Subject: done
Date: Sat, 11 Aug 2018 18:24:07 -0600
The fix to this was checked in a while ago.

Tom




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Sep 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.