unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2885: 23.0.92; Cannot customize tootip font
@ 2009-04-04  8:05 ` Eli Zaretskii
  2009-04-04 14:30   ` Stephen Berman
  2009-04-04 15:00   ` bug#2885: marked as done (23.0.92; Cannot customize tootip font) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-04-04  8:05 UTC (permalink / raw)
  To: emacs-pretest-bug


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 emacs-pretest-bug@gnu.org mailing list.

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

I don't like the default size of the font used by tooltips, so I
customize it to a smaller size by the following expression in my
~/.emacs:

  (setq tooltip-frame-parameters
		'((name . "tooltip")
		  (internal-border-width . 2)
		  (border-width . 1)
		  (font . "-*-*-light-r-*-*-10-*-*-*-*-*-*")))

This copies all the default parameters from tooltip.el, but adds a
font specification to the alist.

In Emacs 23, this doesn't seem to work, though: if you evaluate the
above expression in "emacs -Q" and move the mouse pointer to some
tool-bar button, you will see that the first tooltip is popped using
the smaller font, but the next and all the following tooltips somehow
revert to using the original font.

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
d:/gnu/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600)
 of 2009-04-04 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  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
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> C-y C-j <help-echo> M-x r e 
p o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set






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

* bug#2885: 23.0.92; Cannot customize tootip font
  2009-04-04  8:05 ` bug#2885: 23.0.92; Cannot customize tootip font Eli Zaretskii
@ 2009-04-04 14:30   ` Stephen Berman
  2009-04-04 15:00   ` bug#2885: marked as done (23.0.92; Cannot customize tootip font) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Berman @ 2009-04-04 14:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-pretest-bug, 2885

On Sat, 04 Apr 2009 11:05:45 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

> I don't like the default size of the font used by tooltips, so I
> customize it to a smaller size by the following expression in my
> ~/.emacs:
>
>   (setq tooltip-frame-parameters
> 		'((name . "tooltip")
> 		  (internal-border-width . 2)
> 		  (border-width . 1)
> 		  (font . "-*-*-light-r-*-*-10-*-*-*-*-*-*")))
>
> This copies all the default parameters from tooltip.el, but adds a
> font specification to the alist.
>
> In Emacs 23, this doesn't seem to work, though: if you evaluate the
> above expression in "emacs -Q" and move the mouse pointer to some
> tool-bar button, you will see that the first tooltip is popped using
> the smaller font, but the next and all the following tooltips somehow
> revert to using the original font.
> [...]
> In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600)
>  of 2009-04-04 on HOME-C4E4A596F7

I cannot reproduce this in GNU Emacs 23.0.91.5 (i686-pc-linux-gnu, GTK+
Version 2.14.4) of 2009-03-30 on escher: for me the font parameter has
no effect, which agrees with the doc string:

tooltip-frame-parameters is a variable defined in `tooltip.el'.
Its value is 
((name . "tooltip")
 (internal-border-width . 2)
 (border-width . 1))


Documentation:
Frame parameters used for tooltips.

If `left' or `top' parameters are included, they specify the absolute
position to pop up the tooltip.

Note that font and color parameters are ignored, and the attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
of the `tooltip' face are used instead.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Can you get what you want with set-face-attribute?

Steve Berman






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

* bug#2885: marked as done (23.0.92; Cannot customize tootip font)
  2009-04-04  8:05 ` bug#2885: 23.0.92; Cannot customize tootip font Eli Zaretskii
  2009-04-04 14:30   ` Stephen Berman
@ 2009-04-04 15:00   ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-04-04 15:00 UTC (permalink / raw)
  To: Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]


Your message dated Sat, 04 Apr 2009 17:51:45 +0300
with message-id <838wmgcvzy.fsf@gnu.org>
and subject line Re: bug#2885: 23.0.92; Cannot customize tootip font
has caused the Emacs bug report #2885,
regarding 23.0.92; Cannot customize tootip font
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2885: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2885
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 4476 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.92; Cannot customize tootip font
Date: Sat, 04 Apr 2009 11:05:45 +0300
Message-ID: <83myawdesm.fsf@gnu.org>


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 emacs-pretest-bug@gnu.org mailing list.

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

I don't like the default size of the font used by tooltips, so I
customize it to a smaller size by the following expression in my
~/.emacs:

  (setq tooltip-frame-parameters
		'((name . "tooltip")
		  (internal-border-width . 2)
		  (border-width . 1)
		  (font . "-*-*-light-r-*-*-10-*-*-*-*-*-*")))

This copies all the default parameters from tooltip.el, but adds a
font specification to the alist.

In Emacs 23, this doesn't seem to work, though: if you evaluate the
above expression in "emacs -Q" and move the mouse pointer to some
tool-bar button, you will see that the first tooltip is popped using
the smaller font, but the next and all the following tooltips somehow
revert to using the original font.

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
d:/gnu/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600)
 of 2009-04-04 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  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
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> C-y C-j <help-echo> M-x r e 
p o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set



[-- Attachment #3: Type: message/rfc822, Size: 2415 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 2885-done@emacsbugs.donarmstrong.com
Subject: Re: bug#2885: 23.0.92; Cannot customize tootip font
Date: Sat, 04 Apr 2009 17:51:45 +0300
Message-ID: <838wmgcvzy.fsf@gnu.org>

> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: 2885@emacsbugs.donarmstrong.com,  emacs-pretest-bug@gnu.org
> Date: Sat, 04 Apr 2009 16:30:29 +0200
> 
> I cannot reproduce this in GNU Emacs 23.0.91.5 (i686-pc-linux-gnu, GTK+
> Version 2.14.4) of 2009-03-30 on escher: for me the font parameter has
> no effect

Well, them having no effect was what I reported, so you _can_
reproduce that.

> Note that font and color parameters are ignored, and the attributes
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> of the `tooltip' face are used instead.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks for the pointer.  This isn't in NEWS, so I presumed the
previous behavior was still supported.  I now added a suitable entry
in NEWS, so this bug report can be closed.

> Can you get what you want with set-face-attribute?

Yes, thanks.


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

end of thread, other threads:[~2009-04-04 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <838wmgcvzy.fsf@gnu.org>
2009-04-04  8:05 ` bug#2885: 23.0.92; Cannot customize tootip font Eli Zaretskii
2009-04-04 14:30   ` Stephen Berman
2009-04-04 15:00   ` bug#2885: marked as done (23.0.92; Cannot customize tootip font) Emacs bug Tracking System

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