diff options
| author | Glenn Morris | 2009-02-10 03:39:38 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-10 03:39:38 +0000 |
| commit | 7dbed4848310ea510b4433642c2c12b57ab896e0 (patch) | |
| tree | c383055b0b6c5648cf12d64dbbb22f0b601c7255 | |
| parent | efb656fd19a9284ecd3aa264d0ab76ee92abeb48 (diff) | |
| download | emacs-7dbed4848310ea510b4433642c2c12b57ab896e0.tar.gz emacs-7dbed4848310ea510b4433642c2c12b57ab896e0.zip | |
(mail-use-rfc822): Remove * from defcustom doc.
(mail-file-babyl-p): Use with-temp-buffer.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/mail-utils.el | 15 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e43dfb74c3..e311549257e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-10 Glenn Morris <rgm@gnu.org> | 1 | 2009-02-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/mail-utils.el (mail-use-rfc822): Remove * from defcustom doc. | ||
| 4 | (mail-file-babyl-p): Use with-temp-buffer. | ||
| 5 | |||
| 3 | * mail/rmailsort.el: Just require rmail. | 6 | * mail/rmailsort.el: Just require rmail. |
| 4 | 7 | ||
| 5 | * mail/rmailedit.el: Just require rmail. | 8 | * mail/rmailedit.el: Just require rmail. |
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index 2311efc37ee..9c607cb4f4c 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el | |||
| @@ -33,8 +33,8 @@ | |||
| 33 | (require 'lisp-mode) | 33 | (require 'lisp-mode) |
| 34 | 34 | ||
| 35 | ;;;###autoload | 35 | ;;;###autoload |
| 36 | (defcustom mail-use-rfc822 nil "\ | 36 | (defcustom mail-use-rfc822 nil |
| 37 | *If non-nil, use a full, hairy RFC822 parser on mail addresses. | 37 | "If non-nil, use a full, hairy RFC822 parser on mail addresses. |
| 38 | Otherwise, (the default) use a smaller, somewhat faster, and | 38 | Otherwise, (the default) use a smaller, somewhat faster, and |
| 39 | often correct parser." | 39 | often correct parser." |
| 40 | :type 'boolean | 40 | :type 'boolean |
| @@ -43,13 +43,10 @@ often correct parser." | |||
| 43 | ;; Returns t if file FILE is an Rmail file. | 43 | ;; Returns t if file FILE is an Rmail file. |
| 44 | ;;;###autoload | 44 | ;;;###autoload |
| 45 | (defun mail-file-babyl-p (file) | 45 | (defun mail-file-babyl-p (file) |
| 46 | (let ((buf (generate-new-buffer " *rmail-file-p*"))) | 46 | "Return non-nil if FILE is a Babyl file." |
| 47 | (unwind-protect | 47 | (with-temp-buffer |
| 48 | (save-excursion | 48 | (insert-file-contents file nil 0 100) |
| 49 | (set-buffer buf) | 49 | (looking-at "BABYL OPTIONS:"))) |
| 50 | (insert-file-contents file nil 0 100) | ||
| 51 | (looking-at "BABYL OPTIONS:")) | ||
| 52 | (kill-buffer buf)))) | ||
| 53 | 50 | ||
| 54 | (defun mail-string-delete (string start end) | 51 | (defun mail-string-delete (string start end) |
| 55 | "Returns a string containing all of STRING except the part | 52 | "Returns a string containing all of STRING except the part |