From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Input for TTY menus Date: Fri, 18 Oct 2013 16:38:59 +0300 Message-ID: <83zjq6n1fw.fsf@gnu.org> References: <831u4llymo.fsf@gnu.org> <83r4bjoq33.fsf@gnu.org> <83bo2nnkel.fsf@gnu.org> <837gdbndpy.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382103550 22658 80.91.229.3 (18 Oct 2013 13:39:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 13:39:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Darren Hoo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 15:39:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VXAGl-0001wA-Tf for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 15:39:12 +0200 Original-Received: from localhost ([::1]:57811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAGl-00046k-6U for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 09:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAGd-000450-65 for emacs-devel@gnu.org; Fri, 18 Oct 2013 09:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXAGW-0004oD-L6 for emacs-devel@gnu.org; Fri, 18 Oct 2013 09:39:03 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:50686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAGW-0004nM-DO for emacs-devel@gnu.org; Fri, 18 Oct 2013 09:38:56 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MUV008009SELO00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:38:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUV0088C9WUCY80@a-mtaout22.012.net.il>; Fri, 18 Oct 2013 16:38:54 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164301 Archived-At: > Date: Fri, 18 Oct 2013 18:39:21 +0800 > From: Darren Hoo > Cc: emacs-devel > > > Can you try the patch below, and see if it fixes the menu-bar issue > > with GPM, and does not cause any adverse effects on the rest of GPM > > mouse functionality? > > The patch works, neat really. Thanks for testing. I committed the change. > I think there's one more improvement can be made. > > for example click on the menu Options, Click on the letter O or click on > letter i the position of the dropdown menu is different. please refer to the > screenshots attached, I think the calculation of the position of the the > drop down menu should always start from the first letter of the menu. That's how non-toolkit menus always worked: the menu is popped on the same place where you click the mouse. Personally, I rather like this, but that's because I'm used to it. If someone wants to work on changing that for clicks on the menu bar (note that this should still work as it does for clicks on the text area or elsewhere on the frame), I won't object, but I won't work on this myself, sorry. > I wonder how it works on windows The same. It also works the same on X when no toolkits are used, and even on MS-DOS. > (having some trouble setting up the build environment, are there any > downloadable nightly builds?) https://sourceforge.net/projects/emacs-bin/files/snapshots/ > and whether the behaviour cross platform is consistent. It is, as long as Emacs itself is creating the menus. Toolkits don't behave like that.