From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.bugs Subject: bug#23565: 24.5; tcl-end-of-defun and tcl-eval-defun doesn't work reliable Date: Wed, 31 Jul 2019 00:45:54 +0200 Message-ID: <87d0hruonx.fsf@pointsman.de> References: <87mvnoe3pi.fsf@linux-qg7d.fritz.box> <871scw3x6g.fsf@tromey.com> <87zhz99742.fsf@pointsman.de> <87woua8xf5.fsf@pointsman.de> <87muv5n841.fsf@tromey.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92173"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 23565@debbugs.gnu.org To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 31 00:47:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsath-000Nqe-Ae for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 00:47:09 +0200 Original-Received: from localhost ([::1]:36676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsatf-0004Ux-RT for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jul 2019 18:47:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35378) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsatb-0004Up-DM for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 18:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsata-0005qy-6v for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 18:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsatZ-0005pD-Ty for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 18:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsatZ-0007XM-Pf for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 18:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rolf Ade Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jul 2019 22:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23565 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 23565-submit@debbugs.gnu.org id=B23565.156452676828732 (code B ref 23565); Tue, 30 Jul 2019 22:47:01 +0000 Original-Received: (at 23565) by debbugs.gnu.org; 30 Jul 2019 22:46:08 +0000 Original-Received: from localhost ([127.0.0.1]:51352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsash-0007TM-NZ for submit@debbugs.gnu.org; Tue, 30 Jul 2019 18:46:07 -0400 Original-Received: from mxout5.interscholz.de ([85.236.196.72]:53647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsasd-0007S5-2b for 23565@debbugs.gnu.org; Tue, 30 Jul 2019 18:46:04 -0400 Original-Received: from localhost (mxout5 [127.0.0.1]) by mxout5.interscholz.de (Postfix) with ESMTP id 5A38225A6C; Wed, 31 Jul 2019 00:45:51 +0200 (CEST) X-Virus-Scanned: interscholz amavisd-new at mxout5.interscholz.de Original-Received: from server.web01.interscholz.net (server.web01.interscholz.net [85.236.196.138]) by mxout5.interscholz.de (Postfix) with ESMTP id 7A7212094D; Wed, 31 Jul 2019 00:45:47 +0200 (CEST) Original-Received: from pointsman2 (p5B317A9C.dip0.t-ipconnect.de [91.49.122.156]) by server.web01.interscholz.net (Postfix) with ESMTPSA id 046A2340371; Wed, 31 Jul 2019 00:45:53 +0200 (CEST) In-Reply-To: <87muv5n841.fsf@tromey.com> (Tom Tromey's message of "Thu, 05 Jul 2018 07:07:58 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164141 Archived-At: Tom Tromey writes: >>>>>> "Rolf" == Rolf Ade writes: > > Rolf> Indent the second line ("foo") with and you get > Rolf> do { > Rolf> foo > > Thanks for trying this. > I suppose instead of the fix for the "namespace" thing, tcl-mode should > maybe just looking at brace depth for indentation. I will take a deeper > look. Despite #32035 this is still open with master of today (but not with 26.2). Completely legal and commen code at the beginning befor the first word out of tcl-proc-list are not indented as expected. Examples: do { something } if {$argc != 0} { puts stderr "usage: $argv0" } set options { -foo "default" -bar "bardefault" } Expected indentation would be of course something like: do { something } if {$argc != 0} { puts stderr "usage: $argv0" } set options { -foo "default" -bar "bardefault" } After the first word out of tcl-proc-list in the buffer all that examples above will be indented as expected, no misbehaviour any more. I happily confirm again, that master hasn't the original problem of this bug report. And I'd really love to see that fixed, after it has plagued me for 20 years. But I'm afraid that the cure (current behavior of master) is worse than the problem (26.2).