aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-09-15 01:21:41 +0000
committerStefan Monnier2009-09-15 01:21:41 +0000
commitfbc88440ddf307a6ec5d0254740b09314abf1ad0 (patch)
treefb2db3c30350baa8a95dc93aa8dc8b726b8b1500
parent60308853c3ff3563d9e5855b37824b0aa3555eed (diff)
downloademacs-fbc88440ddf307a6ec5d0254740b09314abf1ad0.tar.gz
emacs-fbc88440ddf307a6ec5d0254740b09314abf1ad0.zip
(what-page): Don't move to beginning of line.
See <87tyz5ajte.fsf@x2.delysid.org> in emacs-devel.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/page.el3
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5884e69dd69..5acc46dafec 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * textmodes/page.el (what-page): Don't move to beginning of line.
4 See <87tyz5ajte.fsf@x2.delysid.org> in emacs-devel.
5
12009-09-15 Dan Nicolaescu <dann@ics.uci.edu> 62009-09-15 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * vc-git.el (vc-git-dir-extra-headers): Show the remote location. 8 * vc-git.el (vc-git-dir-extra-headers): Show the remote location.
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."
149 (save-restriction 149 (save-restriction
150 (widen) 150 (widen)
151 (save-excursion 151 (save-excursion
152 (beginning-of-line)
153 (let ((count 1) 152 (let ((count 1)
154 (opoint (point))) 153 (opoint (point)))
155 (goto-char 1) 154 (goto-char (point-min))
156 (while (re-search-forward page-delimiter opoint t) 155 (while (re-search-forward page-delimiter opoint t)
157 (setq count (1+ count))) 156 (setq count (1+ count)))
158 (message "Page %d, line %d" 157 (message "Page %d, line %d"