unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* compilation-mode `mouse-face' property is hardcoded to `highlight' face
@ 2005-12-16 19:20 Drew Adams
  2005-12-17  1:57 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2005-12-16 19:20 UTC (permalink / raw)


In compilation-mode buffers (e.g. grep-mode), the `mouse-face' property is
hard-coded to use the `highlight' face. This hard-coding makes it hard for a
user to use a different `mouse-face' in these buffers.

Could we instead use a new face as the `mouse-face' property value in these
buffers, so that users can easily customize the face to be used for
mouseover highlighting there? Currently, one can only customize the
`highlight' face, which affects all buffers.

This change should only require:

1) adding a new face (defface), say `compilation-mouseover'
2) replacing `highlight' by `compilation-mouseover' in `compile.el'

The `highlight' face could still be used to define the initial value of the
new face.

(Why bother to have a `mouse-face' text property that can have different
values, if it is going to be hardcoded here and there?)

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

* Re: compilation-mode `mouse-face' property is hardcoded to `highlight' face
  2005-12-16 19:20 compilation-mode `mouse-face' property is hardcoded to `highlight' face Drew Adams
@ 2005-12-17  1:57 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2005-12-17  1:57 UTC (permalink / raw)
  Cc: Emacs-Devel

> In compilation-mode buffers (e.g. grep-mode), the `mouse-face' property is
> hard-coded to use the `highlight' face.

Yes, like everywhere else I've seen.

> (Why bother to have a `mouse-face' text property that can have different
> values, if it is going to be hardcoded here and there?)

I guess there was no good reason to hardcode it at a lower level.


        Stefan

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

end of thread, other threads:[~2005-12-17  1:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-16 19:20 compilation-mode `mouse-face' property is hardcoded to `highlight' face Drew Adams
2005-12-17  1:57 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).