Article View: gnu.emacs.bug
Article #899Re: C-l in gdb mode
From: Kevin Rodgers
Date: Mon, 14 Dec 1992 17:37
Date: Mon, 14 Dec 1992 17:37
28 lines
1544 bytes
1544 bytes
In article <9212111949.AA02963@napa.TELEBIT.COM> phr@napa.telebit.com (Paul Rubin) writes:
>In GNU Emacs 18.58.1 of Wed Apr 8 1992 on yoyo (berkeley-unix)
>
>I think c-l in gdb mode, when there is a prefix argument,
>should just do `recenter' with that argument.
I agree that the argument to recenter shouldn't have been disabled, but
I also think that the source code redisplay shouldn't be disabled.
Here's what I use:
;; gdb-recenter allows you to control the display with
;; its prefix arg:
(defun gdb-recenter (&optional arg)
"*Recenter the display and display the current frame. The optional
ARG \(prefix argument, if called interactively\) is passed to \\[recenter]."
(interactive "P")
(recenter arg)
(gdb-display-frame))
(setq gdb-mode-hook
(function (lambda ()
(define-key gdb-mode-map "\C-l" (function gdb-recenter)))))
--
Kevin Rodgers kevin@traffic.den.mmc.com
Martin Marietta MS A16401 (303) 790-3971
116 Inverness Dr. East
Englewood CO 80112 USA GO BUFFS!
Technical Details
Message-ID:
<1992Dec14.173703.28196@den.mmc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevinReferences:
<9212111949.AA02963@napa.TELEBIT.COM>Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevin From: kevin@traffic.den.mmc.com (Kevin Rodgers) Subject: Re: C-l in gdb mode Message-ID: <1992Dec14.173703.28196@den.mmc.com> Sender: gnulists@ai.mit.edu Organization: Martin Marietta Western Internal Systems, Technical Operations References: <9212111949.AA02963@napa.TELEBIT.COM> Distribution: gnu Date: Mon, 14 Dec 1992 17:37:03 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 29