From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5033: 23.1; antlr-mode: antlr-indent-command broken for long grammars Date: Sun, 27 Mar 2016 22:35:10 -0400 Message-ID: References: <87vdflrabn.fsf@stupidchicken.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459132582 4628 80.91.229.3 (28 Mar 2016 02:36:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 02:36:22 +0000 (UTC) Cc: 5033@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 28 04:36:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akN2I-0007S2-NA for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 04:36:10 +0200 Original-Received: from localhost ([::1]:38953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akN2H-0003I9-Jq for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 22:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akN2D-0003Hs-CW for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 22:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akN2A-0003SS-6i for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 22:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akN2A-0003SN-29 for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 22:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akN29-0004vb-M5 for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 22:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Mar 2016 02:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5033-submit@debbugs.gnu.org id=B5033.145913252018894 (code B ref 5033); Mon, 28 Mar 2016 02:36:01 +0000 Original-Received: (at 5033) by debbugs.gnu.org; 28 Mar 2016 02:35:20 +0000 Original-Received: from localhost ([127.0.0.1]:40662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akN1T-0004uf-U3 for submit@debbugs.gnu.org; Sun, 27 Mar 2016 22:35:20 -0400 Original-Received: from mail-qg0-f51.google.com ([209.85.192.51]:33095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akN1S-0004uU-PJ for 5033@debbugs.gnu.org; Sun, 27 Mar 2016 22:35:19 -0400 Original-Received: by mail-qg0-f51.google.com with SMTP id j35so99598202qge.0 for <5033@debbugs.gnu.org>; Sun, 27 Mar 2016 19:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=07KDXKu1R+yeodSapyTWZL98ot/9P4FS3nNI2sAN78I=; b=fJ5UhyqEvExOrDhvmw7AQHnGUKoWJ3Lsmm4vTSXzplGkJYHLYHP6Y5pjpfWSajPe4U 1XzOC/uhsHijlcUUTUfC+1CYA3S8N9hBabdnUQSAThMf6ZsNuERjgmDApfSTij0K/DjQ FUmqfxxi9tygtmt0vc610j/j9KCDsY6TX6rVd2Epts9oi1i/i/s8GhqgdqeRi2RVzN7J gqBGErqZ+V2mZkYK8EzL8BheGOtbum8NkTLEUgYwf82tzaWyMAffKoRWpgoECwMtv6v0 WL1ykdxL/efly2jBi5O7zC/0RBqYFaNDfFGkRknDfg65MhbR2WtGhjPJYeu6hQaqnB62 cbcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=07KDXKu1R+yeodSapyTWZL98ot/9P4FS3nNI2sAN78I=; b=Tn3SRV8gQJp6hR87lPoXxBIT2lmSyjjqEdN9scs8yTMrlNJIUUgeYgDRPp5FD34ooi /lXcewMf92mvUgqo8Jy7q2OiCe584ycHQO7MwVerYKYAfRjd5guZETYF5Dkdbv8sK5I5 Hb1jvBIjbY1TLR4wtYN9KNGQY+jMXHg3idECFeZSOISg0daVn+wVXEEQpCbLXaE/W874 KbcWV76AmdZn0IYzOD4UAWyGc5Eu64lqx1vCPvi1AObySVeLtGqLvxPGQj945HT/dKbR k1lxGsTpeZVI4xhyTYOIdAjY9p+j6OUdcklqMw52C/vt/jPF5vUNaQ4is6EGzPX+SSZN b68g== X-Gm-Message-State: AD7BkJKoFuHW9HW6zvTFFWNyi90yNzPfofR64uQwKZxY+oos1BhB8DFiaZ9NRkakKLnp9A== X-Received: by 10.140.181.137 with SMTP id c131mr29700913qha.94.1459132513329; Sun, 27 Mar 2016 19:35:13 -0700 (PDT) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id n90sm10908061qge.46.2016.03.27.19.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Mar 2016 19:35:11 -0700 (PDT) In-Reply-To: <87vdflrabn.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 01 Jan 2010 12:42:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115620 Archived-At: I cannot reproduce this on Emacs 25. I loaded the provided silly.g, set the antrl-slow-cache-diff-threshold to 0, and indented each line without any issues, at many different points on the line. Someone can let me know if they can still reproduce this, otherwise I'll close this out. Chong Yidong writes: >> I am running into an antlr-mode bug when indenting long grammars. >> Specifically, when the point in the grammar is higher than >> antlr-slow-cache-diff-threshold indenting a grammar rule fails in >> calling c-where-wrt-brace-construct through beginning-of-defun. > >> Solution: >> A simple solution (kludge) is to modify antlr-syntactic-context to not >> call beginning-of-defun in antlr-mode.el. See attached patch. > > I am not able to test this solution, because I don't work with antlr > files (and I doubt any of the other core Emacs maintainers do either). > I'm CC'ing the author of antlr-mode, Christoph Wedler, though we haven't > heard from him in a while. > > In the meantime, could you try to explain what removing the > beginning-of-defun call in antlr-syntactic-context might break? (Surely > that call is there for a reason.)