all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: PJ Weisberg <pj@irregularexpressions.net>
Cc: 8530@debbugs.gnu.org
Subject: bug#8530: 23.2; Button 'mouse-face property loses Bold and Italic properties
Date: Thu, 21 Apr 2011 13:06:56 +0300	[thread overview]
Message-ID: <83fwpb3olb.fsf@gnu.org> (raw)
In-Reply-To: <BANLkTikzrwKFYL3UvfyRyHSs=merXwH9rg@mail.gmail.com>

> Date: Wed, 20 Apr 2011 21:28:39 -0700
> From: PJ Weisberg <pj@irregularexpressions.net>
> 
> (defun buggy-button()
>   (interactive)
>   (insert-text-button "MyButton"
> 		      'face 'font-lock-function-name-face
> 		      'mouse-face 'font-lock-warning-face))
> 
> Evaluate that, then call buggy-button to insert a button.
> 
> font-lock-function-name-face is blue
> font-lock-warning-face is red/bold
> 
> The button that was inserted has a blue face, but when you hold the
> mouse over it it turns red, but not bold.
> 
> The manual says that mouse-face is "merged with the usual button face",
> so I expected this:
> 
> (defun buggy-button()
>   (interactive)
>   (insert-text-button "MyButton"
> 		      'face 'font-lock-function-name-face
> 		      'mouse-face 'bold-italic))
> 
> To result in a button that is blue, bold, and italic when the mouse is
> over it.  Instead, I get a button that goes back to the default face
> when the mouse is over it.

Well, "merged with the usual button face" for some value of "merge"...
We never use any information from the mouse-face except its colors.
So we currently don't support bold and italic attributes in that face;
they are simply ignored.

We could close this bug report, or we could leave it open as a
wishlist.





  reply	other threads:[~2011-04-21 10:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-21  4:28 bug#8530: 23.2; Button 'mouse-face property loses Bold and Italic properties PJ Weisberg
2011-04-21 10:06 ` Eli Zaretskii [this message]
2011-04-21 18:38   ` PJ Weisberg
2011-04-21 19:24     ` Eli Zaretskii
2011-04-21 20:05       ` Drew Adams
2011-05-11 15:17       ` PJ Weisberg
2011-08-09 21:15       ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fwpb3olb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=8530@debbugs.gnu.org \
    --cc=pj@irregularexpressions.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.