GNU bug report logs - #8003
23.1; Background of mouse is incorrect

Previous Next

Package: emacs;

Reported by: Huafeng Zhou <HZhou <at> pixelworks.com>

Date: Tue, 8 Feb 2011 08:19:02 UTC

Severity: normal

Tags: unreproducible

Found in version 23.1

To reply to this bug, email your comments to 8003 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Tue, 08 Feb 2011 08:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Huafeng Zhou <HZhou <at> pixelworks.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Feb 2011 08:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Huafeng Zhou <HZhou <at> pixelworks.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 23.1; Background of mouse is incorrect
Date: Mon, 7 Feb 2011 22:29:26 -0800
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

After the customizing of mouse face, the face of mouse is saved as following
in .emacs file.

'(mouse ((t (:background "purple" :foreground "black" :box (:line-width 2 :color "black" :style released-button) :underline "black")))))

But the background options is not effective when emacs is started again. Backgroun is always "white".

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-30 on rothera, modified by Debian
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40300000
configured using `configure  '--build=i486-linux-gnu' '--host=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.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_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: @im=ibus
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <help-menu> <send-emacs-bug
-report>

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-intl-fonts.el (source)...done
Loading /etc/emacs/site-start.d/50global.el (source)...done
Loading /etc/emacs/site-start.d/50maxima-emacs.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
/usr/bin/mail is not an executable.  Setting mail-interactive to t.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Tue, 08 Feb 2011 18:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Huafeng Zhou <HZhou <at> pixelworks.com>
Cc: 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Tue, 08 Feb 2011 13:54:53 -0500
Huafeng Zhou wrote:

> '(mouse ((t (:background "purple" :foreground "black" :box
> (:line-width 2 :color "black" :style released-button) :underline "black")))))
>
> But the background options is not effective when emacs is started
> again. Backgroun is always "white".
[...]
> In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
>  of 2010-03-30 on rothera, modified by Debian

I could not reproduce a problem with Debian's 23.2+1-7. As a guess,
perhaps some window manager / desktop environment theme is imposing
itself.




Added tag(s) unreproducible. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Feb 2011 18:55:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Wed, 09 Feb 2011 00:52:01 GMT) Full text and rfc822 format available.

Message #13 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Huafeng Zhou <HZhou <at> pixelworks.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "8003 <at> debbugs.gnu.org" <8003 <at> debbugs.gnu.org>
Subject: RE: bug#8003: 23.1; Background of mouse is incorrect
Date: Tue, 8 Feb 2011 17:00:18 -0800
The Emacs is distributed by Ubuntu 10.10.
Window manager: GNOME Version:2.32.0
Default display manager: XDM 1:1.1.8-6ubuntu2

-----Original Message-----
From: Glenn Morris [mailto:rgm <at> gnu.org] 
Sent: Wednesday, February 09, 2011 3:55 AM
To: Huafeng Zhou
Cc: 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect

Huafeng Zhou wrote:

> '(mouse ((t (:background "purple" :foreground "black" :box
> (:line-width 2 :color "black" :style released-button) :underline "black")))))
>
> But the background options is not effective when emacs is started
> again. Backgroun is always "white".
[...]
> In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
>  of 2010-03-30 on rothera, modified by Debian

I could not reproduce a problem with Debian's 23.2+1-7. As a guess,
perhaps some window manager / desktop environment theme is imposing
itself.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Wed, 16 Feb 2011 10:19:01 GMT) Full text and rfc822 format available.

Message #16 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Huafeng Zhou <HZhou <at> pixelworks.com>
To: 'Glenn Morris' <rgm <at> gnu.org>
Cc: "'8003 <at> debbugs.gnu.org'" <8003 <at> debbugs.gnu.org>
Subject: RE: bug#8003: 23.1; Background of mouse is incorrect
Date: Wed, 16 Feb 2011 02:27:33 -0800
Again. It is found that mouse-color is defined in default-frame-alist as following.
(setq default-frame-alist
      (append (list '(foreground-color . "black")
            '(mouse-color . "white")
            '(cursor-color . "black")
            '(width . 120)
            '(height . 50)
       default-frame-alist))
The above 'mouse-color' was effective although the following were defined in parallel.
'(mouse ((t (:background "blue" :foreground "black" :box (:line-width 2 :color "black" :style released-button) :underline "black")))))
The problem was not there in former version of Emacs such as 21.3.1.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sat, 28 Sep 2019 18:16:03 GMT) Full text and rfc822 format available.

Message #19 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Huafeng Zhou <HZhou <at> pixelworks.com>
Cc: 'Glenn Morris' <rgm <at> gnu.org>,
 "'8003 <at> debbugs.gnu.org'" <8003 <at> debbugs.gnu.org>
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sat, 28 Sep 2019 20:15:30 +0200
Huafeng Zhou <HZhou <at> pixelworks.com> writes:

> Again. It is found that mouse-color is defined in default-frame-alist as following.
> (setq default-frame-alist
>       (append (list '(foreground-color . "black")
>             '(mouse-color . "white")
>             '(cursor-color . "black")
>             '(width . 120)
>             '(height . 50)
>        default-frame-alist))
> The above 'mouse-color' was effective although the following were defined in parallel.
> '(mouse ((t (:background "blue" :foreground "black" :box (:line-width 2 :color "black" :style released-button) :underline "black")))))

Hm, I tried reproducing this now in Emacs 27, but then I realised I
didn't know what to look for.  What is the `mouse' face used for?  It
can't be the mouse pointer, I guess, and it's not used for
highlighting.  I tried grepping, but the only usage I could find was in
speedbar.el.

Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sat, 28 Sep 2019 19:05:02 GMT) Full text and rfc822 format available.

Message #22 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sat, 28 Sep 2019 22:04:33 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 28 Sep 2019 20:15:30 +0200
> Cc: "'8003 <at> debbugs.gnu.org'" <8003 <at> debbugs.gnu.org>
> 
> Huafeng Zhou <HZhou <at> pixelworks.com> writes:
> 
> > Again. It is found that mouse-color is defined in default-frame-alist as following.
> > (setq default-frame-alist
> >       (append (list '(foreground-color . "black")
> >             '(mouse-color . "white")
> >             '(cursor-color . "black")
> >             '(width . 120)
> >             '(height . 50)
> >        default-frame-alist))
> > The above 'mouse-color' was effective although the following were defined in parallel.
> > '(mouse ((t (:background "blue" :foreground "black" :box (:line-width 2 :color "black" :style released-button) :underline "black")))))
> 
> Hm, I tried reproducing this now in Emacs 27, but then I realised I
> didn't know what to look for.  What is the `mouse' face used for?  It
> can't be the mouse pointer, I guess, and it's not used for
> highlighting.  I tried grepping, but the only usage I could find was in
> speedbar.el.

The 'mouse' face's background color is the color of the mouse pointer.
See the description of 'mouse-color' frame parameter in the node "Font
and Color Parameters" in the ELisp manual.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sun, 29 Sep 2019 10:32:01 GMT) Full text and rfc822 format available.

Message #25 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sun, 29 Sep 2019 12:31:16 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> The 'mouse' face's background color is the color of the mouse pointer.
> See the description of 'mouse-color' frame parameter in the node "Font
> and Color Parameters" in the ELisp manual.

I see; thanks.  But if I change that face, I can't see anything changing
with the mouse pointer.  Does it depend on, er, what graphics library
and OS you're using?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sun, 29 Sep 2019 10:59:02 GMT) Full text and rfc822 format available.

Message #28 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sun, 29 Sep 2019 13:58:24 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: HZhou <at> pixelworks.com,  8003 <at> debbugs.gnu.org
> Date: Sun, 29 Sep 2019 12:31:16 +0200
> 
> > The 'mouse' face's background color is the color of the mouse pointer.
> > See the description of 'mouse-color' frame parameter in the node "Font
> > and Color Parameters" in the ELisp manual.
> 
> I see; thanks.  But if I change that face, I can't see anything changing
> with the mouse pointer.  Does it depend on, er, what graphics library
> and OS you're using?

Yes, I think it's only visible in non-toolkit builds or something.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sun, 29 Sep 2019 11:57:01 GMT) Full text and rfc822 format available.

Message #31 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sun, 29 Sep 2019 13:56:29 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I see; thanks.  But if I change that face, I can't see anything changing
>> with the mouse pointer.  Does it depend on, er, what graphics library
>> and OS you're using?
>
> Yes, I think it's only visible in non-toolkit builds or something.

I tried a -with-x-toolkit=no, which gave me

  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          none

and still no difference that I can see with the mouse pointer.

Neither does

(setq default-frame-alist
      (append (list '(foreground-color . "red")
		    '(mouse-color . "white")
		    '(cursor-color . "blue")
		    '(width . 120)
		    '(height . 50))
	      default-frame-alist))

affect the mouse pointer here...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Sun, 29 Sep 2019 12:34:02 GMT) Full text and rfc822 format available.

Message #34 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Sun, 29 Sep 2019 15:33:05 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: HZhou <at> pixelworks.com,  8003 <at> debbugs.gnu.org
> Date: Sun, 29 Sep 2019 13:56:29 +0200
> 
> I tried a -with-x-toolkit=no, which gave me
> 
>   What window system should Emacs use?                    x11
>   What toolkit should Emacs use?                          none
> 
> and still no difference that I can see with the mouse pointer.
> 
> Neither does
> 
> (setq default-frame-alist
>       (append (list '(foreground-color . "red")
> 		    '(mouse-color . "white")
> 		    '(cursor-color . "blue")
> 		    '(width . 120)
> 		    '(height . 50))
> 	      default-frame-alist))
> 
> affect the mouse pointer here...

Does it work to invoke Emacs with --mouse-color=white?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Mon, 30 Sep 2019 04:18:02 GMT) Full text and rfc822 format available.

Message #37 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Mon, 30 Sep 2019 06:17:47 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Does it work to invoke Emacs with --mouse-color=white?

No, the mouse pointer remains stubbornly black with a white outline.  I
wonder whether perhaps Gnome (or something) is overriding the mouse
pointer.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Mon, 30 Sep 2019 07:10:02 GMT) Full text and rfc822 format available.

Message #40 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Mon, 30 Sep 2019 10:09:14 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: HZhou <at> pixelworks.com,  8003 <at> debbugs.gnu.org
> Date: Mon, 30 Sep 2019 06:17:47 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Does it work to invoke Emacs with --mouse-color=white?
> 
> No, the mouse pointer remains stubbornly black with a white outline.  I
> wonder whether perhaps Gnome (or something) is overriding the mouse
> pointer.

Could be, I know almost nothing about this X stuff.

Can you at least see in GDB that x_set_mouse_color is called and does
its job of loading the requested color, when you either invoke Emacs
with --mouse-color=white or invoke the set-mouse-color function from
within a running session?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Mon, 30 Sep 2019 13:47:01 GMT) Full text and rfc822 format available.

Message #43 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Mon, 30 Sep 2019 15:46:05 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Can you at least see in GDB that x_set_mouse_color is called and does
> its job of loading the requested color, when you either invoke Emacs
> with --mouse-color=white or invoke the set-mouse-color function from
> within a running session?

Yup; it's called (and I can see that the colour it tries to set changes
if I vary --mouse-color), but there's no effect on this Gnome-ish
laptop.  I haven't tried in other environments.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8003; Package emacs. (Mon, 30 Sep 2019 14:20:03 GMT) Full text and rfc822 format available.

Message #46 received at 8003 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: HZhou <at> pixelworks.com, 8003 <at> debbugs.gnu.org
Subject: Re: bug#8003: 23.1; Background of mouse is incorrect
Date: Mon, 30 Sep 2019 17:19:26 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: HZhou <at> pixelworks.com,  8003 <at> debbugs.gnu.org
> Date: Mon, 30 Sep 2019 15:46:05 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Can you at least see in GDB that x_set_mouse_color is called and does
> > its job of loading the requested color, when you either invoke Emacs
> > with --mouse-color=white or invoke the set-mouse-color function from
> > within a running session?
> 
> Yup; it's called (and I can see that the colour it tries to set changes
> if I vary --mouse-color), but there's no effect on this Gnome-ish
> laptop.  I haven't tried in other environments.

OK, thanks.  Maybe someone could try this in other environments, and
we could then update the documentation with the appropriate caveats.




This bug report was last modified 5 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.