diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/page.el | 6 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-04-10 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-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) |