Commit 7e735aaf authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix for what-page (Bug#6825).

* textmodes/page.el (what-page): Use line-number-at-pos to
calculate line number.
parent 40954368
2011-04-10 Stephen Berman <stephen.berman@gmx.net>
* textmodes/page.el (what-page): Use line-number-at-pos to
calculate line number (Bug#6825).
2011-04-10 Chong Yidong <cyd@stupidchicken.com>
* mouse.el (mouse-drag-mode-line-1): Make sure that if we push
......
......@@ -156,9 +156,9 @@ 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))))))
;;; Place `provide' at end of file.
(provide 'page)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment