Newsgroups: comp.emacs
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mstar!mstar.morningstar.com!bob
From: bob@MorningStar.Com (Bob Sutterfield)
Subject: Re: EMACS ???    <--->     VI !!!
In-Reply-To: ury@mosque.huji.ac.il's message of Thu, 30 May 91 12:41:31 GMT
Message-ID: <BOB.91May30094605@volitans.MorningStar.Com>
Sender: usenet@MorningStar.COM (USENET Administrator)
Reply-To: bob@MorningStar.Com (Bob Sutterfield)
Organization: Morning Star Technologies
References: <1991May30.124131.4679@bronze.ucs.indiana.edu>
Date: Thu, 30 May 91 13:46:12 GMT
Lines: 27

(Please, let's not start a "my editor is better than yours" flamewar!)

In article <1991May30.124131.4679@bronze.ucs.indiana.edu> ury@mosque.huji.ac.il (ury segal) writes:
   (By the way, How you get the current line number ?) 

You didn't mention what version of Emacs you were trying to use, so
I'll answer from the perspective of a GNU Emacs user.  I said "M-x
apropos line", searched the resulting *Help* buffer for the string
"number", and quickly found

	what-line		      
	  Function: Print the current line number (in the buffer) of point.

Is that what you wanted?

(Two observations:
1) Could you have found it that quickly in vi's on-line documentation?
   (oops, I promised not to start a catfight :-)
2) I only need to use what-line and friends on very, very rare
   occasions, like once in every two or three months of quite heavy
   Emacs use for a variety of tasks.  In fact, I didn't remember
   (what-line) from the last time I used it, so I actually needed to
   look it up, as described above, to answer your question.  I find it
   curious that you needed it within the first few hours of beginning
   to use the editor.  Your working style must be quite different from
   mine.
)
