From unknown Sun Jun 15 08:37:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35815: 26.2; mhtml-mode (in HTML+CSS and HTML+JS) doesn't respect Whitespace Mode face settings 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-GNU-PR-Keywords: To: 35815@debbugs.gnu.org X-Debbugs-Original-To: GNU Emacs Bug Tracker Received: via spool by submit@debbugs.gnu.org id=B.155839868127426 (code B ref -1); Tue, 21 May 2019 00:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2019 00:31:21 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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) 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) Message-ID: From: Andrew T Date: Mon, 20 May 2019 17:30:59 -0700 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::132 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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