From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: RFC: a minor mode that uses GDB like CLI commands Date: Sat, 19 Mar 2005 10:28:28 +0900 Message-ID: References: <200503181858.j2IIwvAH010170@scanner2.ics.uci.edu> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111196082 26311 80.91.229.2 (19 Mar 2005 01:34:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2005 01:34:42 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 02:34:42 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCSqx-0004Ds-27 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 02:34:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCT4U-0003TJ-P1 for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 20:48:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCT4C-0003P4-Ob for emacs-devel@gnu.org; Fri, 18 Mar 2005 20:47:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCT3z-0003EN-64 for emacs-devel@gnu.org; Fri, 18 Mar 2005 20:47:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCT3y-0003DC-Px for emacs-devel@gnu.org; Fri, 18 Mar 2005 20:47:38 -0500 Original-Received: from [64.233.184.199] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCSlR-0005wy-7a for emacs-devel@gnu.org; Fri, 18 Mar 2005 20:28:29 -0500 Original-Received: by wproxy.gmail.com with SMTP id 40so125758wri for ; Fri, 18 Mar 2005 17:28:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=CRnKWxj38l4hCx6UXTciZeJxQUZNH+mxl8vS1XbeiNFpkQAgMXPGO3ptdk54Q9DY4rV1y5BkpAMYnJp46XStGpXdb9n0qVIGPW62y6Q3JeJ0+uNoqQkVBg8kqTmwceoaCtIM2dD4m8qf6nfv6fzMFTKXnNPrZ6ofW3lFs4itAbo= Original-Received: by 10.54.20.6 with SMTP id 6mr3716840wrt; Fri, 18 Mar 2005 17:28:28 -0800 (PST) Original-Received: by 10.54.19.70 with HTTP; Fri, 18 Mar 2005 17:28:28 -0800 (PST) Original-To: Dan Nicolaescu In-Reply-To: <200503181858.j2IIwvAH010170@scanner2.ics.uci.edu> 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34757 On Fri, 18 Mar 2005 10:58:55 -0800, Dan Nicolaescu wrote: > It would be nice to have a minor mode so that one would be able to use > GDB CLI like commands ("c", "n", etc.). When turned on such a mode > changes the source code buffer to be read-only and some keys act as > GDB commands. It's a useful idea. How about making the keybindings automatically contingent on `buffer-read-only', like `diff-mode' does? Then the user could just turn on this mode by default in _all_ his source buffers, and use the normal `toggle-read-only' binding to toggle between gdb commands or editing -- you wouldn't need the special binding for `C-x C-q', just the bindings for the actual commands (which is good for people like me that use `C-x C-q' for something else). -Miles -- Do not taunt Happy Fun Ball.