Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!talos!kjones From: kjones@talos.uu.net (Kyle Jones) Newsgroups: comp.emacs Subject: Re: Line and column numbers. Message-ID: <1990Feb8.133320.1822@talos.uu.net> Date: 8 Feb 90 13:33:20 GMT References: <1990Feb8.052731.11140@athena.mit.edu> Reply-To: kyle@xanth.cs.odu.edu Distribution: usa Lines: 13 Daniel A. Loera writes: > I have seen many things appear on people's mode-line: time, mode, > machine name, and other things. I would like to know if someone out > there could post some code that would show the current line and > column number that the cursor is on. > > Is what I'm asking for feasible? Is it possible? For GNU Emacs, the answer is no. mode-line-format does not allow you to specify a function to call, and that is what would be required to get the line and column number into the mode line. It's just as well, because (currently) the functions you'd need to call would generate a LOT of overhead, even when just echoing keystrokes.