home *** CD-ROM | disk | FTP | other *** search
- 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
- From: rudis+@cs.cmu.edu (Rujith S DeSilva)
- Newsgroups: gnu.emacs.help
- Subject: Re: Cursor Position Status
- Message-ID: <BxExrs.5r5.1@cs.cmu.edu>
- Date: 8 Nov 92 19:50:15 GMT
- Article-I.D.: cs.BxExrs.5r5.1
- References: <1992Nov8.180255.18334@njitgw.njit.edu>
- Sender: news@cs.cmu.edu (Usenet News System)
- Distribution: cis,njit,nj,usa
- Organization: School of Computer Science, Carnegie Mellon
- Lines: 23
- Nntp-Posting-Host: gs71.sp.cs.cmu.edu
-
- In article <1992Nov8.180255.18334@njitgw.njit.edu> irwin@earth.njit.edu (scott
- skiba) writes:
- >Is there a macro available to show the current line and column position of
- >the cursor on the Emacs status bar? This is especially useful while in C or
- >Electric-C buffer mode. Currently, I am using the C-x-l key binding to track
- >down the line number for compilation errors.
-
- This topic seems to come up periodically. I don't know how to do what you
- want, but let me say how I manage perfectly happily without it.
-
- Firstly, I use `compile' within emacs, and then `next-error' (bound by default
- to C-x `) automatically takes me to the correct line on the correct file.
-
- Secondly, rather than using `what-line,' you could use `goto-line.' In
- C-mode, `fill-region,' bound by default to M-g, is rather useless, so I
- re-bind M-g to `goto-line.'
-
- Finally, if you knew all the above, and still want to have the current-line
- and column-position, you could use the functions `current-column' (this is not
- interactively callable) and `what-line' to hack it up. Good luck.
-
- Rujith de Silva.
- Carnegie Mellon.
-