aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-01-27 03:41:25 +0000
committerGlenn Morris2009-01-27 03:41:25 +0000
commitd654dddf136abcf076d06d992f47508700e54bfb (patch)
tree6eafa3a1172715b7081d221a291b66268ff760a1
parent3fbc055fd83495fa8f26a13b5c7c9b1e5c6d4301 (diff)
downloademacs-d654dddf136abcf076d06d992f47508700e54bfb.tar.gz
emacs-d654dddf136abcf076d06d992f47508700e54bfb.zip
(command-line-args-left): Remove unneeded declaration.
(batch-unrmail, unrmail): Doc fix.
-rw-r--r--lisp/mail/unrmail.el22
1 files changed, 9 insertions, 13 deletions
diff --git a/lisp/mail/unrmail.el b/lisp/mail/unrmail.el
index 6366eb60599..619e7e2b1c3 100644
--- a/lisp/mail/unrmail.el
+++ b/lisp/mail/unrmail.el
@@ -1,7 +1,7 @@
1;;; unrmail.el --- convert Rmail files to mailbox files 1;;; unrmail.el --- convert Rmail Babyl files to mailbox files
2 2
3;; Copyright (C) 1992, 2001, 2002, 2003, 2004, 2005, 3;; Copyright (C) 1992, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2009 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: mail 7;; Keywords: mail
@@ -25,16 +25,13 @@
25 25
26;;; Code: 26;;; Code:
27 27
28(defvar command-line-args-left) ;Avoid 'free variable' warning
29
30;;;###autoload 28;;;###autoload
31(defun batch-unrmail () 29(defun batch-unrmail ()
32 "Convert Rmail files to system inbox format. 30 "Convert old-style Rmail Babyl files to system inbox format.
33Specify the input Rmail file names as command line arguments. 31Specify the input Rmail Babyl file names as command line arguments.
34For each Rmail file, the corresponding output file name 32For each Rmail file, the corresponding output file name
35is made by adding `.mail' at the end. 33is made by adding `.mail' at the end.
36For example, invoke `emacs -batch -f batch-unrmail RMAIL'." 34For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
37 ;; command-line-args-left is what is left of the command line (from startup.el)
38 (if (not noninteractive) 35 (if (not noninteractive)
39 (error "`batch-unrmail' is to be used only with -batch")) 36 (error "`batch-unrmail' is to be used only with -batch"))
40 (let ((error nil)) 37 (let ((error nil))
@@ -50,8 +47,8 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
50 47
51;;;###autoload 48;;;###autoload
52(defun unrmail (file to-file) 49(defun unrmail (file to-file)
53 "Convert Rmail file FILE to system inbox format file TO-FILE." 50 "Convert old-style Rmail Babyl file FILE to system inbox format file TO-FILE."
54 (interactive "fUnrmail (rmail file): \nFUnrmail into (new mailbox file): ") 51 (interactive "fUnrmail (babyl file): \nFUnrmail into (new mailbox file): ")
55 (with-temp-buffer 52 (with-temp-buffer
56 ;; Read in the old Rmail file with no decoding. 53 ;; Read in the old Rmail file with no decoding.
57 (let ((coding-system-for-read 'raw-text)) 54 (let ((coding-system-for-read 'raw-text))
@@ -177,7 +174,7 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
177 ;; Some operations on the message header itself. 174 ;; Some operations on the message header itself.
178 (goto-char (point-min)) 175 (goto-char (point-min))
179 (save-restriction 176 (save-restriction
180 (narrow-to-region 177 (narrow-to-region
181 (point-min) 178 (point-min)
182 (save-excursion (search-forward "\n\n" nil 'move) (point))) 179 (save-excursion (search-forward "\n\n" nil 'move) (point)))
183 180
@@ -225,6 +222,5 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
225 222
226(provide 'unrmail) 223(provide 'unrmail)
227 224
228;;; unrmail.el ends here
229
230;; arch-tag: 14c6290d-60b2-456f-8909-5c2387de6acb 225;; arch-tag: 14c6290d-60b2-456f-8909-5c2387de6acb
226;;; unrmail.el ends here