summaryrefslogtreecommitdiff
path: root/lisp/textmodes/page.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-09-15 01:21:41 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-09-15 01:21:41 +0000
commitfbc88440ddf307a6ec5d0254740b09314abf1ad0 (patch)
treefb2db3c30350baa8a95dc93aa8dc8b726b8b1500 /lisp/textmodes/page.el
parent60308853c3ff3563d9e5855b37824b0aa3555eed (diff)
downloademacs-fbc88440ddf307a6ec5d0254740b09314abf1ad0.tar.gz
(what-page): Don't move to beginning of line.
See <87tyz5ajte.fsf@x2.delysid.org> in emacs-devel.
Diffstat (limited to 'lisp/textmodes/page.el')
-rw-r--r--lisp/textmodes/page.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el
index e650a88f6f3..79976459ff6 100644
--- a/lisp/textmodes/page.el
+++ b/lisp/textmodes/page.el
@@ -149,10 +149,9 @@ thus showing a page other than the one point was originally in."
(save-restriction
(widen)
(save-excursion
- (beginning-of-line)
(let ((count 1)
(opoint (point)))
- (goto-char 1)
+ (goto-char (point-min))
(while (re-search-forward page-delimiter opoint t)
(setq count (1+ count)))
(message "Page %d, line %d"