all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A bug set-face-background
@ 2013-11-07  0:39 Kazu Yamamoto
  2013-11-07  0:49 ` Aaron Ecay
  2013-11-07  0:49 ` Michael Heerdegen
  0 siblings, 2 replies; 8+ messages in thread
From: Kazu Yamamoto @ 2013-11-07  0:39 UTC (permalink / raw)
  To: emacs-devel

Hi,

Recent changes to Emacs HEAD made set-face-background strange.

The following function sets the foreground of mode-line to "white":

	(set-face-foreground 'mode-line "white")

But then the following function does not set the background of
mode-lien to "white" and turns the foreground to the original.

	(set-face-background 'mode-line "white")

This bug does not exist at least on Nov 1.

--Kazu




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  0:39 A bug set-face-background Kazu Yamamoto
@ 2013-11-07  0:49 ` Aaron Ecay
  2013-11-07  1:21   ` Kazu Yamamoto
  2013-11-07  0:49 ` Michael Heerdegen
  1 sibling, 1 reply; 8+ messages in thread
From: Aaron Ecay @ 2013-11-07  0:49 UTC (permalink / raw)
  To: Kazu Yamamoto, emacs-devel

Hi Kazu,

I think this is a manifestation of bug 15815.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15815

-- 
Aaron Ecay



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  0:39 A bug set-face-background Kazu Yamamoto
  2013-11-07  0:49 ` Aaron Ecay
@ 2013-11-07  0:49 ` Michael Heerdegen
  2013-11-07  1:18   ` Kazu Yamamoto
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2013-11-07  0:49 UTC (permalink / raw)
  To: emacs-devel

Hi Kazu,

> Recent changes to Emacs HEAD made set-face-background strange.
>
> The following function sets the foreground of mode-line to "white":
>
> 	(set-face-foreground 'mode-line "white")
>
> But then the following function does not set the background of
> mode-lien to "white" and turns the foreground to the original.
>
> 	(set-face-background 'mode-line "white")
>
> This bug does not exist at least on Nov 1.

I experience that since some time, Emacs display "overrides" faces that
differ only slightly from the background and displays them in black or
white instead, to keep things readable.  What you see is presumably a
symptom of this behavior.


Regards,

Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  0:49 ` Michael Heerdegen
@ 2013-11-07  1:18   ` Kazu Yamamoto
  2013-11-07  6:00     ` Jan Djärv
  0 siblings, 1 reply; 8+ messages in thread
From: Kazu Yamamoto @ 2013-11-07  1:18 UTC (permalink / raw)
  To: michael_heerdegen; +Cc: emacs-devel

Hi Michael,

> I experience that since some time, Emacs display "overrides" faces that
> differ only slightly from the background and displays them in black or
> white instead, to keep things readable.  What you see is presumably a
> symptom of this behavior.

I need to make things unreadable because I'm using this code for
presentation. Unnecessary things for presentation should be invisible.

--Kazu



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  0:49 ` Aaron Ecay
@ 2013-11-07  1:21   ` Kazu Yamamoto
  0 siblings, 0 replies; 8+ messages in thread
From: Kazu Yamamoto @ 2013-11-07  1:21 UTC (permalink / raw)
  To: aaronecay; +Cc: emacs-devel

Hi Aaron,

> I think this is a manifestation of bug 15815.
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15815

Oh, thanks. Probably the same problem.

--Kazu



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  1:18   ` Kazu Yamamoto
@ 2013-11-07  6:00     ` Jan Djärv
  2013-11-07 15:55       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Djärv @ 2013-11-07  6:00 UTC (permalink / raw)
  To: "Kazu Yamamoto (山本和彦)"
  Cc: Michael Heerdegen, emacs-devel@gnu.org devel

Hello.

7 nov 2013 kl. 02:18 skrev Kazu Yamamoto (山本和彦) <kazu@iij.ad.jp>:

> Hi Michael,
> 
>> I experience that since some time, Emacs display "overrides" faces that
>> differ only slightly from the background and displays them in black or
>> white instead, to keep things readable.  What you see is presumably a
>> symptom of this behavior.
> 
> I need to make things unreadable because I'm using this code for
> presentation. Unnecessary things for presentation should be invisible.
> 

Use invisible text property?

	Jan D.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07  6:00     ` Jan Djärv
@ 2013-11-07 15:55       ` Eli Zaretskii
  2013-11-07 16:05         ` Jan Djärv
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2013-11-07 15:55 UTC (permalink / raw)
  To: Jan Djärv; +Cc: michael_heerdegen, kazu, emacs-devel

> From: Jan Djärv <jan.h.d@swipnet.se>
> Date: Thu, 7 Nov 2013 07:00:43 +0100
> Cc: Michael Heerdegen <michael_heerdegen@web.de>,
> 	"emacs-devel@gnu.org devel" <emacs-devel@gnu.org>
> 
> Hello.
> 
> 7 nov 2013 kl. 02:18 skrev Kazu Yamamoto (山本和彦) <kazu@iij.ad.jp>:
> 
> > Hi Michael,
> > 
> >> I experience that since some time, Emacs display "overrides" faces that
> >> differ only slightly from the background and displays them in black or
> >> white instead, to keep things readable.  What you see is presumably a
> >> symptom of this behavior.
> > 
> > I need to make things unreadable because I'm using this code for
> > presentation. Unnecessary things for presentation should be invisible.
> > 
> 
> Use invisible text property?

I think customizing the corresponding face(s) should also work, no?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A bug set-face-background
  2013-11-07 15:55       ` Eli Zaretskii
@ 2013-11-07 16:05         ` Jan Djärv
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Djärv @ 2013-11-07 16:05 UTC (permalink / raw)
  To: Eli Zaretskii
  Cc: Michael Heerdegen,
	"Kazu Yamamoto (山本和彦)",
	emacs-devel@gnu.org devel

Hello.

7 nov 2013 kl. 16:55 skrev Eli Zaretskii <eliz@gnu.org>:

>> From: Jan Djärv <jan.h.d@swipnet.se>
>> Date: Thu, 7 Nov 2013 07:00:43 +0100
>> Cc: Michael Heerdegen <michael_heerdegen@web.de>,
>> 	"emacs-devel@gnu.org devel" <emacs-devel@gnu.org>
>> 
>> Hello.
>> 
>> 7 nov 2013 kl. 02:18 skrev Kazu Yamamoto (山本和彦) <kazu@iij.ad.jp>:
>> 
>>> Hi Michael,
>>> 
>>>> I experience that since some time, Emacs display "overrides" faces that
>>>> differ only slightly from the background and displays them in black or
>>>> white instead, to keep things readable.  What you see is presumably a
>>>> symptom of this behavior.
>>> 
>>> I need to make things unreadable because I'm using this code for
>>> presentation. Unnecessary things for presentation should be invisible.
>>> 
>> 
>> Use invisible text property?
> 
> I think customizing the corresponding face(s) should also work, no?

Well, yes there is a bug here.  But I was thinking of marking text that has foreground == background.  The region face may have distant-foreground, and thus it becomes visible.
Come to think of it, marking such text would make it visible anyway if region face only defines background.  So text is not properly hidden IMHO.

	Jan D.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-07 16:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07  0:39 A bug set-face-background Kazu Yamamoto
2013-11-07  0:49 ` Aaron Ecay
2013-11-07  1:21   ` Kazu Yamamoto
2013-11-07  0:49 ` Michael Heerdegen
2013-11-07  1:18   ` Kazu Yamamoto
2013-11-07  6:00     ` Jan Djärv
2013-11-07 15:55       ` Eli Zaretskii
2013-11-07 16:05         ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.