# HG changeset patch # User Richard M. Stallman # Date 740258674 0 # Node ID 02c40620b4de97e373d472ce4ade707962e66ef4 # Parent ff96792939220555868994fefa8c74a0de1ee0e8 (rmail-output): Use insert-file-contents to look at beginning of output file. diff -r ff9679293922 -r 02c40620b4de lisp/mail/rmailout.el --- a/lisp/mail/rmailout.el Wed Jun 16 17:51:16 1993 +0000 +++ b/lisp/mail/rmailout.el Wed Jun 16 19:24:34 1993 +0000 @@ -162,16 +162,14 @@ ;; If we can do it, read a little of the file ;; to check whether it is an RMAIL file. ;; If it is, don't mess it up. - (if (fboundp 'insert-partial-file-contents) - (progn - (insert-partial-file-contents file-name 0 20) - (if (looking-at "BABYL OPTIONS:\n") - (error (save-excursion - (set-buffer rmailbuf) - (substitute-command-keys - "File %s is an RMAIL file; use the \\[rmail-output-to-rmail-file] command")) - file-name)) - (erase-buffer))) + (insert-file-contents file-name nil 0 20) + (if (looking-at "BABYL OPTIONS:\n") + (error (save-excursion + (set-buffer rmailbuf) + (substitute-command-keys + "Use \\[rmail-output-to-rmail-file] to output to Rmail file `%s'")) + (file-name-nondirectory file-name))) + (erase-buffer) (insert-buffer-substring rmailbuf) (insert "\n") (goto-char (point-min))