From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#26922: 26.0.50; mhtml-mode fontification problem Date: Sun, 14 May 2017 14:42:36 +0200 Message-ID: <87fug7zk1v.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494765798 7342 195.159.176.226 (14 May 2017 12:43:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 May 2017 12:43:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 26922@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 14 14:43:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9srg-0001kz-Bh for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 May 2017 14:43:12 +0200 Original-Received: from localhost ([::1]:60890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9srl-0000jZ-WC for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 May 2017 08:43:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9sra-0000jU-17 for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9srW-0004cv-T6 for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9srW-0004cj-PV for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9srW-0005uF-Ja for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 May 2017 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149476577422685 (code B ref -1); Sun, 14 May 2017 12:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2017 12:42:54 +0000 Original-Received: from localhost ([127.0.0.1]:43657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9srO-0005tp-8a for submit@debbugs.gnu.org; Sun, 14 May 2017 08:42:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9srM-0005tc-5X for submit@debbugs.gnu.org; Sun, 14 May 2017 08:42:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9srF-0004RX-VL for submit@debbugs.gnu.org; Sun, 14 May 2017 08:42:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9srF-0004RJ-SC for submit@debbugs.gnu.org; Sun, 14 May 2017 08:42:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9srE-0000hq-Jn for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9srB-0004N0-Ho for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:42:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:56491) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9srB-0004KZ-6Y for bug-gnu-emacs@gnu.org; Sun, 14 May 2017 08:42:41 -0400 Original-Received: from rosalinde ([83.135.1.92]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LcShi-1dthzH2Aty-00jnlW for ; Sun, 14 May 2017 14:42:37 +0200 X-Provags-ID: V03:K0:tu7Atgqw65g5LahSZHBwOCMTxOx4xuqNFEgeltHHrldE9NqdBxS WT0laDkCL7G6CD+iQKgDNnUdNxJ46NUqdCozRLrBubO33UzFh40ysFJ+cbNgC+KfPhbzRIn xsURDBSahPCK5kJ5juxAAA7SZ4l/77/6vo1tyNUXx0VfNAQnuwnmdrGqbR81emkpubbIMF1 zw8J8VH3xMDlO8sRIh97A== X-UI-Out-Filterresults: notjunk:1;V01:K0:AvS0PsEI7rg=:VmyzbB85LVpF5t5NuAGzaZ DxogBawhLiRqs089KpkSd5yGvwuMqpg5C4Te+Vl8g0tRlvN0Ja5tr32EzcKEc23yeYmNf8tRl Qk0PGpUgpupSPFzYXUv/dvuJB/ZZPgt+uYlc+LG9MtetHJKKfUBS4Oi6iNaUI1yGgZ9Gmuv3j ghjorqXoZTR4JzKz2aBSzmtpCcozxtVeR0tCh/KHuaYEwRyf9W2tDZF3fSE5I29gLnAxZcscN jr37v1NhVXdWsJsEYygirVFw/NnpSZSjv4A3lDMJ4lkQ4RW7RQOoEystX7NqottYXChTzNpgy EsvSAcmY09134nIYqDj/oq5nM9YWblYGHTawiBcWxubBV60ad6CHXAE1CK/mUukbdBUgQUdck 1bX4ewTyYBCAc/MSkGxWpM7kZoWeWthe1cNTBkoIj+A8iE1SJW2tv6hdnnqZMC0R5KJRxnPr+ XcGNbmNuzRJDzrc9QyhBvLcCJ+6bOKAHzcEJDWR/Ac4zZmRBF4aoybsf1P11VwmbJGFfjBD3n stf0RtecSWb+ABEx0pZmD5anrLGwp1v+/SSbgYvTpU+fFKoL/10skM78KdaVBmY5zHmGZmP7n 5VEih/k2BGwH8deEUTb7xcx+LrP7qYFrbkTDmgfwTH76c5IAAIDcX8CoaNPQ/pBypLAYXDsI2 1mQx8CqrIbBenm5/MqbSBN6VYx3isXN7RtfbmHcWrTx42mxK6IsSArw6pGt2Gj+LUCKkU4qhW eBc/MEgguw7tO7W7SuRhO33Jiu6Fj33x713Paq41C1GlI7Z7xX5Q9umAuiT17CPCEtfEFhKZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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" Xref: news.gmane.org gmane.emacs.bugs:132495 Archived-At: 0. Create the file "test.html" with the following content: --8<---------------cut here---------------start------------->8---

This is a test.

--8<---------------cut here---------------end--------------->8--- 1. emacs -Q path/to/test.html 2. Notice that the first three lines are fontified with font-lock-string-face and the remaining lines with a mix of faces as appropriate for the mode (identified as XHTML+ in the mode line). 3. Put point on line 3 ("http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">) and press TAB, making the line indent to column 1. => Now the entire buffer is fontified with font-lock-string-face. Undoing the reindentation triggered by TAB in step 3 does not restore the fontification, nor does `M-x font-lock-fontify-buffer' or disabling and then re-enabling font-lock-mode in the buffer. However, altering the first line () does restore the fontification. A subsequent modification to line 3 again renders the whole buffer in font-lock-string-face -- but changing line 2 does not have this effect, nor does typing `M-^' on line 3 to join it to line 2. The faulty refontification does not happen with the above recipe in Emacs 25.2, nor does it happen in master if, prior to step 1 above, I evaluate this line: (add-to-list 'auto-mode-alist '("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode)) to make the file get visited in html-mode (with mode line lighter XTHML) instead of mhtml-mode. In GNU Emacs 26.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.20.10) of 2017-05-14 built on rosalinde Repository revision: 4132bd74e9816ca913f862835cc062e092ab8b79 Windowing system distributor 'The X.Org Foundation', version 11.0.11803000 System Description: openSUSE Leap 42.2 Configured using: 'configure --with-xwidgets 'CFLAGS=-Og -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix