unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: zedek@gnu.org, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org
Subject: Re: Rmail: rmail-enable-mime is causing troubles
Date: Wed, 11 Jan 2006 20:16:28 +0900	[thread overview]
Message-ID: <E1Ewdxs-0006Bi-00@etlken> (raw)
In-Reply-To: <200601101154.k0ABsWsm011714@rocksteady.printf.se> (message from Henrik Enberg on Tue, 10 Jan 2006 12:54:32 +0100 (CET))

In article <200601101154.k0ABsWsm011714@rocksteady.printf.se>, Henrik Enberg <henrik.enberg@telia.com> 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:
<http://www.m17n.org/rmail-mime/index.html>.

---
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 <http://www.m17n.org/rmail-mime/>.")
  
  ;;;###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)))))

       reply	other threads:[~2006-01-11 11:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1136851298.818441.8389.nullmailer@totoz-linux.gnu-rox.org>
     [not found] ` <200601101154.k0ABsWsm011714@rocksteady.printf.se>
2006-01-11 11:16   ` Kenichi Handa [this message]
2006-01-11 15:09     ` Rmail: rmail-enable-mime is causing troubles Henrik Enberg
2006-01-12 21:54       ` Xavier Maillard
2006-01-13  8:15         ` Eli Zaretskii
2006-01-18 22:38           ` Xavier Maillard
2006-01-16 12:14         ` Kenichi Handa
2006-01-18  2:17           ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Ewdxs-0006Bi-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=zedek@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).