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

Date: Tue, 22 Sep 2009 08:48:12 +1000 Message-ID: <87skefhq37.fsf@blah.blah> Reply-To: Kevin Ryde , 4512@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1253574455 28114 80.91.229.12 (21 Sep 2009 23:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 23:07:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 22 01:07:28 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 1Mpryf-0006ze-MV for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Sep 2009 01:07:26 +0200 Original-Received: from localhost ([127.0.0.1]:41696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpryf-0003ao-0X for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2009 19:07:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpryQ-0003P8-R3 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 19:07:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpryM-0003Ok-PJ for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 19:07:10 -0400 Original-Received: from [199.232.76.173] (port=40514 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpryM-0003Oa-G3 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 19:07:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33029) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MpryL-0005on-JM for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 19:07:06 -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 n8LN73cE009056; Mon, 21 Sep 2009 16:07:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8LMt5x6006541; Mon, 21 Sep 2009 15:55:05 -0700 Resent-Date: Mon, 21 Sep 2009 15:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 21 Sep 2009 22:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4512 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12535733155692 (code B ref -1); Mon, 21 Sep 2009 22:55:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Sep 2009 22:48:35 +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 n8LMmX9K005689 for ; Mon, 21 Sep 2009 15:48:34 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MprgO-00036C-QQ for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 18:48:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MprgG-00035i-WC for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 18:48:31 -0400 Original-Received: from [199.232.76.173] (port=53274 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MprgG-00035f-Rc for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 18:48:24 -0400 Original-Received: from mailout2-10.pacific.net.au ([125.255.80.137]:50203 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MprgF-00032q-TY for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2009 18:48:24 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id AE80F18F720 for ; Tue, 22 Sep 2009 08:48:19 +1000 (EST) Original-Received: from blah.blah (ppp2A26.dyn.pacific.net.au [61.8.42.38]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id BE90827411 for ; Tue, 22 Sep 2009 08:48:18 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1Mprg5-000253-4r for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 08:48:13 +1000 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 21 Sep 2009 19:07:10 -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:31333 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=sgml-mode.el.skip-comment.diff --- sgml-mode.el.~1.140.~ 2009-08-22 07:48:30.000000000 +1000 +++ sgml-mode.el 2009-09-22 08:42:35.000000000 +1000 @@ -840,6 +840,14 @@ ;; FIXME: Use sgml-get-context or something similar. ;; It currently might jump to an unrelated

if the

;; we're skipping has no matching

. + + ;; FIXME: For html-mode a closing

is optional, and others like + ;; similarly. This code or some `html-skip-tag-forward' + ;; should recognise a new

ends a previous

, and with some + ;; precedence levels among , ,

, etc. Currently the + ;; recursion in the `while' below means runs of successive

error + ;; out exceeding max-specpdl-size. + (let ((return t)) (with-syntax-table sgml-tag-syntax-table (while (>= arg 1) --=-=-= In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-08-03 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t --=-=-=--