home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / emacs / bug / 1601 < prev    next >
Encoding:
Text File  |  1993-01-03  |  1.3 KB  |  36 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!elf.tn.cornell.edu!eirik
  3. From: eirik@elf.tn.cornell.edu (Eirik Fuller)
  4. Subject: gdb-refresh
  5. Message-ID: <199301030901.AA01162@EARACHE.TC.CORNELL.EDU>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 2 Jan 1993 23:01:53 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 23
  12.  
  13. I seem to recall that some time ago I made a suggestion for gdb mode,
  14. and the response was something like "that sounds like a good idea, but
  15. we don't have time for it now; resubmit it later".
  16.  
  17. Well, now it's later.  :-)
  18.  
  19. My suggestion concerns the binding of C-l in gdb mode.  It seems that
  20. whoever devised this binding was unaware of the full behavior of the
  21. global binding of C-l; for a user who finds the global binding of C-l
  22. (recenter) far more useful for scrolling (as in M-0 C-l) than for
  23. refresh, the gdb mode binding of C-l is extremely annoying.  Here's a
  24. replacement which does the same thing as the present gdb mode C-l
  25. binding in the absence of a prefix arg, and is more nearly consistent
  26. with the global binding of C-l.  I would not object to improvements in
  27. the doc string.
  28.  
  29.  
  30. (defun gdb-recenter (arg)
  31.   "Recenter, and redisplay the frame"
  32.   (interactive "P")
  33.   (gdb-display-frame)
  34.   (recenter arg))
  35.  
  36.