(defsubst message-delete-line (&optional n)
"Delete the current line (and the next N lines)."
+ (declare (obsolete delete-line "29.1"))
(delete-region (progn (beginning-of-line) (point))
(progn (forward-line (or n 1)) (point))))
(setq old-subject
(message-strip-subject-re old-subject))
(message-goto-subject)
- (message-delete-line)
+ (delete-line)
(insert (concat "Subject: "
new-subject
" (was: "
(while (re-search-backward
(concat "^" (regexp-quote message-cross-post-note) ".*")
head t)
- (message-delete-line))
+ (delete-line))
(message-goto-signature)
(while (re-search-backward
(concat "^" (regexp-quote message-followup-to-note) ".*")
head t)
- (message-delete-line))
+ (delete-line))
;; insert new note
(if (message-goto-signature)
(re-search-backward message-signature-separator))
(cond (cc-content
(save-excursion
(message-goto-to)
- (message-delete-line)
+ (delete-line)
(insert (concat "To: " cc-content "\n"))
(save-restriction
(message-narrow-to-headers)
;; Delete blank lines at the start of the buffer.
(goto-char (point-min))
(while (and (eolp) (not (eobp)))
- (message-delete-line))
+ (delete-line))
;; Delete blank lines at the end of the buffer.
(goto-char (point-max))
(unless (eq (preceding-char) ?\n)
(insert "\n"))
(while (and (zerop (forward-line -1))
(looking-at "$"))
- (message-delete-line)))
+ (delete-line)))
;; Do the indentation.
(if (null message-yank-prefix)
(indent-rigidly start (or end (mark t)) message-indentation-spaces)
(let ((headers message-mh-deletable-headers))
(while headers
(goto-char (point-min))
- (and (re-search-forward
- (concat "^" (symbol-name (car headers)) ": *") nil t)
- (message-delete-line))
+ (when (re-search-forward
+ (concat "^" (symbol-name (car headers)) ": *") nil t)
+ (delete-line))
(pop headers))))
(run-hooks 'message-send-mail-hook)
;; Pass it on to mh.
(and (re-search-forward
(concat "^" (symbol-name (car headers)) ": *") nil t)
(get-text-property (1+ (match-beginning 0)) 'message-deletable)
- (message-delete-line))
+ (delete-line))
(pop headers)))
;; Go through all the required headers and see if they are in the
;; articles already. If they are not, or are empty, they are
;; Tapdance around looong Message-IDs.
(forward-line -1)
(when (looking-at "[ \t]*$")
- (message-delete-line))
+ (delete-line))
(goto-char begin)
(search-forward ":" nil t)
(when (looking-at "\n[ \t]+")