unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* can we please define a face for compile.el mouseover?
@ 2011-02-15 19:26 Drew Adams
  2011-02-15 19:42 ` Eli Zaretskii
  2011-02-15 21:12 ` Stefan Monnier
  0 siblings, 2 replies; 9+ messages in thread
From: Drew Adams @ 2011-02-15 19:26 UTC (permalink / raw)
  To: emacs-devel

Can we please define a face to be used for the `mouse-face' property in the
`compile.el' code?

It doesn't make sense to hard-code `highlight' in this code.  For a user to be
able to use a different face for mouseover s?he needs to duplicate EACH of the
following function definitions and then simply replace `highlight' in the code
by a face specific to compilation and grep:

 compilation-directory-properties
 compilation-internal-error-properties
 compilation-(-)compat-error-properties
   (`--' for Emacs 24; else `-')

And if the user wants the fix to work also for other Emacs releases, then s?he
needs to duplicate and tweak the definitions twice (the Emacs 24 code is
different, including the above function renaming).

That's silly.  Users should be able to just customize the face used for
mouseover highlighting.  Example face definition:

(defface compilation-mouseover '((t (:inherit highlight)))
  "Face used to highlight text the mouse is over in compilation modes."
  :group 'compilation :group 'font-lock-highlighting-faces)

I've requested this before, but it's always been resisted or ignored.  I see no
reason not to let users customize this.  (We DTRT for mode-line mouseover, BTW:
we define face `mode-line-highlight'.)






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

end of thread, other threads:[~2011-02-19 21:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 19:26 can we please define a face for compile.el mouseover? Drew Adams
2011-02-15 19:42 ` Eli Zaretskii
2011-02-15 22:43   ` Drew Adams
2011-02-15 21:12 ` Stefan Monnier
2011-02-15 22:41   ` Drew Adams
2011-02-16  2:32     ` Stefan Monnier
2011-02-16  4:03       ` Drew Adams
2011-02-19 21:11         ` Stefan Monnier
2011-02-19 21:32           ` Chong Yidong

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).