summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2005-11-17 16:30:52 +0000
committerChong Yidong <cyd@stupidchicken.com>2005-11-17 16:30:52 +0000
commit4ea0018b7fd298525be4b9eb54d720a74e2f18a1 (patch)
tree24d3e53614f889bc69fea4a1972410da37fe3cf6 /lisp/add-log.el
parent9f5f5ff2cf0d6b186470c70b2d71aa7f05260daa (diff)
downloademacs-4ea0018b7fd298525be4b9eb54d720a74e2f18a1.tar.gz
* simple.el (hard-newline): New variable.
* mail/sendmail.el (mail-setup, mail-send, mail-insert-from-field) (sendmail-send-it, mail-do-fcc, mail-cc, mail-bcc, mail-fcc) (mail-mail-reply-to, mail-mail-followup-to) (mail-position-on-field, mail-signature, mail-yank-original) (mail-attach-file): Use it. * mail/mailheader.el (mail-header-format) (mail-header-format-function): Likewise. * add-log.el (add-change-log-entry, change-log-merge): Likewise.
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index 91d7ba36bab..d7f9f9b9846 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -551,7 +551,7 @@ non-nil, otherwise in local time."
(forward-line 1)
(insert (nth (random (length new-entries))
new-entries)
- "\n\n")
+ hard-newline hard-newline)
(forward-line -1)))
;; Determine where we should stop searching for a usable
@@ -584,7 +584,7 @@ non-nil, otherwise in local time."
;; Delete excess empty lines; make just 2.
(while (and (not (eobp)) (looking-at "^\\s *$"))
(delete-region (point) (line-beginning-position 2)))
- (insert-char ?\n 2)
+ (insert hard-newline hard-newline)
(forward-line -2)
(indent-relative-maybe))
(t
@@ -593,7 +593,7 @@ non-nil, otherwise in local time."
(forward-line 1))
(while (and (not (eobp)) (looking-at "^\\s *$"))
(delete-region (point) (line-beginning-position 2)))
- (insert-char ?\n 3)
+ (insert hard-newline hard-newline hard-newline)
(forward-line -2)
(indent-to left-margin)
(insert "* ")
@@ -1066,7 +1066,7 @@ old-style time formats for entries are supported."
(and (= ?\n (char-before))
(or (<= (1- (point)) (point-min))
(= ?\n (char-before (1- (point)))))))
- (insert "\n"))
+ (insert hard-newline))
;; Move to the end of it to terminate outer loop.
(with-current-buffer other-buf
(goto-char (point-max)))