From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: Rmail: rmail-enable-mime is causing troubles Date: Wed, 11 Jan 2006 20:16:28 +0900 Message-ID: References: <1136851298.818441.8389.nullmailer@totoz-linux.gnu-rox.org> <200601101154.k0ABsWsm011714@rocksteady.printf.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1136990627 3488 80.91.229.2 (11 Jan 2006 14:43:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 14:43:47 +0000 (UTC) Cc: zedek@gnu.org, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Wed Jan 11 15:43:41 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwhCM-0004E9-Fx for gebp-emacs-pretest-bug@gmane.org; Wed, 11 Jan 2006 15:43:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwhAp-0005dn-BJ for gebp-emacs-pretest-bug@gmane.org; Wed, 11 Jan 2006 09:42:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwedT-00072T-0E for emacs-pretest-bug@gnu.org; Wed, 11 Jan 2006 06:59:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ewecd-0006xf-0z for emacs-pretest-bug@gnu.org; Wed, 11 Jan 2006 06:59:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ewe0J-0005Kj-47; Wed, 11 Jan 2006 06:19:03 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Ewe2g-0000BR-QW; Wed, 11 Jan 2006 06:21:27 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k0BBGTGO026794; Wed, 11 Jan 2006 20:16:29 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k0BBGTr9025847; Wed, 11 Jan 2006 20:16:29 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1Ewdxs-0006Bi-00; Wed, 11 Jan 2006 20:16:28 +0900 Original-To: Henrik Enberg In-reply-to: <200601101154.k0ABsWsm011714@rocksteady.printf.se> (message from Henrik Enberg on Tue, 10 Jan 2006 12:54:32 +0100 (CET)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:10833 gmane.emacs.devel:48930 Archived-At: In article <200601101154.k0ABsWsm011714@rocksteady.printf.se>, Henrik Enberg writes: >> When setting rmail-enable-mime in my .emacs to t, I get a backtrace when I try >> to display a message like this one: >> >> Debugger entered--Lisp error: (void-function nil) >> nil() >> rmail-show-message(372) >> rmail-summary-goto-msg(nil) >> call-interactively(rmail-summary-goto-msg) >> >> It does it whatever the message is. > That's because rmail-enable-mime requires external packages. I suppose > the docstring ought to mention this. I agree. I'm going to install this change. What do you think? The reason of the change from `message' to `display-warning' is that the echo area message is too short and is soon overriden by another message. By the way, I've just noticed that rmail-mime package is currently not available on the web. So, I created this page: . --- Kenichi Handa handa@m17n.org *** rmail.el 10 Jan 2006 20:52:13 +0900 1.418 --- rmail.el 11 Jan 2006 13:24:19 +0900 *************** *** 543,549 **** "*If non-nil, RMAIL uses MIME feature. If the value is t, RMAIL automatically shows MIME decoded message. If the value is neither t nor nil, RMAIL does not show MIME decoded message ! until a user explicitly requires it." :type '(choice (const :tag "on" t) (const :tag "off" nil) (other :tag "when asked" ask)) --- 543,553 ---- "*If non-nil, RMAIL uses MIME feature. If the value is t, RMAIL automatically shows MIME decoded message. If the value is neither t nor nil, RMAIL does not show MIME decoded message ! until a user explicitly requires it. ! ! Even if the value is non-nil, you can't use MIME feature ! if the feature specified by `rmail-mime-feature' is not available ! in your session." :type '(choice (const :tag "on" t) (const :tag "off" nil) (other :tag "when asked" ask)) *************** *** 595,601 **** (defvar rmail-mime-feature 'rmail-mime "Feature to require to load MIME support in Rmail. When starting Rmail, if `rmail-enable-mime' is non-nil, ! this feature is required with `require'.") ;;;###autoload (defvar rmail-decode-mime-charset t --- 599,608 ---- (defvar rmail-mime-feature 'rmail-mime "Feature to require to load MIME support in Rmail. When starting Rmail, if `rmail-enable-mime' is non-nil, ! this feature is required with `require'. ! ! The default value is `rmail-mime'. This feature is provided by ! the rmail-mime package available at .") ;;;###autoload (defvar rmail-decode-mime-charset t *************** *** 735,742 **** (condition-case err (require rmail-mime-feature) (error ! (message "Feature `%s' not provided" rmail-mime-feature) ! (sit-for 1) (setq rmail-enable-mime nil))))) --- 742,755 ---- (condition-case err (require rmail-mime-feature) (error ! (display-warning ! :warning ! (format "Although MIME support is requested ! by setting `rmail-enable-mime' to non-nil, the required feature ! `%s' (the value of `rmail-mime-feature') ! is not available in the current session. ! So, the MIME support is turned off for the moment." ! rmail-mime-feature)) (setq rmail-enable-mime nil)))))