GNU bug report logs - #4512
23.1; html-mode C-c C-f on runs of <P>

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kevin Ryde <user42@HIDDEN>; Keywords: confirmed; dated Mon, 21 Sep 2009 22:55:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Alan Third <alan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 4512 <at> debbugs.gnu.org:


Received: (at 4512) by debbugs.gnu.org; 21 Jan 2016 20:37:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 21 15:37:59 2016
Received: from localhost ([127.0.0.1]:56758 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMLzT-00020R-AY
	for submit <at> debbugs.gnu.org; Thu, 21 Jan 2016 15:37:59 -0500
Received: from mail-wm0-f41.google.com ([74.125.82.41]:36128)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <athird@HIDDEN>) id 1aMLzR-00020E-DF
 for 4512 <at> debbugs.gnu.org; Thu, 21 Jan 2016 15:37:58 -0500
Received: by mail-wm0-f41.google.com with SMTP id l65so235555639wmf.1
 for <4512 <at> debbugs.gnu.org>; Thu, 21 Jan 2016 12:37:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=75vhNf64welDjo9M446G/WDncsLfQBnNtJMyQc/vo8A=;
 b=b1GNrU3uhOJisWO/64/4f7wvBA0qsIUDyxkfLdqcucYNZUJsT2soVIdJJFd5DeP8sL
 WJ8pqEWy90PgjusXOYOxWh5QfMPt3+Qmig2GqL89uuGucmWA1D2X1PLDvWPUXcGEoK4/
 b3CqpxSHJjTI7qYm4D3Tv2vpE1dXaax5WZ9i1g5CHOFZWoSYXiggdy1LTx6A1ACzY+0J
 6rsWMpQHugNp+JyBD5wGIwMZa542ZXdVZWrv8gNunMoCi7FE6c+NX3rLE3uoXfgs2sav
 D/5pJnNf5h8q4JVmQ5d0slc+A3v+1RMrvhrzGHKQYyyrz+zN0xI1UdKSsU1qan89olFS
 BBVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version:content-type;
 bh=75vhNf64welDjo9M446G/WDncsLfQBnNtJMyQc/vo8A=;
 b=PuAC290rJKNVRkM96GnMf4XWrOeMy4uEWGkPguTWIfWEFjhQNU6bRi0k1/guVWHvfn
 inFvIkgbyQr+kaiJFlbceR9CNdDBLW/WOAMHFbR/ItByWcxrk0E8vSqow1gDZSOLXsCB
 31y00aasjTSggFr84LLE9kyefc6LpfxYZbvL8xEl9co8W8zBeF0mQy9I5n64C8/sKn82
 fgGWDMyno/a6zarw4kxEFv6C7VGUu+gM70zosWXQ++6YoquPRHBhSTeiybm2ci9YqvC6
 sWRYcKZMcekXCqGSk60A1WAJJH30GZFAp6Do6c4BYE4A3VQRaqBuC0EMXCrVYA+nt8ux
 eemQ==
X-Gm-Message-State: ALoCoQkG+lpNveioskTCpFKEVYDttuHCQ1TSzzCi03pRcYjtqXLRg+Awd1lZE4y62A9h1xR06EbhmZedplz1949zXi5jBauTbQ==
X-Received: by 10.194.243.103 with SMTP id wx7mr49361900wjc.136.1453408671887; 
 Thu, 21 Jan 2016 12:37:51 -0800 (PST)
Received: from galloway.idiocy.org
 (d.0.d.3.7.a.e.3.0.f.2.b.f.2.5.7.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa.
 [2001:8b0:3f8:8129:752f:b2f0:3ea7:3d0d])
 by smtp.gmail.com with ESMTPSA id m128sm31317738wma.24.2016.01.21.12.37.50
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 21 Jan 2016 12:37:51 -0800 (PST)
From: Alan Third <alan@HIDDEN>
To: Kevin Ryde <user42@HIDDEN>
Subject: Re: bug#4512: 23.1; html-mode C-c C-f on runs of <P>
References: <87skefhq37.fsf@HIDDEN>
Date: Thu, 21 Jan 2016 20:37:49 +0000
In-Reply-To: <87skefhq37.fsf@HIDDEN> (Kevin Ryde's message of "Tue, 22 Sep
 2009 08:48:12 +1000")
Message-ID: <m2k2n26542.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: 4512
Cc: 4512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.9 (/)

Kevin Ryde <user42@HIDDEN> writes:

> In a html-mode buffer with runs of successive <P> tags, like
>
>     (progn
>       (switch-to-buffer "foo")
>       (dotimes (i 5000) (insert (format "<p> abc\n" i)))
>       (goto-char (point-min))
>       (html-mode))
>
> pressing C-c C-f gets an error
>
>     Variable binding depth exceeds max-specpdl-size

I still see this in emacs 25.

-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#4512; Package emacs. Full text available.

Message received at 4512@HIDDEN:


Received: (at 4512) by emacsbugs.donarmstrong.com; 22 Sep 2009 21:45:40 +0000
From monnier@HIDDEN Tue Sep 22 14:45:39 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,GAPPY_SUBJECT,
	HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MLjb98003878
	for <4512@HIDDEN>; Tue, 22 Sep 2009 14:45:38 -0700
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
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id B39A23A122; Tue, 22 Sep 2009 17:45:34 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Kevin Ryde <user42@HIDDEN>
Cc: 4512 <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN
Subject: Re: bug#4512: 23.1; html-mode C-c C-f on runs of <P>
Message-ID: <jwv63bapsho.fsf-monnier+emacsbugreports@HIDDEN>
References: <87skefhq37.fsf@HIDDEN>
Date: Tue, 22 Sep 2009 17:45:34 -0400
In-Reply-To: <87skefhq37.fsf@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV3368=0

> In a html-mode buffer with runs of successive <P> tags, like

>     (progn
>       (switch-to-buffer "foo")
>       (dotimes (i 5000) (insert (format "<p> 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 </P> 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



Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4512; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 22 Sep 2009 21:45:48 +0000
From monnier@HIDDEN Tue Sep 22 14:45:47 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,GAPPY_SUBJECT,
	HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02
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 <submit@HIDDEN>; Tue, 22 Sep 2009 14:45:47 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MqDBC-0003c7-4P
	for bug-gnu-emacs@HIDDEN; Tue, 22 Sep 2009 17:45:46 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MqDB7-0003bW-Mm
	for bug-gnu-emacs@HIDDEN; Tue, 22 Sep 2009 17:45:45 -0400
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@HIDDEN; Tue, 22 Sep 2009 17:45:41 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:60584)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <monnier@HIDDEN>)
	id 1MqDB7-0004yp-2T
	for bug-gnu-emacs@HIDDEN; Tue, 22 Sep 2009 17:45:41 -0400
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
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id B39A23A122; Tue, 22 Sep 2009 17:45:34 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Kevin Ryde <user42@HIDDEN>
Cc: 4512 <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN
Subject: Re: bug#4512: 23.1; html-mode C-c C-f on runs of <P>
Message-ID: <jwv63bapsho.fsf-monnier+emacsbugreports@HIDDEN>
References: <87skefhq37.fsf@HIDDEN>
Date: Tue, 22 Sep 2009 17:45:34 -0400
In-Reply-To: <87skefhq37.fsf@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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)

> In a html-mode buffer with runs of successive <P> tags, like

>     (progn
>       (switch-to-buffer "foo")
>       (dotimes (i 5000) (insert (format "<p> 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 </P> 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




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4512; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 21 Sep 2009 22:48:35 +0000
From gg@HIDDEN Mon Sep 21 15:48:34 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL,FOURLA,GAPPY_SUBJECT
	autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
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 <submit@HIDDEN>; Mon, 21 Sep 2009 15:48:34 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MprgO-00036C-QQ
	for bug-gnu-emacs@HIDDEN; Mon, 21 Sep 2009 18:48:32 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MprgG-00035i-WC
	for bug-gnu-emacs@HIDDEN; Mon, 21 Sep 2009 18:48:31 -0400
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@HIDDEN; Mon, 21 Sep 2009 18:48:24 -0400
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 <gg@HIDDEN>)
	id 1MprgF-00032q-TY
	for bug-gnu-emacs@HIDDEN; Mon, 21 Sep 2009 18:48:24 -0400
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 <bug-gnu-emacs@HIDDEN>; Tue, 22 Sep 2009 08:48:19 +1000 (EST)
Received: from blah.blah (ppp2A26.dyn.pacific.net.au [61.8.42.38])
	by mailproxy2.pacific.net.au (Postfix) with ESMTP id BE90827411
	for <bug-gnu-emacs@HIDDEN>; Tue, 22 Sep 2009 08:48:18 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.69)
	(envelope-from <gg@HIDDEN>)
	id 1Mprg5-000253-4r
	for bug-gnu-emacs@HIDDEN; Tue, 22 Sep 2009 08:48:13 +1000
From: Kevin Ryde <user42@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 23.1; html-mode C-c C-f on runs of <P>
Date: Tue, 22 Sep 2009 08:48:12 +1000
Message-ID: <87skefhq37.fsf@HIDDEN>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4)

--=-=-=

In a html-mode buffer with runs of successive <P> tags, like

    (progn
      (switch-to-buffer "foo")
      (dotimes (i 5000) (insert (format "<p> 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 </P> 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 </P> if the <P>
   ;; we're skipping has no matching </P>.
+
+  ;; FIXME: For html-mode a closing </P> is optional, and others like
+  ;; </TR> similarly.  This code or some `html-skip-tag-forward'
+  ;; should recognise a new <P> ends a previous <P>, and with some
+  ;; precedence levels among <TR>, <TD>, <P>, etc.  Currently the
+  ;; recursion in the `while' below means runs of successive <P> 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

--=-=-=--




Acknowledgement sent to Kevin Ryde <user42@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4512; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 21 Jan 2016 20:45:02 UTC

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