(format "%d files" (length files))
"this file"))))
+(declare-function mail-text "sendmail" ())
+(declare-function message-goto-body "message" (&optional interactive))
(defun vc-steal-lock (file rev owner)
"Steal the lock on FILE."
(let (file-description)
;; goes wrong, we don't want to send any mail.
(compose-mail owner (format "Stolen lock on %s" file-description))
(setq default-directory (expand-file-name "~/"))
- (goto-char (point-max))
+ (cond
+ ((eq mail-user-agent 'sendmail-user-agent)
+ (mail-text))
+ ((message-goto-body)))
(insert
(format "I stole the lock on %s, " file-description)
(current-time-string)