From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4512: 23.1; html-mode C-c C-f on runs of

Date: Tue, 22 Sep 2009 17:45:34 -0400 Message-ID: References: <87skefhq37.fsf@blah.blah> Reply-To: Stefan Monnier , 4512@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253657249 16757 80.91.229.12 (22 Sep 2009 22:07:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2009 22:07:29 +0000 (UTC) Cc: 4512@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 23 00:07:22 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqDW2-0001mv-Rv for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 00:07:19 +0200 Original-Received: from localhost ([127.0.0.1]:40588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqDW2-0002mc-AY for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Sep 2009 18:07:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqDVy-0002mT-3S for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:07:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqDVt-0002m2-I4 for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:07:13 -0400 Original-Received: from [199.232.76.173] (port=49805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqDVt-0002lz-EP for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:07:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:35716) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqDVs-0000W6-UT for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:07:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqDVs-00041M-3T for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:07:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MM73PQ007939; Tue, 22 Sep 2009 15:07:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8MLo6bF004422; Tue, 22 Sep 2009 14:50:06 -0700 Resent-Date: Tue, 22 Sep 2009 14:50:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 22 Sep 2009 21:50:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4512 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12536559483891 (code B ref -1); Tue, 22 Sep 2009 21:50:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Sep 2009 21:45:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MLjk3e003888 for ; Tue, 22 Sep 2009 14:45:47 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqDBC-0003c7-4P for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 17:45:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqDB7-0003bW-Mm for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 17:45:45 -0400 Original-Received: from [199.232.76.173] (port=49085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqDB7-0003bT-Hj for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 17:45:41 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:60584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqDB7-0004yp-2T for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 17:45:41 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n8MLjYKS025686; Tue, 22 Sep 2009 17:45:34 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B39A23A122; Tue, 22 Sep 2009 17:45:34 -0400 (EDT) In-Reply-To: <87skefhq37.fsf@blah.blah> (Kevin Ryde's message of "Tue, 22 Sep 2009 08:48:12 +1000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3368=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Tue, 22 Sep 2009 18:07:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31367 Archived-At: > In a html-mode buffer with runs of successive

tags, like > (progn > (switch-to-buffer "foo") > (dotimes (i 5000) (insert (format "

abc\n" i))) > (goto-char (point-min)) > (html-mode)) > pressing C-c C-f gets an error > Variable binding depth exceeds max-specpdl-size > instead of going forward. The way C-c C-f `sgml-skip-tag-forward' > requires a closing

etc is no doubt what's wanted for sgml, but for > the looser html it'd be good if it recognised some closing tags are > optional. The necessary info is already present and used by the indentation code, via the function sgml-unclosed-tag-p. All it needs is for someone to figure out how to merge the indentation's navigation code with the sgml-skip-tag-(for|back)ward code (which predates it, but wasn't good enough). Stefan