From: seberino@spawar.navy.mil (Christian Seberino)
Subject: Re: Does Emacs have a line-number function or is %l the only equivalent?
Date: 14 Jan 2004 19:45:23 -0800 [thread overview]
Message-ID: <bf23f78f.0401141945.68d34728@posting.google.com> (raw)
In-Reply-To: mailman.651.1074102458.928.help-gnu-emacs@gnu.org
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:<mailman.651.1074102458.928.help-gnu-emacs@gnu.org>...
> 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.
> =
> = <http://www.wonderworks.com/download/setnu.el>
> = _______________________________________________
> = Help-gnu-emacs mailing list
> = Help-gnu-emacs@gnu.org
> = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> =
next parent reply other threads:[~2004-01-15 3:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.651.1074102458.928.help-gnu-emacs@gnu.org>
2004-01-15 3:45 ` Christian Seberino [this message]
2004-01-15 4:23 ` Does Emacs have a line-number function or is %l the only equivalent? Christopher J. White
2004-01-15 16:07 ` Kevin Rodgers
2004-01-12 19:29 Christian Seberino
2004-01-12 19:42 ` Henrik Enberg
2004-01-14 17:18 ` gebser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf23f78f.0401141945.68d34728@posting.google.com \
--to=seberino@spawar.navy.mil \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).