]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/page.el
Merge from emacs-24; up to 117691
[gnu-emacs] / lisp / textmodes / page.el
index e85c0835387cecf1803404625c72b695e7bd4e90..d5351089d51fe5eb35c65c9528849cffb31df214 100644 (file)
@@ -1,16 +1,8 @@
-;; (push-mark (point) t)  needed at the end of forward-page 
-;; The documentation in simple.el for set-mark says
-;;   To remember a location for internal use in the Lisp program,
-;;   store it in a Lisp variable.  Example:
-;;      (let ((beg (point))) (forward-line 1) (delete-region beg (point)))."
-
-
 ;;; page.el --- page motion commands for Emacs
 
-;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005,
-;;   2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 2001-2014 Free Software Foundation, Inc.
 
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: wp convenience
 ;; Package: emacs
 
@@ -164,12 +156,11 @@ thus showing a page other than the one point was originally in."
           (if (= (match-beginning 0) (match-end 0))
               (forward-char 1))
          (setq count (1+ count)))
-       (message "Page %d, line %d"
-                count
-                (1+ (count-lines (point) opoint)))))))
+       (message "Page %d, line %d" count (line-number-at-pos opoint))))))
+
+
 \f
 ;;; Place `provide' at end of file.
 (provide 'page)
 
-;; arch-tag: e8d7a0bd-8655-4b6e-b852-f2ee25316a1d
 ;;; page.el ends here