home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / emacs / help / 4731 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!rudis
  2. From: rudis+@cs.cmu.edu (Rujith S DeSilva)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Cursor Position Status
  5. Message-ID: <BxExrs.5r5.1@cs.cmu.edu>
  6. Date: 8 Nov 92 19:50:15 GMT
  7. Article-I.D.: cs.BxExrs.5r5.1
  8. References: <1992Nov8.180255.18334@njitgw.njit.edu>
  9. Sender: news@cs.cmu.edu (Usenet News System)
  10. Distribution: cis,njit,nj,usa
  11. Organization: School of Computer Science, Carnegie Mellon
  12. Lines: 23
  13. Nntp-Posting-Host: gs71.sp.cs.cmu.edu
  14.  
  15. In article <1992Nov8.180255.18334@njitgw.njit.edu> irwin@earth.njit.edu (scott
  16. skiba) writes:
  17. >Is there a macro available to show the current line and column position of
  18. >the cursor on the Emacs status bar? This is especially useful while in C or
  19. >Electric-C buffer mode. Currently, I am using the C-x-l key binding to track
  20. >down the line number for compilation errors.
  21.  
  22. This topic seems to come up periodically.  I don't know how to do what you
  23. want, but let me say how I manage perfectly happily without it.
  24.  
  25. Firstly, I use `compile' within emacs, and then `next-error' (bound by default
  26. to C-x `) automatically takes me to the correct line on the correct file.
  27.  
  28. Secondly, rather than using `what-line,' you could use `goto-line.'  In
  29. C-mode, `fill-region,' bound by default to M-g, is rather useless, so I
  30. re-bind M-g to `goto-line.'
  31.  
  32. Finally, if you knew all the above, and still want to have the current-line
  33. and column-position, you could use the functions `current-column' (this is not
  34. interactively callable) and `what-line' to hack it up.  Good luck.
  35.  
  36. Rujith de Silva.
  37. Carnegie Mellon.
  38.