[Top][All Lists]

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

Re: line number of the point?

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 <> 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)

reply via email to

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