From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#42110: Whitespace Newline Face Doesn't Disappear Date: Sun, 28 Jun 2020 17:28:20 +0100 Message-ID: <87r1tz5f4r.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Robin , Reuben Thomas To: 42110@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 28 18:29:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpaB6-000B86-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 18:29:12 +0200 Original-Received: from localhost ([::1]:38138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpaB5-0002mF-As for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 12:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpaAw-0002ki-OO for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 12:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpaAw-0007o3-E6 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpaAw-0005JC-AL for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42110 X-GNU-PR-Package: emacs Original-Received: via spool by 42110-submit@debbugs.gnu.org id=B42110.159336171020359 (code B ref 42110); Sun, 28 Jun 2020 16:29:02 +0000 Original-Received: (at 42110) by debbugs.gnu.org; 28 Jun 2020 16:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:46824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpaAQ-0005II-92 for submit@debbugs.gnu.org; Sun, 28 Jun 2020 12:28:30 -0400 Original-Received: from mail-qk1-f174.google.com ([209.85.222.174]:40227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpaAO-0005I0-An for 42110@debbugs.gnu.org; Sun, 28 Jun 2020 12:28:28 -0400 Original-Received: by mail-qk1-f174.google.com with SMTP id 80so13265232qko.7 for <42110@debbugs.gnu.org>; Sun, 28 Jun 2020 09:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GlY2saWiwgi2iaW1RWC0r7FtWBvTdwve6uRDfTzxGsg=; b=HdmtLuYA5l5tdu6y820V71YRIl9k2LFqvVVV/vLv+Y6491h7I1r46VHESKNPIQ9qt0 A5drUfPYf4xfuncqQrGrkg9Z047Gn22pv0YgeuTT1hwsJAoWyHDdMRS2Xk/So0sJbert v/K6K4EoF2+zITKdsFsP2GxqJzjyrsG6qeb0rGZXvWMII0Wg2OSqVrLkq3hL/EgoLwll zi/65XsnRa7LY0CQ2QNR1pRSRKkyLtSmV1r6aC2dc2IN86rqniZQOEYa7vgh8qge6JSK w/EzC5mugWiJ5KRdKUBwGfvQZFzK/z9iSOdAaZLPR5J8kZqoR+iU4bxip6ninNyJfhyC SENA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=GlY2saWiwgi2iaW1RWC0r7FtWBvTdwve6uRDfTzxGsg=; b=Xff2NssYhS2XSdbAJL3kl45A9LV4Bdgj5kNV7pDmnurviYyRsTwnvp3kpG6kWI1f8x PxlZlLEa5pi8jsQF1Ei5HrvfaY0wthL8pF8u0OefBC962pmFjp0F1kfPAd+ZBmDg8NhW wfag8triKxsVjZ+17pZJqvwqTSxhF/+q0iT3n4sejW9NOfE55SFj9Fr6DxYK09ZIEtNk rPo00IegzVvO0wOJot0sh/vi1OUchMWCq/Pk4OlCHI+F24Qkk913rIjRozQB+J59Tq71 oJLPvC6uQb53KugSwpfRSUzHk69swdZvTgPdGDULdJErRbum6aZFQvJtvrbDV0QtSo52 B6Eg== X-Gm-Message-State: AOAM533VR49q4b1UUkp81uZXxElowO88edlzgK/xwmcT4NAyZSjcriic 7JQymDF2XJ+9DeZeQ+s/jyIQCNkKFPc= X-Google-Smtp-Source: ABdhPJxHj66zIUustAKEr/XQup/qjWmj0T9U/8z7MM+PcbjxSi4Z0siyUeVnhRqAgkAenROSDRlsVg== X-Received: by 2002:a37:444c:: with SMTP id r73mr6528100qka.141.1593361702683; Sun, 28 Jun 2020 09:28:22 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id o50sm7775660qtc.64.2020.06.28.09.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 09:28:22 -0700 (PDT) In-Reply-To: (Robin via "Bug reports for GNU Emacs, the Swiss army knife of text editors"'s message of "Sun, 28 Jun 2020 15:37:01 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182466 Archived-At: found 37467 25.3 forcemerge 37467 42110 quit > From: Robin Choudhury > To: bug-gnu-emacs@gnu.org > Subject: 26.3; Whitespace Newline Face Doesn't Disappear > ----- > > When typing at the bottom of a document, a newline is inserted. An > additional newline is then inserted. Upon insertion, a face higlights > the first newline's emptiness. Typing in the second newline should make > this face disappear. However, it remains. Thanks, I can reproduce this in Emacs versions 25.3-28 inclusive, but not in 24.5. I think this is a duplicate of bug#37467, and sounds like it might be related/due to bug#24745; CCing Reuben. Some minor notes on your configuration: > The whitespace configuration (13.2.2): > (use-package whitespace > :ensure t ^^^^^^^^^ No need for this, lisp/whitespace.el is built-in. > :init > (setq prelude-whitespace nil) > (setq whitespace-line-column 80) > ;; Highlight trailing whitespace > (setq whitespace-style > ;; There's a bug in empty where the face doesn't go away after > ;; typing below the newline. > '(face trailing lines-tail indentation::space tab-mark empty)) > :config > (global-whitespace-mode t)) ^^^ No well behaved mode function documents t as a valid argument for enabling it. Instead, you should write one of the following or equivalent: (global-whitespace-mode) (global-whitespace-mode 1) Here's a simpler reproduction recipe: 0. emacs -Q 1. C-o 2. (progn (setq whitespace-style '(face empty)) (whitespace-mode)) 3. C-x C-e 4. C-m C-m 5. asd Expected: the yellow highlight on the empty line 6 disappears, since line 6 is not at EOB any longer. Observed: the empty line 6 is still highlighted with the whitespace-empty face. Thanks, -- Basil