diff options
| author | Kenichi Handa | 2006-01-19 11:59:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-01-19 11:59:55 +0000 |
| commit | d9bf0f5a30bfbfd0ddd69166b470b26cbd6d9392 (patch) | |
| tree | 68473f1bce93b62749b6c8ac12b390f9c3cc286a | |
| parent | 9a8ee44887f9429e294cf7a32ce0c158930104d4 (diff) | |
| download | emacs-d9bf0f5a30bfbfd0ddd69166b470b26cbd6d9392.tar.gz emacs-d9bf0f5a30bfbfd0ddd69166b470b26cbd6d9392.zip | |
(rmail-enable-mime): Docstring fixed.
(rmail-mime-feature): Likewise.
(rmail-require-mime-maybe): Use display-warning to show a warning
message.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 21 |
2 files changed, 22 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9e67c7dacdf..ff40c2a961e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -6,6 +6,11 @@ | |||
| 6 | 6 | ||
| 7 | 2006-01-19 Kenichi Handa <handa@m17n.org> | 7 | 2006-01-19 Kenichi Handa <handa@m17n.org> |
| 8 | 8 | ||
| 9 | * mail/rmail.el (rmail-enable-mime): Docstring fixed. | ||
| 10 | (rmail-mime-feature): Likewise. | ||
| 11 | (rmail-require-mime-maybe): Use display-warning to show a warning | ||
| 12 | message. | ||
| 13 | |||
| 9 | * international/mule.el (auto-coding-regexp-alist-lookup): New | 14 | * international/mule.el (auto-coding-regexp-alist-lookup): New |
| 10 | function. | 15 | function. |
| 11 | (find-auto-coding): Use auto-coding-regexp-alist-lookup. | 16 | (find-auto-coding): Use auto-coding-regexp-alist-lookup. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 1ab32aba45d..4fe936d9d2d 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -543,7 +543,11 @@ This is set to nil by default.") | |||
| 543 | "*If non-nil, RMAIL uses MIME feature. | 543 | "*If non-nil, RMAIL uses MIME feature. |
| 544 | If the value is t, RMAIL automatically shows MIME decoded message. | 544 | If the value is t, RMAIL automatically shows MIME decoded message. |
| 545 | If the value is neither t nor nil, RMAIL does not show MIME decoded message | 545 | If the value is neither t nor nil, RMAIL does not show MIME decoded message |
| 546 | until a user explicitly requires it." | 546 | until a user explicitly requires it. |
| 547 | |||
| 548 | Even if the value is non-nil, you can't use MIME feature | ||
| 549 | if the feature specified by `rmail-mime-feature' is not available | ||
| 550 | in your session." | ||
| 547 | :type '(choice (const :tag "on" t) | 551 | :type '(choice (const :tag "on" t) |
| 548 | (const :tag "off" nil) | 552 | (const :tag "off" nil) |
| 549 | (other :tag "when asked" ask)) | 553 | (other :tag "when asked" ask)) |
| @@ -595,7 +599,10 @@ LIMIT is the position specifying the end of header.") | |||
| 595 | (defvar rmail-mime-feature 'rmail-mime | 599 | (defvar rmail-mime-feature 'rmail-mime |
| 596 | "Feature to require to load MIME support in Rmail. | 600 | "Feature to require to load MIME support in Rmail. |
| 597 | When starting Rmail, if `rmail-enable-mime' is non-nil, | 601 | When starting Rmail, if `rmail-enable-mime' is non-nil, |
| 598 | this feature is required with `require'.") | 602 | this feature is required with `require'. |
| 603 | |||
| 604 | The default value is `rmail-mime'. This feature is provided by | ||
| 605 | the rmail-mime package available at <http://www.m17n.org/rmail-mime/>.") | ||
| 599 | 606 | ||
| 600 | ;;;###autoload | 607 | ;;;###autoload |
| 601 | (defvar rmail-decode-mime-charset t | 608 | (defvar rmail-decode-mime-charset t |
| @@ -735,8 +742,14 @@ isn't provided." | |||
| 735 | (condition-case err | 742 | (condition-case err |
| 736 | (require rmail-mime-feature) | 743 | (require rmail-mime-feature) |
| 737 | (error | 744 | (error |
| 738 | (message "Feature `%s' not provided" rmail-mime-feature) | 745 | (display-warning |
| 739 | (sit-for 1) | 746 | :warning |
| 747 | (format "Although MIME support is requested | ||
| 748 | by setting `rmail-enable-mime' to non-nil, the required feature | ||
| 749 | `%s' (the value of `rmail-mime-feature') | ||
| 750 | is not available in the current session. | ||
| 751 | So, the MIME support is turned off for the moment." | ||
| 752 | rmail-mime-feature)) | ||
| 740 | (setq rmail-enable-mime nil))))) | 753 | (setq rmail-enable-mime nil))))) |
| 741 | 754 | ||
| 742 | 755 | ||