home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / bug / 1566 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.5 KB  |  43 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevin
  3. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  4. Subject: Re: C-l in gdb mode
  5. Message-ID: <1992Dec14.173703.28196@den.mmc.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Martin Marietta Western Internal Systems, Technical Operations
  8. References: <9212111949.AA02963@napa.TELEBIT.COM>
  9. Distribution: gnu
  10. Date: Mon, 14 Dec 1992 17:37:03 GMT
  11. Approved: bug-gnu-emacs@prep.ai.mit.edu
  12. Lines: 29
  13.  
  14. In article <9212111949.AA02963@napa.TELEBIT.COM> phr@napa.telebit.com (Paul Rubin) writes:
  15. >In GNU Emacs 18.58.1 of Wed Apr  8 1992 on yoyo (berkeley-unix)
  16. >
  17. >I think c-l in gdb mode, when there is a prefix argument,
  18. >should just do `recenter' with that argument.
  19.  
  20. I agree that the argument to recenter shouldn't have been disabled, but
  21. I also think that the source code redisplay shouldn't be disabled.
  22. Here's what I use:
  23.  
  24. ;; gdb-recenter allows you to control the display with
  25. ;; its prefix arg:
  26.  
  27. (defun gdb-recenter (&optional arg)
  28.   "*Recenter the display and display the current frame.  The optional
  29. ARG \(prefix argument, if called interactively\) is passed to \\[recenter]."
  30.   (interactive "P")
  31.   (recenter arg)
  32.   (gdb-display-frame))
  33.  
  34. (setq gdb-mode-hook
  35.       (function (lambda ()
  36.           (define-key gdb-mode-map "\C-l" (function gdb-recenter)))))
  37. -- 
  38. Kevin Rodgers                kevin@traffic.den.mmc.com
  39. Martin Marietta MS A16401        (303) 790-3971
  40. 116 Inverness Dr. East
  41. Englewood CO 80112 USA            GO BUFFS!
  42.  
  43.