From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.bugs Subject: bug#8530: 23.2; Button 'mouse-face property loses Bold and Italic properties Date: Wed, 20 Apr 2011 21:28:39 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1303360658 4096 80.91.229.12 (21 Apr 2011 04:37:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 04:37:38 +0000 (UTC) To: 8530@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 06:37: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 1QCle1-00027x-4m for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 06:37:33 +0200 Original-Received: from localhost ([::1]:52586 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCle0-0000Z7-CB for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 00:37:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCldx-0000Yr-Gw for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCldw-00057V-9k for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCldw-00057R-7w for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:37:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QClVl-0005UN-Sx; Thu, 21 Apr 2011 00:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: PJ Weisberg 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 04:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130336013921087 (code B ref -1); Thu, 21 Apr 2011 04:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2011 04:28:59 +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 1QClVh-0005U1-Px for submit@debbugs.gnu.org; Thu, 21 Apr 2011 00:28:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QClVf-0005Tk-2p for submit@debbugs.gnu.org; Thu, 21 Apr 2011 00:28:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QClVY-0003ni-J4 for submit@debbugs.gnu.org; Thu, 21 Apr 2011 00:28:49 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:59424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QClVY-0003ne-Hj for submit@debbugs.gnu.org; Thu, 21 Apr 2011 00:28:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QClVX-0008Nx-7j for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:28:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QClVV-0003n0-GE for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:28:47 -0400 Original-Received: from smtpauth21.prod.mesa1.secureserver.net ([64.202.165.38]:49784) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QClVV-0003md-6g for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 00:28:45 -0400 Original-Received: (qmail 341 invoked from network); 21 Apr 2011 04:28:41 -0000 Original-Received: from unknown (209.85.161.41) by smtpauth21.prod.mesa1.secureserver.net (64.202.165.38) with ESMTP; 21 Apr 2011 04:28:41 -0000 Original-Received: by fxm18 with SMTP id 18so980522fxm.0 for ; Wed, 20 Apr 2011 21:28:39 -0700 (PDT) Original-Received: by 10.223.72.132 with SMTP id m4mr2849125faj.86.1303360119363; Wed, 20 Apr 2011 21:28:39 -0700 (PDT) Original-Received: by 10.223.93.197 with HTTP; Wed, 20 Apr 2011 21:28:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Apr 2011 00:29:01 -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:45905 Archived-At: (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. In GNU Emacs 23.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-12-11 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10905000 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-k C-k C-k C-k C-k C-k c u s t o m - v a r i a b l e - b u t t o n ) ) C-x C-e M-x b u g g y C-k C-x o f o n t - l o c k - w a r n i n g - f a c e C-e C-x C-e M-x b u g g y M-x r e p o r t SPC e m a c s SPC b u g Recent messages: buggy Quit buggy Making completion list... Quit Mark set buggy [2 times] Creating face editor...done Creating face editor...done Creating face editor...done buggy Load-path shadows: /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/23.2/site-lisp/html-helper-mode/tempo hides /usr/share/emacs/23.2/lisp/tempo /usr/share/emacs/23.2/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs/23.2/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell /usr/share/emacs/23.2/site-lisp/css-mode/css-mode hides /usr/share/emacs/23.2/lisp/textmodes/css-mode Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug pp debug multi-isearch help-mode view help-fns crm thingatpt cus-edit easymenu cus-start cus-load wid-edit tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind font-render-setting x-toolkit x multi-tty emacs) -PJ