From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Different (buffer-file-)coding-systems for different regions of one buffer? (for Rmail MIME) Date: Wed, 21 May 2003 11:43:09 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305210243.LAA05432@etlken.m17n.org> References: 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: main.gmane.org 1053485059 7667 80.91.224.249 (21 May 2003 02:44:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 May 2003 02:44:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 21 04:44:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IJaI-0001zD-00 for ; Wed, 21 May 2003 04:44:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19IJks-0001V9-00 for ; Wed, 21 May 2003 04:55:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IJbQ-0002z0-P8 for emacs-devel@quimby.gnus.org; Tue, 20 May 2003 22:45:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IJay-0002NO-71 for emacs-devel@gnu.org; Tue, 20 May 2003 22:44:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IJZq-0000ZS-JP for emacs-devel@gnu.org; Tue, 20 May 2003 22:44:09 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IJZX-00008R-H2 for emacs-devel@gnu.org; Tue, 20 May 2003 22:43:19 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h4L2hAu21735; Wed, 21 May 2003 11:43:10 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h4L2h9910897; Wed, 21 May 2003 11:43:09 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id LAA05432; Wed, 21 May 2003 11:43:09 +0900 (JST) Original-To: stktrc@yahoo.com In-reply-to: (message from stktrc on Wed, 21 May 2003 03:35:09 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14030 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14030 In article , stktrc writes: > Is it possible to have different (buffer-file-)coding-systems for > different regions of one buffer? As buffer-file-coding-system is a coding system to use on writing a buffer to a file, I think it's nonsense to have different values in different regions. > Why? Trying to find a way of making Rmail handle MIME messages nicely > (without modifying the underlying file or corresponding buffer by > replacing the encoded data with decoded data, in place). > The idea would be to let the region of each body part have a > coding-system that makes the encoded text readable in Emacs. I don't understand how buffer-file-coding-system is related to that. And, I think it's impossible to handle MIME messages nicely without replacing the encoded data with decoded data in some buffer. Just displaying it may be possible, but search/cut&paste etc. are impossible. So, we have to decode the RMAIL buffer itself, or create a separate view buffer that contains decoded text (as done by Gnus). --- Ken'ichi HANDA handa@m17n.org