From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil (Christian Seberino) Newsgroups: gmane.emacs.help Subject: Re: Does Emacs have a line-number function or is %l the only equivalent? Date: 14 Jan 2004 19:45:23 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1074140377 24424 80.91.224.253 (15 Jan 2004 04:19:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2004 04:19:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 05:19:29 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Agyyf-0007PG-00 for ; Thu, 15 Jan 2004 05:19:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Agyhz-0006Qu-Ce for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2004 23:02:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 67.112.141.118 Original-X-Trace: posting.google.com 1074138324 2508 127.0.0.1 (15 Jan 2004 03:45:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 15 Jan 2004 03:45:24 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:120110 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16053 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16053 gebser I just wanted a function that returned the line number of current point that I could use anywhere. I need a function like %l I can use to return a number e.g. (line-number) Chris P.S. I just want to replace %l with something clearer in my .emacs. That's all. gebser@speakeasy.net wrote in message news:... > Having > > (setq-default line-number-mode t) > > puts the number of the current line (the one the cursor is on) in the > modeline. Is that the sort of "function" you're referring to? > > > Name withheld because it's too much to type. > > > At 20:42 (UTC+0100) on Mon, 12 Jan 2004 Henrik Enberg said: > > = seberino@spawar.navy.mil (Christian Seberino) writes: > = > = > Does Emacs have a line-number function or is %l the only equivalent? > = > = There is setnu.el, but it only works so so, I recall. > = > = > = _______________________________________________ > = Help-gnu-emacs mailing list > = Help-gnu-emacs@gnu.org > = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs > =