help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print line numbe


From: Barry OReilly
Subject: Re: print line numbe
Date: Tue, 1 Oct 2013 09:52:22 -0400

>> Something along the line of the __LINE__ operator in perl, or
>> the $LINENO operator in shell-scripting.

> (message  "Hello from line: %d" (line-number-at-pos))

I thought he was asking for the line number of the message call in the .el,
not the position of point in the current buffer.

Something like __FILE__ and __LINE__ for Elisp would be nice to have.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]