From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8530: 23.2; Button 'mouse-face property loses Bold and Italic properties Date: Thu, 21 Apr 2011 13:06:56 +0300 Message-ID: <83fwpb3olb.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1303380457 14064 80.91.229.12 (21 Apr 2011 10:07:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 10:07:37 +0000 (UTC) Cc: 8530@debbugs.gnu.org To: PJ Weisberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 12:07:33 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCqnM-0001j6-Kw for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 12:07:32 +0200 Original-Received: from localhost ([::1]:44903 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCqnM-0007Jw-3T for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 06:07:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCqnJ-0007Jg-5h for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 06:07:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCqnI-0003nN-7E for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 06:07:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCqnI-0003nI-5k for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 06:07:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QCqms-0004cQ-2w; Thu, 21 Apr 2011 06:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2011 10:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8530-submit@debbugs.gnu.org id=B8530.130338039417716 (code B ref 8530); Thu, 21 Apr 2011 10:07:02 +0000 Original-Received: (at 8530) by debbugs.gnu.org; 21 Apr 2011 10:06:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCqmQ-0004bg-44 for submit@debbugs.gnu.org; Thu, 21 Apr 2011 06:06:34 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCqmO-0004bS-84 for 8530@debbugs.gnu.org; Thu, 21 Apr 2011 06:06:33 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LJZ00100YP1FU00@a-mtaout20.012.net.il> for 8530@debbugs.gnu.org; Thu, 21 Apr 2011 13:06:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.129.240]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJZ00MCYYQHX7F0@a-mtaout20.012.net.il>; Thu, 21 Apr 2011 13:06:19 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Apr 2011 06:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45915 Archived-At: > Date: Wed, 20 Apr 2011 21:28:39 -0700 > From: PJ Weisberg > > (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.