From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrew T Newsgroups: gmane.emacs.bugs Subject: bug#35815: 26.2; mhtml-mode (in HTML+CSS and HTML+JS) doesn't respect Whitespace Mode face settings Date: Mon, 20 May 2019 17:30:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="175421"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) To: 35815@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 21 02:32:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSshT-000jUU-6e for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 May 2019 02:32:15 +0200 Original-Received: from localhost ([127.0.0.1]:44192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSshS-0002Ua-7Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 May 2019 20:32:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSshI-0002T0-VQ for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSshH-0001uF-FP for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:32:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSshH-0001uA-By for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSshG-00079P-1F for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:32:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew T Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 May 2019 00:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35815 X-GNU-PR-Package: emacs X-Debbugs-Original-To: GNU Emacs Bug Tracker Original-Received: via spool by submit@debbugs.gnu.org id=B.155839868127426 (code B ref -1); Tue, 21 May 2019 00:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2019 00:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:38316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSsgb-00078I-9Y for submit@debbugs.gnu.org; Mon, 20 May 2019 20:31:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSsgY-000781-Rp for submit@debbugs.gnu.org; Mon, 20 May 2019 20:31:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hSsgT-0001Zx-Dh for submit@debbugs.gnu.org; Mon, 20 May 2019 20:31:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSsgR-0002Nf-Rx for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:31:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSsgQ-0001YM-BC for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:31:11 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:45999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSsgP-0001WS-Ux for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 20:31:10 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id n22so11608178lfe.12 for ; Mon, 20 May 2019 17:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=ZddpD43BjtkzkJZIrpbSLaXDqz2jFXI2TafCpAO40rQ=; b=O7mKRpEosaCeHHs/RoNug3uFaCbJCmioDfJ088mxqjEzvUepDZ7xwC48QM0JOkjzV4 Xa6mvxY4Y65fnVMII6nbCIYboR+g8+QjmEUd+6RAEeEQ8+a9O+rs9WX/4vYS4J6pizUv xU+dRtplKb2D4oyCvN2IUom3+QgbwzspcP7PTKvniTYEX3d7GKFynTP8b/1OGSMjiAEL sdUo5cr28kxbLYtu8dCGkOsWL5MD6zyXRNCutT6mesacIAJJs3j7behpAM64Ju9Yue1a vipmSBPxEWOWopoQPcVfMM6GKGmoPRVvaDECLM7Onuc0x/cNoKC5eIhRCzbU73FqajzB EINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=ZddpD43BjtkzkJZIrpbSLaXDqz2jFXI2TafCpAO40rQ=; b=OIuQH8fQlSZShQjAY/Etlatzv9+Ruw+Fm5CEPCDOez2wz1vBcBkkrNbzB9vM0VXDMO I9AqQRD2gOc/hSb08RyT95DJakbGBCidBehT6TPRBXvoCu9/NDgPt9KXHb47TgRQSJnp DmcLPWKO/DjBDuWE8zYW6vXM1AFGuI04LYifaluOezPFzPnZENfwyrM2JGM0uRrjnbaL TCEI6CwcOo5YRJrER+z7bbxg6JPg7lALyKgjZsnbCCcWGTE+HROMSGJq6Pco67ySNwpE 7499bjK7qgxiK8PLkZI5T+bX4b2Fh6tycIHBhvLPy4UGKX9uKwaZBmCiIvuE4LJzDzTa RGyg== X-Gm-Message-State: APjAAAUm9YbONeeTw1SaBtbU0iYGW/oCLiHFcUPRv+6IGVLbKk73pddT th6tJgJ0jMnI2P6VsbTYAK016HXi X-Google-Smtp-Source: APXvYqxIzP/oa553zzuut+lUfIT4o8ntlofO1/kPRwsewZ1JEuANpLQZawq0F6fjB7giQLLxGyoEpA== X-Received: by 2002:a19:c20e:: with SMTP id l14mr18818526lfc.5.1558398664559; Mon, 20 May 2019 17:31:04 -0700 (PDT) Original-Received: from mars.localdomain (50-37-23-70.grdv.nv.frontiernet.net. [50.37.23.70]) by smtp.gmail.com with ESMTPSA id m21sm4187305ljb.40.2019.05.20.17.31.02 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 20 May 2019 17:31:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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:159597 Archived-At: I use (Global) Whitespace Mode with trailing spaces highlighted (foreground is bold yellow) but *normal* spaces are supposed to be invisible (foreground color is the same as the default background). However, MHTML Mode, within CSS or JavaScript blocks, doesn't respect these settings. The dots representing all spaces display in the default foreground color, or in the color of the nearest highlighted text token. Exact steps to duplicate: Open an HTML file containing CSS and/or JavaScript blocks, with Emacs reset to defaults. ↪ emacs -Q ./foo.html Enable MHTML and Whitespace modes. M-x mhtml-mode RET M-x whitespace-mode RET Set normal spaces to be invisible (foreground color same as background). M-x customize-face RET whitespace-space RET -- then uncheck background color, set foreground color to same as default background (white). Back to the HTML document now... M-x previous-buffer Don't do special highlighting for space indentation. M-x whitespace-toggle-options RET C-i Don't to special highlight for long lines. M-x whitespace-toggle-options RET l Dots representing nontrailing spaces should no longer be visible, but in