unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: lispref/frames.texi and xmenu.c
Date: Sun, 1 May 2005 15:55:14 -0500 (CDT)	[thread overview]
Message-ID: <200505012055.j41KtEN24440@raven.dms.auburn.edu> (raw)
In-Reply-To: <01c54e80$Blat.v2.4$606c0700@zahav.net.il> (eliz@gnu.org)

Eli Zaretskii wrote:

   > I can not check, but does quitting or popping down that popup-menu
   > when `x-popup-dialog' is used in this situation quit or return nil?

   Please post a test case, a Lisp code that can be eval'ed and
   instructions to follow, and I will tell you what happens.

   (There's one thing one should remember when dealing with xmenu issues:
   on some configurations, I think precisely those which the manual has
   in mind, there's no such thing as ``popping down the menu''; one needs
   to click something for the menu to disappear.)

The situation has completely changed (on GNU/Linux) since Richard
installed a patch.

But there still might be problems on other operating systems.

Richard Stallman wrote:

   Studying the code, I see that the original x-popup-menu in the non-Xt
   case does quit if the user cancels, except in the case where it was
   invoked for a mouse click.  (This is determined by the POSITION
   argument.)  When the code was adapted to Xt, that part of the
   functionality was lost, it looks like.

   Seeing this, I concluded that the right thing to do is to make all the
   implementations of x-popup-menu quit also, under the same condition.
   I implemented this in xmenu.c, but not in w32menu.c and macmenu.c.

The things to test are (after updating your CVS to include Richard's
changes):

M-: (x-popup-menu t '("TITLE" ("PANE" . ("LINE1" . 1))))

and then making the menu disappear by clicking away from the menu (I
referred abusively to this as "popping down") should quit instead of
returning nil.

On GNU/Linux this returned nil before Richard's change, but it quits
now.

The same for:

M-: (x-popup-dialog t '("PANE" . ("LINE1" . 1)))

and then making the dialog disappear using the window mananger (or by
clicking away from the dialog, assuming this actually makes the dialog
disappear.  (Should also quit, not return nil).

On GNU/Linux, this already quit before Richard's recent change, but it
returned nil in 21.3.

Sincerely,

Luc.

  reply	other threads:[~2005-05-01 20:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-01 13:35 lispref/frames.texi and xmenu.c Luc Teirlinck
2005-05-01 13:45 ` Andreas Schwab
2005-05-01 13:56   ` Luc Teirlinck
2005-05-01 14:06 ` Luc Teirlinck
2005-05-01 17:43 ` Jan D.
2005-05-01 21:04   ` Luc Teirlinck
2005-05-01 18:57 ` Richard Stallman
2005-05-01 20:32   ` Luc Teirlinck
2005-05-02  3:06   ` Luc Teirlinck
2005-05-02 23:40     ` Richard Stallman
2005-05-03 23:11       ` Luc Teirlinck
2005-05-04 22:05         ` Richard Stallman
2005-05-05  3:04           ` Luc Teirlinck
2005-05-05 19:46             ` Richard Stallman
2005-05-02  3:28   ` Luc Teirlinck
2005-05-01 19:01 ` Eli Zaretskii
2005-05-01 20:55   ` Luc Teirlinck [this message]
2005-05-02  3:33     ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2005-04-30  2:02 Luc Teirlinck
2005-05-01 18:48 ` Luc Teirlinck

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=200505012055.j41KtEN24440@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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).