all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 7626@debbugs.gnu.org
Subject: bug#7626: bug#7651: 23.2.91; Rmail doesn't allow displaying text attachments conveniently
Date: Fri, 14 Jan 2011 13:23:11 +0900	[thread overview]
Message-ID: <tl7r5cgyuz4.fsf@m17n.org> (raw)
In-Reply-To: <E1PdM2b-00011L-Cr@fencepost.gnu.org> (message from Eli Zaretskii on Thu, 13 Jan 2011 07:12:33 -0500)

In article <E1PdM2b-00011L-Cr@fencepost.gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

> > At the moment, I don't know how (or where) to fix this
> > problem, but at least, it seems that setting
> > buffer-file-coding-system to windows-1252 for iso-8859-1
> > message won't cause an actual problem.

> It's surprising and kludgey, IMO.  A better solution would be to
> decode by windows-12XX, but set last-coding-system-used to Latin-N.
> That way, only if I reuse the text that is not encodable by Latin-N, I
> will need to do something.  Otherwise, I get to have the cake and eat
> it, too.

I don't want to modify rfc2047.el nor mm-util.el now.  So,
I've just installed a little bit inefficient workaround
which does this:

After decoding each header, if rmail-mime-coding-system is
nil, set it to a cons (CODING-SYSTEM . nil).

After decoding each body, if rmail-mime-coding-system is nil
or a cons, set it to CODING-SYSTEM.

After decoding a whole message, if rmail-mime-coding-system
is a cons (i.e. only a header part is decoded), re-decode
the header while binding mm-charset-override-alist to nil,
and set rmail-mime-coding-system to last-coding-system-used.

Set buffer-file-coding-system to rmail-mime-coding-system.

By this, encoding specified for a body always takes
precedence which I think is the right thing.

---
Kenichi Handa
handa@m17n.org





  reply	other threads:[~2011-01-14  4:23 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16  6:15 bug#7651: 23.2.91; Rmail doesn't allow displaying text attachments conveniently Eli Zaretskii
2010-12-16  7:08 ` Kenichi Handa
2010-12-16 17:33   ` Eli Zaretskii
2010-12-17 15:28   ` Eli Zaretskii
2010-12-24  4:50   ` Kenichi Handa
2010-12-24  8:17     ` Andreas Schwab
2010-12-24 11:22       ` Kenichi Handa
2010-12-27 11:08     ` Kenichi Handa
2010-12-30 12:39       ` Chong Yidong
2011-01-04  5:36         ` Kenichi Handa
2011-01-04  6:35           ` Eli Zaretskii
2011-01-01 11:00     ` Eli Zaretskii
2011-01-01 15:26       ` Eli Zaretskii
2011-01-04  7:16         ` Kenichi Handa
2011-01-04  5:01       ` Kenichi Handa
2011-01-04  6:34         ` Eli Zaretskii
2011-01-07  7:13           ` Kenichi Handa
2011-01-07  7:53             ` Eli Zaretskii
2011-01-12  6:22               ` Kenichi Handa
2011-01-12 10:57                 ` bug#7626: " Eli Zaretskii
2011-01-13  1:21                   ` Kenichi Handa
2011-01-13 12:12                     ` Eli Zaretskii
2011-01-14  4:23                       ` Kenichi Handa [this message]
2011-01-18  8:07                         ` bug#7626: mm-charset-override-alist (was: bug#7626: bug#7651: 23.2.91; Rmail doesn't allow displaying text attachments conveniently) Reiner Steib
2011-01-18 15:10                           ` Eli Zaretskii
2011-01-18 18:00                             ` bug#7626: mm-charset-override-alist Stefan Monnier
2011-01-19 21:23                               ` Reiner Steib
2011-01-20  0:40                                 ` Eli Zaretskii
2011-01-20  1:57                                   ` Stefan Monnier
2011-01-20  2:08                                     ` Eli Zaretskii
2011-01-20 15:32                                       ` Stefan Monnier
2011-01-20 15:37                                         ` Eli Zaretskii
2011-01-20  2:05                                   ` Kenichi Handa
2011-01-20  2:12                                     ` Eli Zaretskii
2011-01-20  3:51                                       ` Kenichi Handa
2011-02-05 13:36                                     ` Eli Zaretskii
2011-02-07  0:45                                       ` Kenichi Handa
     [not found]                                         ` <8339o0ts6k.fsf@gnu.org>
2011-02-07  5:36                                           ` Kenichi Handa
2011-02-07  6:07                                         ` Eli Zaretskii
2011-10-07  0:32                                           ` Glenn Morris
2011-10-07 12:14                                             ` Eli Zaretskii
2011-01-20  2:27                                   ` Eli Zaretskii
2011-01-12 10:58                 ` bug#7651: 23.2.91; Rmail doesn't allow displaying text attachments conveniently Eli Zaretskii
2011-10-19  7:56 ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=tl7r5cgyuz4.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=7626@debbugs.gnu.org \
    --cc=eliz@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.