diff options
| author | Eli Zaretskii | 2005-09-10 15:22:29 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-09-10 15:22:29 +0000 |
| commit | 0e43543032f5cc902caaed55ac7191f586d9e74b (patch) | |
| tree | a8429f907b80cfbaf03c3545646d51093163417b | |
| parent | c10b0abc3891947ffe2b56ed8228e8d1a8b7c583 (diff) | |
| download | emacs-0e43543032f5cc902caaed55ac7191f586d9e74b.tar.gz emacs-0e43543032f5cc902caaed55ac7191f586d9e74b.zip | |
(narrow-to-page): Exclude _entire_ multi-line delimiter from the region
narrowed to.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/page.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ba777467eb6..a019c5a9f08 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-09-10 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * page.el (narrow-to-page): Exclude _entire_ multi-line delimiter | ||
| 4 | from the region narrowed to. | ||
| 5 | |||
| 1 | 2005-09-10 Magnus Henoch <mange@freemail.hu> | 6 | 2005-09-10 Magnus Henoch <mange@freemail.hu> |
| 2 | 7 | ||
| 3 | * textmodes/ispell.el (ispell-check-version): Signal an error if | 8 | * textmodes/ispell.el (ispell-check-version): Signal an error if |
diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el index ffb4c89f2db..3ec1eca1fb7 100644 --- a/lisp/textmodes/page.el +++ b/lisp/textmodes/page.el | |||
| @@ -112,7 +112,7 @@ thus showing a page other than the one point was originally in." | |||
| 112 | (save-excursion | 112 | (save-excursion |
| 113 | (goto-char (match-beginning 0)) ; was (beginning-of-line) | 113 | (goto-char (match-beginning 0)) ; was (beginning-of-line) |
| 114 | (looking-at page-delimiter))) | 114 | (looking-at page-delimiter))) |
| 115 | (beginning-of-line)) | 115 | (goto-char (match-beginning 0))) ; was (beginning-of-line) |
| 116 | (narrow-to-region (point) | 116 | (narrow-to-region (point) |
| 117 | (progn | 117 | (progn |
| 118 | ;; Find the top of the page. | 118 | ;; Find the top of the page. |