From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ben Wing Newsgroups: gmane.emacs.devel Subject: Re: C-l while in menu? Date: Mon, 22 Apr 2002 06:04:52 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: <3CC40A74.5040600@666.com> References: <200204072343.g37NhIC20114@aztec.santafe.edu> <200204201727.g3KHRD401381@aztec.santafe.edu> <200204220746.g3M7kvY01878@aztec.santafe.edu> <200204220928.g3M9S9H32293@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080006090100050207030700" X-Trace: main.gmane.org 1019480785 19268 127.0.0.1 (22 Apr 2002 13:06:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 13:06:25 +0000 (UTC) Cc: Richard Stallman , Pavel@janik.cz, gerd@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zdWT-00050f-00 for ; Mon, 22 Apr 2002 15:06:25 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zdXB-0004os-00 for ; Mon, 22 Apr 2002 15:07:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zdWH-0000RS-00; Mon, 22 Apr 2002 09:06:13 -0400 Original-Received: from falcon.mail.pas.earthlink.net ([207.217.120.74] helo=falcon.prod.itd.earthlink.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zdTR-0000J8-00; Mon, 22 Apr 2002 09:03:17 -0400 Original-Received: from sdn-ap-007caburbp1073.dialsprint.net ([63.184.68.57] helo=666.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zdTI-0007iO-00; Mon, 22 Apr 2002 06:03:09 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us Original-To: Stefan Monnier Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3030 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3030 --------------080006090100050207030700 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: >> > It might not be easy to find key bindings for it, though. >> >> I think it is very easy. We should use F10, and invent new variable >> f10-should-use-tmm (this is only idea to exactly describe its meaning...) >> defaulting to nil. >> >>What key bindings does XEmacs use for this feature? >>Maybe we should use the same ones, if there is no disadvantage. >> > >I think they use A- to pop down the menu whose >first letter is and then the same kind of thing to select >entries inside menus (and probably A-next and A-prior to select by >moving line-by-line). >I believe it was chosen because it's what Motif and W32 interfaces >provide (and I expect GTK to offer similar things). It has the >disadvantage of relying on the presence of an Alt key which is not >already used as a Meta key. > >This all comes from my very fuzzy memory, so I'm sure it's good >several "inaccuracies". > currently, either: -- if you have an alt key separate from meta, you can use it for menu accelerators. -- otherwise, you can use the standard alt/meta key -- meta+any accelerator letter selects a menu, otherwise you get the regular behavior. for any shadowed binding, meta+shift+letter ignores the accelerator and gets you the shadowed binding [or alternatively, use esc+letter, which also ignores the accelerator]. you can turn this on and off, of course, and pick what key is your accelerator. i've designed our menus in such a way that there is little interference from losing some of the M-foo combinations -- there are generally equivalent arrow-key bindings, or you can just pick an item off the menu. i program under windows, so i interfaced to the standard windows menu stuff. btw i would really appreciate it if you guys could keep a recent version of xemacs around so you can run it and see, and keep compatible whenever possible rather than reinvent the wheel. i constantly refer to the most recent gnu emacs source code when thinking about making changes [to keep compatibility whenever possible] and it would be really good if you guys could also try to keep compatible. keep in mind that the theoretical eventual goal is partial or total merger of the two, and every time you add a feature that's incompatible with xemacs you make that goal harder to achieve. i know you can't look at the source code directly due to self-imposed restrictions, but [a] you can run the program and use the help system, [b] you can [maybe?] look at the changelogs, [c] you should arrange one of you who doesn't work on the gnu emacs code as official "xemacs code reader" when such issues need to be resolved. > > > > Stefan > > >_______________________________________________ >Emacs-devel mailing list >Emacs-devel@gnu.org >http://mail.gnu.org/mailman/listinfo/emacs-devel > --------------080006090100050207030700 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Stefan Monnier wrote:
       > It might not be easy to find key bindings for it, though.

I think it is very easy. We should use F10, and invent new variable
f10-should-use-tmm (this is only idea to exactly describe its meaning...)
defaulting to nil.

What key bindings does XEmacs use for this feature?
Maybe we should use the same ones, if there is no disadvantage.

I think they use A-<letter> to pop down the menu whose
first letter is <letter> and then the same kind of thing to select
entries inside menus (and probably A-next and A-prior to select by
moving line-by-line).
I believe it was chosen because it's what Motif and W32 interfaces
provide (and I expect GTK to offer similar things). It has the
disadvantage of relying on the presence of an Alt key which is not
already used as a Meta key.

This all comes from my very fuzzy memory, so I'm sure it's good
several "inaccuracies".

currently, either:

-- if you have an alt key separate from meta, you can use it for menu accelerators.
-- otherwise, you can use the standard alt/meta key -- meta+any accelerator letter selects a menu, otherwise you get the regular behavior.  for any shadowed binding, meta+shift+letter ignores the accelerator and gets you the shadowed binding [or alternatively, use esc+letter, which also ignores the accelerator].  you can turn this on and off, of course, and pick what key is your accelerator.  i've designed our menus in such a way that there is little interference from losing some of the M-foo combinations -- there are generally equivalent arrow-key bindings, or you can just pick an item off the menu.

i program under windows, so i interfaced to the standard windows menu stuff.

btw i would really appreciate it if you guys could keep a recent version of xemacs around so you can run it and see, and keep compatible whenever possible rather than reinvent the wheel.  i constantly refer to the most recent gnu emacs source code when thinking about making changes [to keep compatibility whenever possible] and it would be really good if you guys could also try to keep compatible.  keep in mind that the theoretical eventual goal is partial or total merger of the two, and every time you add a feature that's incompatible with xemacs you make that goal harder to achieve.

i know you can't look at the source code directly due to self-imposed restrictions, but

[a] you can run the program and use the help system,
[b] you can [maybe?] look at the changelogs,
[c] you should arrange one of you who doesn't work on the gnu emacs code as official "xemacs code reader" when such issues need to be resolved.




Stefan


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


--------------080006090100050207030700--