From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#946: 23.0.60; html-mode regression ('' within a table) Date: Thu, 18 Sep 2008 10:20:45 +0200 Message-ID: <48D20F5D.3040209@gmx.at> Reply-To: martin rudalics , 946@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060506000202060001090905" X-Trace: ger.gmane.org 1221727680 7843 80.91.229.12 (18 Sep 2008 08:48:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 08:48:00 +0000 (UTC) Cc: Allan Gottlieb To: 946@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 18 10:48:56 2008 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 1KgFBw-0000Xr-59 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2008 10:48:48 +0200 Original-Received: from localhost ([127.0.0.1]:43537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgFAu-0000mq-Pf for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2008 04:47:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgFAq-0000mE-JD for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 04:47:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgFAo-0000lc-EQ for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 04:47:40 -0400 Original-Received: from [199.232.76.173] (port=41600 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgFAo-0000lV-53 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 04:47:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46114) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KgFAo-0007f0-Iv for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 04:47:38 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8I8lZAp013652; Thu, 18 Sep 2008 01:47:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8I8U3pO009146; Thu, 18 Sep 2008 01:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Sep 2008 08:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 946 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 946-submit@emacsbugs.donarmstrong.com id=B946.12217262987887 (code B ref 946); Thu, 18 Sep 2008 08:30:03 +0000 Original-Received: (at 946) by emacsbugs.donarmstrong.com; 18 Sep 2008 08:24:58 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8I8Osj6007881 for <946@emacsbugs.donarmstrong.com>; Thu, 18 Sep 2008 01:24:55 -0700 Original-Received: (qmail invoked by alias); 18 Sep 2008 08:24:48 -0000 Original-Received: from 62-47-60-148.adsl.highway.telekom.at (EHLO [62.47.60.148]) [62.47.60.148] by mail.gmx.net (mp002) with SMTP; 18 Sep 2008 10:24:48 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+U0pkEb3CUXq6/f86YJavA3WqSRMymCD9gGjVeyO QJTTCz67X3Y1m0 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7,0.66 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 18 Sep 2008 04:47:39 -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:20608 Archived-At: This is a multi-part message in MIME format. --------------060506000202060001090905 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > 1. Create the following 3 line file /tmp/x.html > > > >
'9'
> > 2. invoke emacs -Q /tmp/x.html > > 3. C-x h to mark the buffer > > 4. C-M-\ to indent the buffer > > 5. The indentation is not changed (correct), but the message > Unclosed tag <> > is generated (wrong). > > 6. This does not occur with emacs 22.2 and does not occur if > the three characters '9' are replaced with 9 or '9 but does occur if > they are replaced with 9' This happens because `backward-sexp' calls `backward-prefix-chars' which skips the "'". Could you please try the attached patch. Thank you, martin --------------060506000202060001090905 Content-Type: text/plain; name="946.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="946.diff" *** textmodes/sgml-mode.el.~1.136.~ 2008-07-05 06:26:11.000000000 +0200 --- textmodes/sgml-mode.el 2008-09-18 10:07:18.000000000 +0200 *************** *** 784,790 **** (with-syntax-table sgml-tag-syntax-table (up-list -1) (when (sgml-skip-tag-forward 1) ! (backward-sexp 1) (forward-char 2) t)))) (clones (get-char-property (point) 'text-clones))) --- 784,790 ---- (with-syntax-table sgml-tag-syntax-table (up-list -1) (when (sgml-skip-tag-forward 1) ! (goto-char (or (scan-sexps (point) -1) (point-min))) (forward-char 2) t)))) (clones (get-char-property (point) 'text-clones))) *************** *** 1223,1229 **** (with-syntax-table sgml-tag-syntax-table (goto-char tag-end) (condition-case nil ! (backward-sexp) (scan-error ;; This > isn't really the end of a tag. Skip it. (goto-char (1- tag-end)) --- 1223,1229 ---- (with-syntax-table sgml-tag-syntax-table (goto-char tag-end) (condition-case nil ! (goto-char (or (scan-sexps (point) -1) (point-min))) (scan-error ;; This > isn't really the end of a tag. Skip it. (goto-char (1- tag-end)) --------------060506000202060001090905--