[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: a minor mode that uses GDB like CLI commands
From: |
Miles Bader |
Subject: |
Re: RFC: a minor mode that uses GDB like CLI commands |
Date: |
Sat, 19 Mar 2005 10:28:28 +0900 |
On Fri, 18 Mar 2005 10:58:55 -0800, Dan Nicolaescu <address@hidden> 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.