GNU bug report logs - #13875
24.3.50; whitespace-mode should use 'prepend for whitespace-line face

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Tue, 5 Mar 2013 16:38:02 UTC

Severity: minor

Tags: patch

Found in version 24.3.50

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13875 in the body.
You can then email your comments to 13875 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13875; Package emacs. (Tue, 05 Mar 2013 16:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Mar 2013 16:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; whitespace-mode should use 'prepend for whitespace-line face
Date: Tue, 05 Mar 2013 20:36:21 +0400
Tags: patch

Right now, there's no way to tell whitespace-mode to keep the foreground
color of the underlying text when highlighting lines that are too long.

Related SO question:
http://stackoverflow.com/questions/14636786/how-to-unset-the-foreground-color-of-whitespace-mode-for-emacs

With the patch at the bottom applied, the following code will make it
keep the text's foreground and just change background:

  (set-face-attribute 'whitespace-line nil :foreground nil
                                           :background "gainsboro")

(Changing :backround is not necessary, but gray20 looks bad with the
default foreground color.)

=== modified file 'lisp/whitespace.el'
--- lisp/whitespace.el	2013-01-11 23:08:55 +0000
+++ lisp/whitespace.el	2013-03-05 16:25:51 +0000
@@ -2291,7 +2291,7 @@
 	 (if (memq 'lines whitespace-active-style)
 	     0				; whole line
 	   2)				; line tail
-	 whitespace-line t))
+	 whitespace-line 'prepend))
        t))
     (cond
      ((memq 'space-before-tab whitespace-active-style)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13875; Package emacs. (Sun, 17 Mar 2013 22:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 13875 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 13875 <at> debbugs.gnu.org
Subject: Re: bug#13875: 24.3.50;
	whitespace-mode should use 'prepend for whitespace-line face
Date: Sun, 17 Mar 2013 18:27:45 -0400
> -	 whitespace-line t))
> +	 whitespace-line 'prepend))

No objection on my part,


        Stefan




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Tue, 19 Mar 2013 04:26:02 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Gutov <dgutov <at> yandex.ru>:
bug acknowledged by developer. (Tue, 19 Mar 2013 04:26:02 GMT) Full text and rfc822 format available.

Message #13 received at 13875-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 13875-done <at> debbugs.gnu.org
Subject: Re: bug#13875: 24.3.50;
	whitespace-mode should use 'prepend for whitespace-line face
Date: Tue, 19 Mar 2013 08:24:05 +0400
Version: 24.4

On 18.03.2013 2:27, Stefan Monnier wrote:
>> -	 whitespace-line t))
>> +	 whitespace-line 'prepend))
>
> No objection on my part,

Thanks, installed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 16 Apr 2013 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.