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: Menubar on text only terminals Date: Tue, 03 Apr 2007 11:07:39 +0300 Message-ID: References: <17934.2504.477668.354102@farnswood.snap.net.nz> <17934.54358.129732.694345@farnswood.snap.net.nz> <20070402021343.GA2989@kobe.laptop> <17936.36075.282286.535939@farnswood.snap.net.nz> <20070402065536.GA4779@kobe.laptop> <86abxrck6c.fsf@lola.quinscape.zz> <17937.37280.901597.817103@farnswood.snap.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175587682 30954 80.91.229.12 (3 Apr 2007 08:08:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 08:08:02 +0000 (UTC) Cc: keramida@ceid.upatras.gr, emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 03 10:08:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYe3a-00023p-EN for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 10:07:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYe6g-0004UI-Vg for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 04:11:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYe6b-0004U3-3F for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:11:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYe6Z-0004Tr-IT for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:11:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYe6Z-0004To-8S for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:11:03 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYe3M-0001k5-Hl; Tue, 03 Apr 2007 04:07:45 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-124-31.inter.net.il [84.229.124.31]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HNH25933 (AUTH halo1); Tue, 3 Apr 2007 11:07:38 +0300 (IDT) In-reply-to: <17937.37280.901597.817103@farnswood.snap.net.nz> (message from Nick Roberts on Tue, 3 Apr 2007 11:28:32 +1200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68971 Archived-At: > From: Nick Roberts > Date: Tue, 3 Apr 2007 11:28:32 +1200 > Cc: David Kastrup , keramida@ceid.upatras.gr, > emacs-devel@gnu.org > > I'm surprised that it is so easy given that tmm.el isn't a simple piece of > code. tmm tries to do a very different job; msdos.c just emulates the few relevant Xlib functions. > What happens with toggle and radio buttons? Are they also handled? Yes, they are supported, but it's not msdos.c that does it, it's xmenu.c. Look in single_menu_item there, around line 635, and you will see that it shows "[X]" for toggles and "(*)" for radio buttons. IOW, what we have for the non-toolkit build on X already does a large part of the job, so that only the actual display of the menus is missing. And that is where we can lift most of the code from msdos.c, as I wrote earlier. The only _real_ problem with that is that msdos.c gets mouse events via system calls in plain C, whereas text terminals use Lisp code in t-mouse.el or some such, and it might be tricky to call Lisp during menu display. > If someone writes some code, I'll be happy to test it. If I had time to write the code, I'd do it a long time ago. But thanks for volunteering, maybe someone else will step forward for the coding job (after the release, of course).