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#35797: 26.2; Adaptive Wrap does not respect Whitespace Mode faces Date: Sat, 18 May 2019 20:18:54 -0700 Message-ID: <8ec78d6f3e44bd3484c986dc2535a643536c499e.camel@gmail.com> 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="122049"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) To: 35797@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 08:06:23 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 1hSExh-000VXs-OB for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 08:06:22 +0200 Original-Received: from localhost ([127.0.0.1]:44473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSExg-0001oU-OQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 02:06:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSExP-0001ic-Uk for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 02:06:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSExO-00023c-B9 for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 02:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSExO-00023W-8P for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 02:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSExO-0005mZ-1U for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 02:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew T Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2019 06:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35797 X-GNU-PR-Package: emacs X-Debbugs-Original-To: GNU Emacs Bug Tracker Original-Received: via spool by submit@debbugs.gnu.org id=B.155824590122130 (code B ref -1); Sun, 19 May 2019 06:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 May 2019 06:05:01 +0000 Original-Received: from localhost ([127.0.0.1]:33621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSEwO-0005kj-Li for submit@debbugs.gnu.org; Sun, 19 May 2019 02:05:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSCLu-0001K3-0d for submit@debbugs.gnu.org; Sat, 18 May 2019 23:19:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34732) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hSCLo-0002Gy-Tb for submit@debbugs.gnu.org; Sat, 18 May 2019 23:19:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSCLn-00053W-9T for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 23:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSCLl-0002F1-MZ for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 23:19:03 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:33629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSCLl-0002E9-Dw for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 23:19:01 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id n17so17659798edb.0 for ; Sat, 18 May 2019 20:19:00 -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=QtbQVdTz0ObgmyKcix3aS3ct7yt0nauWQupGd+FcIig=; b=pEhPJzIPjczCg+MHehrl2GQncO4RzoC45UJk+ywbb97MZX0wPxLPBJ2OKb8/CKyZlh UX7ChtFTI4iCoSw4/UiyQMWx3S0EnCqnDsnIeavBFoAte75KvND4eJnYNtNjnxBN8liq gGNyAxW6nJxX7EVcPOnc6KRm4Mel7XON3Y2jq6O1gZex0mGF3kdkakwUu5L347Iffseo GaH4XPdXV+QmFKyNFGcWrHQoyr/9+LHdw+/AuGc16QchmenwqZxzSlCSU32kVCdGb13r N1F2eb6ySKYLjmJ2Co27z9LEUOfuXxppHgDro93RBkXRJ9Sz8a8bOdWCDa6sVqt58hIz 3kiQ== 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=QtbQVdTz0ObgmyKcix3aS3ct7yt0nauWQupGd+FcIig=; b=CMT7dkAzqSXq4t70D/Qp2Ue6ble4qGy9ox5VGAQjn/d1QQE0Jqo6jJl9s+SF57NccW A/uTpQc0JIQhuKMT81ST9xxloQyV5gmQtFeadpdHImKucfYGOrmcIc0H7/SiwHn1WB34 hyNLjh/Mf3/lE6j9SJD/jE/73zme5P1CIlvJxLs1rQeDh17kJZOscS3sgv9Qx3kYagqN bnIAtnk4PmpFmEjtOsOjMg+pHZWGoC3k8qP2y9wuKWbOEk3/omcG+kqg0yqNE53ckMs7 93nqqMotPra4EpnTsma1ilzWYeYjkXo7DxE7p0xfKf9L/kSb/Nojzm+TRv2xriQ9VkKY 4J1w== X-Gm-Message-State: APjAAAWsazkEldGWWYOzgsG6hXD0kL0CUGroMAIPAteTCLo3Tqmc3BSB dnowERSEFYiRujmhv/dHHMUU+tDo X-Google-Smtp-Source: APXvYqyOnJmOrmKaODjLbtwjI5yafVMT51L/KwyNQuBiki5xhV+OXGZnLinwEzugD17BNusa5CTUPg== X-Received: by 2002:a50:e101:: with SMTP id h1mr68269675edl.180.1558235939309; Sat, 18 May 2019 20:18:59 -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 d33sm4403839ede.10.2019.05.18.20.18.57 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 18 May 2019 20:18:58 -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-Mailman-Approved-At: Sun, 19 May 2019 02:04:58 -0400 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:159526 Archived-At: Appears to be similar to bug #15155: "24.3; wrap-prefix in adaptive- wrap-prefix-mode with variable-pitch has wrong face" < https://lists.gnu.org/archive/html/bug-gnu-emacs/2013-08/msg00716.html> I normally use `adaptive-wrap-prefix-mode` via hook to `visual-line- mode`. And I use `global-whitespace-mode` to subtly show any tabs and newline characters in general (displayed in a color close to the background color). Spaces are normally invisible (exactly same color as background), except trailing spaces are highlighted. When putting these settings together and soft-wrapping a long indented line, the wrap prefix shows a bunch of white dots for all the space characters being displayed. These are not trailing spaces, so these dots are not highlighted as such, but they normally shouldn't be visible at all with my whitespace face configurations. You can see the effect even without messing around with faces or visual-line-mode hooks, though: emacs -Q M-x package-install RET adaptive-wrap RET M-x adaptive-wrap-prefix-mode RET M-x whitespace-mode RET ...Then write a long indented line so that it will wrap, and see see how the wrap prefix is a different color from the default whitespace display characters. I'll also include some screenshots here: The below was generated while doing my `emacs -Q` test. Let me know if you need any other information to help debug this issue. In GNU Emacs 26.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.8) of 2019-04-30 built on buildvm-06.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12004000 System Description: Fedora release 30 (Thirty) Recent messages: You can run the command ‘whitespace-mode’ with M-x whit-m RET Whitespace mode enabled in current buffer Adaptive-Wrap-Prefix mode enabled in current buffer Adaptive-Wrap-Prefix mode disabled in current buffer Making completion list... Quit Adaptive-Wrap-Prefix mode enabled in current buffer Making completion list... [2 times] delete-backward-char: Text is read-only [3 times] Making completion list... Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with- png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: whitespace-mode: t adaptive-wrap-prefix-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail disp-table whitespace adaptive-wrap compile comint ansi-color ring easy-mmode autoload radix-tree lisp-mnt mm-archive message dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail- utils network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cus-edit cus-start cus-load wid-edit finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print- readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 144118 30183) (symbols 48 24599 2) (miscs 40 57 170) (strings 32 43177 2424) (string-bytes 1 1138616) (vectors 16 24993) (vector-slots 8 1274945 189176) (floats 8 61 278) (intervals 56 525 68) (buffers 992 13))