aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Francoise2006-01-13 20:11:35 +0000
committerRomain Francoise2006-01-13 20:11:35 +0000
commit97f4e87c36c36f6a6382166746f763dcd36f28b2 (patch)
treec75db4ebc44f6db3218296035fef2ce5691111f2
parente47f89f079c09db05b5eff303f047b419fa972a7 (diff)
downloademacs-97f4e87c36c36f6a6382166746f763dcd36f28b2.tar.gz
emacs-97f4e87c36c36f6a6382166746f763dcd36f28b2.zip
(add-change-log-entry, change-log-merge):
Conditionally use `hard-newline'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/add-log.el14
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fb53df771ca..7dbc623ceaa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-01-13 Romain Francoise <romain@orebokech.com>
2
3 * add-log.el (add-change-log-entry, change-log-merge):
4 Conditionally use `hard-newline'.
5
12006-01-13 Martin Rudalics <rudalics@gmx.at> (tiny change) 62006-01-13 Martin Rudalics <rudalics@gmx.at> (tiny change)
2 7
3 * wid-edit.el (widget-field-end): If the overlay is no longer 8 * wid-edit.el (widget-field-end): If the overlay is no longer
diff --git a/lisp/add-log.el b/lisp/add-log.el
index d7f9f9b9846..d504b57ae17 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -1,7 +1,7 @@
1;;; add-log.el --- change log maintenance commands for Emacs 1;;; add-log.el --- change log maintenance commands for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1988, 1993, 1994, 1997, 1998, 2000, 2002, 3;; Copyright (C) 1985, 1986, 1988, 1993, 1994, 1997, 1998, 2000, 2002,
4;; 2003, 2004, 2005 Free Software Foundation, Inc. 4;; 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: tools 7;; Keywords: tools
@@ -551,7 +551,8 @@ non-nil, otherwise in local time."
551 (forward-line 1) 551 (forward-line 1)
552 (insert (nth (random (length new-entries)) 552 (insert (nth (random (length new-entries))
553 new-entries) 553 new-entries)
554 hard-newline hard-newline) 554 (if use-hard-newlines hard-newline "\n")
555 (if use-hard-newlines hard-newline "\n"))
555 (forward-line -1))) 556 (forward-line -1)))
556 557
557 ;; Determine where we should stop searching for a usable 558 ;; Determine where we should stop searching for a usable
@@ -584,7 +585,8 @@ non-nil, otherwise in local time."
584 ;; Delete excess empty lines; make just 2. 585 ;; Delete excess empty lines; make just 2.
585 (while (and (not (eobp)) (looking-at "^\\s *$")) 586 (while (and (not (eobp)) (looking-at "^\\s *$"))
586 (delete-region (point) (line-beginning-position 2))) 587 (delete-region (point) (line-beginning-position 2)))
587 (insert hard-newline hard-newline) 588 (insert (if use-hard-newlines hard-newline "\n")
589 (if use-hard-newlines hard-newline "\n"))
588 (forward-line -2) 590 (forward-line -2)
589 (indent-relative-maybe)) 591 (indent-relative-maybe))
590 (t 592 (t
@@ -593,7 +595,9 @@ non-nil, otherwise in local time."
593 (forward-line 1)) 595 (forward-line 1))
594 (while (and (not (eobp)) (looking-at "^\\s *$")) 596 (while (and (not (eobp)) (looking-at "^\\s *$"))
595 (delete-region (point) (line-beginning-position 2))) 597 (delete-region (point) (line-beginning-position 2)))
596 (insert hard-newline hard-newline hard-newline) 598 (insert (if use-hard-newlines hard-newline "\n")
599 (if use-hard-newlines hard-newline "\n")
600 (if use-hard-newlines hard-newline "\n"))
597 (forward-line -2) 601 (forward-line -2)
598 (indent-to left-margin) 602 (indent-to left-margin)
599 (insert "* ") 603 (insert "* ")
@@ -1066,7 +1070,7 @@ old-style time formats for entries are supported."
1066 (and (= ?\n (char-before)) 1070 (and (= ?\n (char-before))
1067 (or (<= (1- (point)) (point-min)) 1071 (or (<= (1- (point)) (point-min))
1068 (= ?\n (char-before (1- (point))))))) 1072 (= ?\n (char-before (1- (point)))))))
1069 (insert hard-newline)) 1073 (insert (if use-hard-newlines hard-newline "\n")))
1070 ;; Move to the end of it to terminate outer loop. 1074 ;; Move to the end of it to terminate outer loop.
1071 (with-current-buffer other-buf 1075 (with-current-buffer other-buf
1072 (goto-char (point-max))) 1076 (goto-char (point-max)))