* mail/sendmail.el (mail): Use new buffer if `noerase' is `new'.
Fix behavior if noerase is `t' and there is no mail buffer.
* simple.el (sendmail-user-agent-compose): Use a new mail buffer
if `continue' is nil, rather than signal an error.
* custom.el (custom-push-theme): Handle the case where a symbol is
bound but face properties have not yet been assigned.
- * mail/sendmail.el (mail): Use new buffer if `noerase' argument is
- `new'.
+ * mail/sendmail.el (mail): Use new buffer if `noerase' is `new'.
+ Fix behavior if noerase is `t' and there is no mail buffer.
+
+ * simple.el (sendmail-user-agent-compose): Use a new mail buffer
+ if `continue' is nil, rather than signal an error.
2005-09-12 Richard M. Stallman <rms@gnu.org>
(if (eq noerase 'new)
(pop-to-buffer (generate-new-buffer "*mail*"))
+ (and noerase
+ (not (get-buffer "*mail*"))
+ (setq noerase nil))
(pop-to-buffer "*mail*"))
;; Avoid danger that the auto-save file can't be written.
;; (in case the user has actually visited a file *mail*).
; (set-visited-file-name nil)
(let (initialized)
- (and (or (not noerase)
- (eq noerase 'new))
+ (and (not (and noerase
+ (not (eq noerase 'new))))
(if buffer-file-name
(if (buffer-modified-p)
(when (y-or-n-p "Buffer has unsaved changes; reinitialize it and discard them? ")
(let ((cc (cdr (assoc-string "cc" other-headers t)))
(in-reply-to (cdr (assoc-string "in-reply-to" other-headers t)))
(body (cdr (assoc-string "body" other-headers t))))
- (or (mail continue to subject in-reply-to cc yank-action send-actions)
- continue
- (error "Message aborted"))
+ (mail (if continue t 'new)
+ to subject in-reply-to cc yank-action send-actions)
(save-excursion
(rfc822-goto-eoh)
(while other-headers