|
From: | Jesper Harder |
Subject: | Re: line number of the point? |
Date: | Fri, 21 Nov 2003 11:26:31 +0100 |
User-agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Miguel Frasson <frasson@enquist.math.leidenuniv.nl> writes: > How do I discover the number of the current line (for use in a > function)? The Emacs Lisp Manual has this example: (defun current-line () "Return the vertical position of point..." (+ (count-lines (window-start) (point)) (if (= (current-column) 0) 1 0) -1))
[Prev in Thread] | Current Thread | [Next in Thread] |