diff options
| author | Richard M. Stallman | 2004-02-17 01:07:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-02-17 01:07:22 +0000 |
| commit | 360f2e91407e3c10f497871ebdc596fa84cbc0ec (patch) | |
| tree | 4dfc6e8579c6072e037b435d7882254d5242fad6 | |
| parent | c2d8228a0abb0dcf33a838de158f6b26ca795320 (diff) | |
| download | emacs-360f2e91407e3c10f497871ebdc596fa84cbc0ec.tar.gz emacs-360f2e91407e3c10f497871ebdc596fa84cbc0ec.zip | |
(Text Lines): Don't add -1 in current-line.
| -rw-r--r-- | lispref/positions.texi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lispref/positions.texi b/lispref/positions.texi index 1dee0398050..100b55d01dd 100644 --- a/lispref/positions.texi +++ b/lispref/positions.texi | |||
| @@ -403,8 +403,7 @@ Here is an example of using @code{count-lines}: | |||
| 403 | (defun current-line () | 403 | (defun current-line () |
| 404 | "Return the vertical position of point@dots{}" | 404 | "Return the vertical position of point@dots{}" |
| 405 | (+ (count-lines (window-start) (point)) | 405 | (+ (count-lines (window-start) (point)) |
| 406 | (if (= (current-column) 0) 1 0) | 406 | (if (= (current-column) 0) 1 0))) |
| 407 | -1)) | ||
| 408 | @end group | 407 | @end group |
| 409 | @end example | 408 | @end example |
| 410 | @end defun | 409 | @end defun |