unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8003: 23.1; Background of mouse is incorrect
@ 2011-02-08  6:29 Huafeng Zhou
  2011-02-08 18:54 ` Glenn Morris
  0 siblings, 1 reply; 14+ messages in thread
From: Huafeng Zhou @ 2011-02-08  6:29 UTC (permalink / raw)
  To: 8003

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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2011-02-08  6:29 bug#8003: 23.1; Background of mouse is incorrect Huafeng Zhou
@ 2011-02-08 18:54 ` Glenn Morris
  2011-02-09  1:00   ` Huafeng Zhou
       [not found]   ` <2D2144648E51FB478DC9088FF4600CE00394BE33@sjcwin75.pixelworks.com>
  0 siblings, 2 replies; 14+ messages in thread
From: Glenn Morris @ 2011-02-08 18:54 UTC (permalink / raw)
  To: Huafeng Zhou; +Cc: 8003

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.





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

* bug#8003: 23.1; Background of mouse is incorrect
  2011-02-08 18:54 ` Glenn Morris
@ 2011-02-09  1:00   ` Huafeng Zhou
       [not found]   ` <2D2144648E51FB478DC9088FF4600CE00394BE33@sjcwin75.pixelworks.com>
  1 sibling, 0 replies; 14+ messages in thread
From: Huafeng Zhou @ 2011-02-09  1:00 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 8003@debbugs.gnu.org

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@gnu.org] 
Sent: Wednesday, February 09, 2011 3:55 AM
To: Huafeng Zhou
Cc: 8003@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.





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

* bug#8003: 23.1; Background of mouse is incorrect
       [not found]   ` <2D2144648E51FB478DC9088FF4600CE00394BE33@sjcwin75.pixelworks.com>
@ 2011-02-16 10:27     ` Huafeng Zhou
  2019-09-28 18:15       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Huafeng Zhou @ 2011-02-16 10:27 UTC (permalink / raw)
  To: 'Glenn Morris'; +Cc: '8003@debbugs.gnu.org'

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.





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

* bug#8003: 23.1; Background of mouse is incorrect
  2011-02-16 10:27     ` Huafeng Zhou
@ 2019-09-28 18:15       ` Lars Ingebrigtsen
  2019-09-28 19:04         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-28 18:15 UTC (permalink / raw)
  To: Huafeng Zhou; +Cc: '8003@debbugs.gnu.org'

Huafeng Zhou <HZhou@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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-28 18:15       ` Lars Ingebrigtsen
@ 2019-09-28 19:04         ` Eli Zaretskii
  2019-09-29 10:31           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2019-09-28 19:04 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: HZhou, 8003

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 28 Sep 2019 20:15:30 +0200
> Cc: "'8003@debbugs.gnu.org'" <8003@debbugs.gnu.org>
> 
> Huafeng Zhou <HZhou@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.





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-28 19:04         ` Eli Zaretskii
@ 2019-09-29 10:31           ` Lars Ingebrigtsen
  2019-09-29 10:58             ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-29 10:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: HZhou, 8003

Eli Zaretskii <eliz@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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-29 10:31           ` Lars Ingebrigtsen
@ 2019-09-29 10:58             ` Eli Zaretskii
  2019-09-29 11:56               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2019-09-29 10:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: HZhou, 8003

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: HZhou@pixelworks.com,  8003@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.





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-29 10:58             ` Eli Zaretskii
@ 2019-09-29 11:56               ` Lars Ingebrigtsen
  2019-09-29 12:33                 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-29 11:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: HZhou, 8003

Eli Zaretskii <eliz@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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-29 11:56               ` Lars Ingebrigtsen
@ 2019-09-29 12:33                 ` Eli Zaretskii
  2019-09-30  4:17                   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2019-09-29 12:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: HZhou, 8003

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: HZhou@pixelworks.com,  8003@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?





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-29 12:33                 ` Eli Zaretskii
@ 2019-09-30  4:17                   ` Lars Ingebrigtsen
  2019-09-30  7:09                     ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30  4:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: HZhou, 8003

Eli Zaretskii <eliz@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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-30  4:17                   ` Lars Ingebrigtsen
@ 2019-09-30  7:09                     ` Eli Zaretskii
  2019-09-30 13:46                       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2019-09-30  7:09 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: HZhou, 8003

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: HZhou@pixelworks.com,  8003@debbugs.gnu.org
> Date: Mon, 30 Sep 2019 06:17:47 +0200
> 
> Eli Zaretskii <eliz@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?





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-30  7:09                     ` Eli Zaretskii
@ 2019-09-30 13:46                       ` Lars Ingebrigtsen
  2019-09-30 14:19                         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 13:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: HZhou, 8003

Eli Zaretskii <eliz@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





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

* bug#8003: 23.1; Background of mouse is incorrect
  2019-09-30 13:46                       ` Lars Ingebrigtsen
@ 2019-09-30 14:19                         ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2019-09-30 14:19 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: HZhou, 8003

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: HZhou@pixelworks.com,  8003@debbugs.gnu.org
> Date: Mon, 30 Sep 2019 15:46:05 +0200
> 
> Eli Zaretskii <eliz@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.





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

end of thread, other threads:[~2019-09-30 14:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08  6:29 bug#8003: 23.1; Background of mouse is incorrect Huafeng Zhou
2011-02-08 18:54 ` Glenn Morris
2011-02-09  1:00   ` Huafeng Zhou
     [not found]   ` <2D2144648E51FB478DC9088FF4600CE00394BE33@sjcwin75.pixelworks.com>
2011-02-16 10:27     ` Huafeng Zhou
2019-09-28 18:15       ` Lars Ingebrigtsen
2019-09-28 19:04         ` Eli Zaretskii
2019-09-29 10:31           ` Lars Ingebrigtsen
2019-09-29 10:58             ` Eli Zaretskii
2019-09-29 11:56               ` Lars Ingebrigtsen
2019-09-29 12:33                 ` Eli Zaretskii
2019-09-30  4:17                   ` Lars Ingebrigtsen
2019-09-30  7:09                     ` Eli Zaretskii
2019-09-30 13:46                       ` Lars Ingebrigtsen
2019-09-30 14:19                         ` Eli Zaretskii

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