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

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

Re: print line numbe


From: Bernardo
Subject: Re: print line numbe
Date: Sun, 29 Sep 2013 12:08:51 +1000
User-agent: Thunderbird 2.0.0.24 (X11/20100228)

It was a dark and stormy night when Harry Putnam said  (29/09/13 11:25):
How can I make a piece of elisp report the line number when it prints
a message?

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

Something like:

(message "Hello from line: " something-that-reports-line-number)



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



reply via email to

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