unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: GC garbles menu items (was: tooltip can be displayed outside the screen)
Date: Sat, 17 Dec 2005 12:48:48 +0200	[thread overview]
Message-ID: <87ek4cngkz.fsf_-_@jurta.org> (raw)
In-Reply-To: <E1EnQUc-0004o8-PL@fencepost.gnu.org> (Richard M. Stallman's message of "Fri, 16 Dec 2005 20:04:10 -0500")

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

>     BTW, on non-toolkit X builds using tooltips on menu items completely
>     garbles them.
>
> I don't understand.  Could you please say more specifically
> how they get garbled?

Menu items get garbled in such a way that after moving the mouse pointer
over menu items


[-- Attachment #2: menu11.png --]
[-- Type: image/png, Size: 2050 bytes --]

[-- Attachment #3: Type: text/plain, Size: 22 bytes --]


the menu changes to


[-- Attachment #4: menu12.png --]
[-- Type: image/png, Size: 2317 bytes --]

[-- Attachment #5: Type: text/plain, Size: 861 bytes --]


>     Most likely this is caused by garbage collection, and
>     displaying tooltips makes GC to occur sooner than when tooltips are
>     disabled.
>
> I don't follow the connection.  What does GC have to do with garbling
> tooltips?

Displaying the tooltip frame while a menu is displayed requires some Lisp
consing, so GC starts sooner and it garbles menu items while menus are
still displayed.

> Are you using a mode in which the tooltip appears in the echo area?

This bug can be reproduced even when the tooltip appears in the echo area.
I guess displaying the tooltip in the echo area requires less consing,
so GC activates later than when the tooltip appears in the separate window.

So the bug is not in tooltips, but in GC which garbles menu items.

I can reproduce this bug only on non-toolkit builds.

-- 
Juri Linkov
http://www.jurta.org/emacs/

[-- Attachment #6: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2005-12-17 10:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3sltjuvd6.fsf@czkmt.remus.dti.ne.jp>
2005-11-27  3:28 ` tooltip can be displayed outside the screen Richard M. Stallman
2005-11-27  4:55   ` Tetsuo Tsukamoto
2005-11-27 22:34     ` Richard M. Stallman
2005-12-02 14:58       ` Jan D.
2005-12-02 18:33         ` Eli Zaretskii
2005-12-02 21:04           ` Juri Linkov
2005-12-03 14:21           ` Jan Djärv
2005-12-06  0:52             ` Juri Linkov
2005-12-12 10:25               ` Jan D.
2005-12-14  7:54                 ` Juri Linkov
2005-12-14 21:01                   ` Jan Djärv
2005-12-15  9:28                     ` Juri Linkov
2005-12-16  1:52                       ` Richard M. Stallman
2005-12-16  9:03                         ` Juri Linkov
2005-12-17  1:04                           ` Richard M. Stallman
2005-12-17 10:48                             ` Juri Linkov [this message]
2005-12-18  0:00                               ` GC garbles menu items (was: tooltip can be displayed outside the screen) Richard M. Stallman
2005-12-20 21:54                                 ` GC garbles menu items Juri Linkov
2005-12-22  5:47                                   ` Richard M. Stallman
2005-12-22 20:48                                     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ek4cngkz.fsf_-_@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).