unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pavel@Janik.cz (Pavel Janík)
Cc: gerd@gnu.org, emacs-devel@gnu.org
Subject: Re: C-l while in menu?
Date: Sat, 11 May 2002 10:53:30 +0200	[thread overview]
Message-ID: <m3pu03kqut.fsf@Janik.cz> (raw)
In-Reply-To: <200205100029.g4A0TqS06473@aztec.santafe.edu> (Richard Stallman's message of "Thu, 9 May 2002 18:29:52 -0600 (MDT)")

   From: Richard Stallman <rms@gnu.org>
   Date: Thu, 9 May 2002 18:29:52 -0600 (MDT)

   > That might be a bug in LessTif.  It might be correct behavior.
   > I don't know which.
   > 
   > Anyway, you can change the code to cope with it.  How about if you
   > change the code so it adds 1 when a menu item is activated and
   > substracts 1 when a menu item is deactivated?  Does it work then?

I already did this:

--- cut here ---
From:  Pavel@janik.cz (Pavel Janík)
Subject: Re: C-l while in menu?
To: Richard Stallman <rms@gnu.org>
Cc: Gerd Moellmann <gerd@gnu.org>
Cc: emacs-devel@gnu.org
Date: Sat, 20 Apr 2002 23:06:44 +0200
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu)

   From: Richard Stallman <rms@gnu.org>
   Date: Sat, 20 Apr 2002 11:27:13 -0600 (MDT)

   > Can you see what is required to make this feature work with LessTif too?
   > If you can't figure out from the docs what needs doing,
   > perhaps toshok@hungry.com could give you advice.

Well, it almost works. Current CVS just process only the first key,
because popup_activated_flag is 1 only at that moment. After the first key
is processed, popup_deactivate_callback is called (many times) and that
variable is zeroed. And from now on, key in menu are no longer processed.

Good. After:

--- /home/pavel/.Emacs/Work/emacs/src/xmenu.c   Mon Jan  7 06:48:44 2002
+++ ./xmenu.c   Sat Apr 20 21:54:41 2002
@@ -1154,7 +1154,7 @@
      LWLIB_ID id;
      XtPointer client_data;
 {
-  popup_activated_flag = 1;
+  popup_activated_flag += 1;
 }
 
 /* This callback is invoked when a dialog or menu is finished being
@@ -1166,7 +1166,7 @@
      LWLIB_ID id;
      XtPointer client_data;
 {
-  popup_activated_flag = 0;
+  popup_activated_flag -= 1;
 }
 
 /* Lwlib callback called when menu items are highlighted/unhighlighted

Menu works, because popup_activated_flag is going to negative numbers very
fast... But I can no longer enter any character in the buffer, because
those keypress events are processed in menu... So I think it is not about
Lesstif knowledge, it is about how Lesstif is used in Emacs. I do not use
Lesstif so perhaps Gerd can help me. Or anyone else?
--- cut here ---

   > If they don't always balance out to zero, maybe it needs to keep track
   > of which ones have been activated and see if all of them have since
   > been deactivated.
   > 
   > If that doesn't work, then I am pretty sure it is a bug in LessTif.

I'll wait for a reply from Lesstif people.
-- 
Pavel Janík

No matter how hard you try, you can't make a baby in much less than
9 months. Trying to speed this up *might* make it slower, but it won't make
it happen any quicker.
                  -- RFC1925: The Twelve Networking Truths

  reply	other threads:[~2002-05-11  8:53 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3k7rjoamp.fsf@Janik.cz>
     [not found] ` <200204072343.g37NhIC20114@aztec.santafe.edu>
2002-04-19 18:58   ` C-l while in menu? Pavel Janík
2002-04-20 17:27     ` Richard Stallman
2002-04-20 21:06       ` Pavel Janík
2002-04-21 11:17         ` Gerd Moellmann
2002-04-21 13:23           ` Pavel Janík
2002-04-21 14:04             ` Gerd Moellmann
2002-05-08 14:38           ` Pavel Janík
2002-05-08 18:16             ` Gerd Moellmann
2002-05-08 18:49               ` Pavel Janík
2002-05-10  0:29             ` Richard Stallman
2002-05-11  8:53               ` Pavel Janík [this message]
2002-05-13 14:17                 ` Richard Stallman
2002-04-22  7:46         ` Richard Stallman
2002-04-22  8:55           ` Pavel Janík
2002-04-22 10:03             ` Stefan Monnier
2002-04-22 12:59             ` Miles Bader
2002-04-22 17:47               ` Kim F. Storm
2002-04-23  2:05               ` Miles Bader
2002-04-22 19:47             ` Jan D.
2002-04-23 19:30               ` Richard Stallman
2002-04-22  9:28           ` Stefan Monnier
2002-04-22 13:04             ` Ben Wing
2002-04-22 13:42               ` Pavel Janík
2002-04-23  9:13                 ` Ben Wing
2002-04-23  9:35                   ` Miles Bader
2002-04-23 11:08                     ` Eli Zaretskii
2002-04-23 10:22                       ` Gerd Moellmann
2002-04-23 11:25                         ` Eli Zaretskii
2002-04-23 11:42                       ` Simon Josefsson
2002-04-24 17:55                         ` Richard Stallman
2002-04-24 18:29                           ` Simon Josefsson
2002-04-26  3:17                             ` Richard Stallman
2002-04-24 18:37                           ` Gerd Moellmann
2002-04-26  3:20                             ` Richard Stallman
2002-04-24 10:42                       ` Ben Wing
2002-04-24 11:27                         ` Simon Josefsson
2002-04-24 15:54                           ` Eli Zaretskii
2002-04-24 14:40                         ` Pavel Janík
2002-04-24 15:31                         ` Eli Zaretskii
2002-04-25  6:06                           ` Richard Stallman
2002-04-23 12:06                     ` Kim F. Storm
2002-04-23 11:44                       ` Simon Josefsson
2002-04-24 10:56                         ` Ben Wing
     [not found]                         ` <3CC68F57.4060901@666.com>
2002-04-24 11:15                           ` Simon Josefsson
2002-04-24 12:52                           ` Stefan Monnier
2002-04-24 15:43                           ` Eli Zaretskii
2002-04-23 11:53                       ` Robert J. Chassell
2002-04-23 14:11                       ` Stefan Monnier
2002-04-24 10:44                       ` Ben Wing
2002-04-24 15:37                     ` Kai Großjohann
2002-04-25  6:06                       ` Richard Stallman
2002-04-25  8:05                         ` Stephen J. Turnbull
2002-04-25  9:13                           ` Kai Großjohann
2002-04-25 10:22                             ` Stephen J. Turnbull
2002-04-26  3:18                           ` Richard Stallman
2002-04-26 11:14                             ` Gerd Moellmann
2002-04-25 11:08                         ` Eli Zaretskii
2002-04-23  9:32                 ` Ben Wing
     [not found]                 ` <3CC52A2F.6010704@666.com>
2002-04-23  9:51                   ` Hrvoje Niksic
2002-04-23 11:20                   ` Stephen J. Turnbull
2002-04-23 19:30               ` Richard Stallman
2002-04-23 20:22                 ` Karl Eichwalder
2002-04-24  4:12                   ` Miles Bader
2002-04-25  6:07                   ` Richard Stallman
2002-04-25  7:21                     ` Karl Eichwalder
2002-04-25  7:35                       ` Miles Bader
2002-04-25 12:00                       ` Robert J. Chassell
2002-04-25 12:21                         ` Andreas Schwab
2002-04-25 13:00                           ` Robert J. Chassell
2002-04-25 13:11                             ` Andreas Schwab
2002-04-25 14:54                         ` Eli Zaretskii
2002-04-25 14:39                           ` Kai Großjohann
2002-04-25 16:19                           ` Robert J. Chassell
2002-04-25 19:19                             ` Eli Zaretskii
2002-04-25 20:16                             ` Jason Rumney
2002-04-25 23:10                               ` Robert J. Chassell
2002-04-25 23:21                               ` Robert J. Chassell
2002-04-26  1:23                                 ` Miles Bader
2002-04-26 17:38                               ` Richard Stallman
2002-04-26  3:18                       ` Richard Stallman
2002-04-23  0:24             ` Richard Stallman
2002-04-22 11:39           ` Eli Zaretskii
2002-04-23 19:31             ` Richard Stallman
2002-04-23 20:13               ` Pavel Janík
2002-04-25  6:05                 ` Richard Stallman
2002-04-25 11:05                   ` Eli Zaretskii
2002-04-22  1:27     ` Miles Bader
2002-04-22  6:09       ` Eli Zaretskii
     [not found] <Pine.LNX.4.44.0204241307080.32219-100000@yxa.extundo.com>
2002-04-24 14:36 ` Stephen J. Turnbull
2002-04-24 15:33   ` Kai Großjohann
     [not found]   ` <vaf662hjelc.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de>
2002-04-24 16:23     ` Stephen J. Turnbull
2002-04-24 18:15       ` Kai Großjohann
2002-04-25  2:23     ` Hrvoje Niksic

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=m3pu03kqut.fsf@Janik.cz \
    --to=pavel@janik.cz \
    --cc=emacs-devel@gnu.org \
    --cc=gerd@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).