aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-04-10 16:52:31 -0400
committerChong Yidong2011-04-10 16:52:31 -0400
commit7e735aaf4d422be1c3bdf6a72e0ce6043a3e2cdf (patch)
tree1e5b35e376c9bbcd6a07b62767203438e780eb3a
parent4095436808b499ffb813daac6f7cea828318faa5 (diff)
downloademacs-7e735aaf4d422be1c3bdf6a72e0ce6043a3e2cdf.tar.gz
emacs-7e735aaf4d422be1c3bdf6a72e0ce6043a3e2cdf.zip
Fix for what-page (Bug#6825).
* textmodes/page.el (what-page): Use line-number-at-pos to calculate line number.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/page.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2ed50e4b6f..c89bb3f281a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-10 Stephen Berman <stephen.berman@gmx.net>
2
3 * textmodes/page.el (what-page): Use line-number-at-pos to
4 calculate line number (Bug#6825).
5
12011-04-10 Chong Yidong <cyd@stupidchicken.com> 62011-04-10 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * mouse.el (mouse-drag-mode-line-1): Make sure that if we push 8 * mouse.el (mouse-drag-mode-line-1): Make sure that if we push
diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el
index d71e20030ff..a758a9ba998 100644
--- a/lisp/textmodes/page.el
+++ b/lisp/textmodes/page.el
@@ -156,9 +156,9 @@ thus showing a page other than the one point was originally in."
156 (if (= (match-beginning 0) (match-end 0)) 156 (if (= (match-beginning 0) (match-end 0))
157 (forward-char 1)) 157 (forward-char 1))
158 (setq count (1+ count))) 158 (setq count (1+ count)))
159 (message "Page %d, line %d" 159 (message "Page %d, line %d" count (line-number-at-pos opoint))))))
160 count 160
161 (1+ (count-lines (point) opoint))))))) 161
162 162
163;;; Place `provide' at end of file. 163;;; Place `provide' at end of file.
164(provide 'page) 164(provide 'page)