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: M-x gdb on a tty Date: Sat, 15 Aug 2009 14:32:41 +0300 Message-ID: <83y6plia7a.fsf@gnu.org> References: <831vndjxt8.fsf@gnu.org> <19078.36335.52753.985664@totara.tehura.co.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250335976 25238 80.91.229.12 (15 Aug 2009 11:32:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2009 11:32:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: nickrob@snap.net.nz (Nick Roberts) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 15 13:32:49 2009 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 1McHV8-0006TK-I3 for ged-emacs-devel@m.gmane.org; Sat, 15 Aug 2009 13:32:47 +0200 Original-Received: from localhost ([127.0.0.1]:34772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McHV7-0007A0-PA for ged-emacs-devel@m.gmane.org; Sat, 15 Aug 2009 07:32:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McHV1-00078f-Hs for emacs-devel@gnu.org; Sat, 15 Aug 2009 07:32:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McHUz-000776-Px for emacs-devel@gnu.org; Sat, 15 Aug 2009 07:32:38 -0400 Original-Received: from [199.232.76.173] (port=47728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McHUy-00076y-SA for emacs-devel@gnu.org; Sat, 15 Aug 2009 07:32:36 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:51722) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McHUy-0007bK-9F for emacs-devel@gnu.org; Sat, 15 Aug 2009 07:32:36 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KOF001001C0Q200@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Sat, 15 Aug 2009 14:32:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.133.43]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KOF00AXM1EADZ30@i_mtaout3.012.net.il>; Sat, 15 Aug 2009 14:32:35 +0300 (IDT) In-reply-to: <19078.36335.52753.985664@totara.tehura.co.nz> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:114262 Archived-At: > Date: Sat, 15 Aug 2009 22:29:03 +1200 > Cc: emacs-devel@gnu.org > From: nickrob@snap.net.nz (Nick Roberts) > > Eli Zaretskii writes: > > Is "M-x gdb" supposed to work correctly on a tty? > > Are there problems apart from those with the menu-bar? I didn't see any yet. But this is stock Emacs 23.1, so if you were interested in the CVS version, I didn't try it (yet). > > If it is, then I think I see some issues with the menu bar: portions > > of it seem to get overwritten by GUD-specific strings that have a > > different background color (perhaps a distant memory of the tool > > bar?), when I am in the GUD buffer. > > I did put this in FOR-RELEASE (2008-03-01 1.764): > > ** Mouse clicks on the menubar don't currently work with a console > Following the direct use of Gpm, the menubar now needs to be > considered a special part of the screen in Emacs on a console. > http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00277.html I didn't expect the mouse to work there: this is a real text terminal (SSH remote login to a GNU/Linux system), not an xterm with Gpm. My problem is that the menu bar gets partially overwritten with items that don't look like menu-bar items: they start with a lower-case letter. Also, they have a different background color, which looks ugly. Is there a point for them to have a different look? If not, I suggest to make them look and feel like normal menu items. Also, it looks like the code which produces these menu items does not take the GUD arrow into consideration: switching to the source buffer where the arrow is displayed causes these menu items to move right by one character, exposing a letter ("C" in my case) beneath it. This again looks like a bug, even if it's a feature. Finally, these menu items obscure the normal ones. > The green part of the menu bar *does* work like a tool bar if you try it in an > xterm. When I implemented Gpm functionality at the C level in Emacs (for > mouse highlighting and tool tips) I got it to work in the normal window area > and mode line but not the menu bar. If this feature is supposed to work only with a mouse, and makes sense in that case, then how about turning off the feature when the mouse is not available? For that matter, how about making it customizable even if the mouse is available? (Apologies if it's already customizable: I didn't have time to look it up.)