mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(add-change-log-entry): Restrict PARAGRAPH-END to being on the first
page.
This commit is contained in:
parent
c7e6987699
commit
63ed0aa079
1 changed files with 5 additions and 1 deletions
|
|
@ -112,10 +112,14 @@ Third arg OTHER-WINDOW non-nil means visit in other window."
|
|||
" " full-name
|
||||
" (" login-name "@" site-name ")\n\n"))
|
||||
|
||||
;; Search only within the first paragraph.
|
||||
;; Search only within the first paragraph of the first page.
|
||||
(forward-paragraph 1)
|
||||
(setq paragraph-end (point))
|
||||
(goto-char (point-min))
|
||||
(forward-page 1)
|
||||
(if (< (point) paragraph-end)
|
||||
(setq paragraph-end (point)))
|
||||
(goto-char (point-min))
|
||||
|
||||
;; Now insert the new line for this entry.
|
||||
(cond ((re-search-forward "^\\s *\\*\\s *$" paragraph-end t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue