From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68754 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: rfc2047.el dependencies on mm-util.el (was: Sending attachments) Date: Sat, 18 Jul 2009 21:15:37 +0200 Message-ID: <87eisdol9i.fsf_-_@marauder.physik.uni-ulm.de> References: <87eisjjrsc.fsf@uwakimon.sk.tsukuba.ac.jp> <87iqhsr8jm.fsf@lifelogs.com> <87my73kwxc.fsf@lifelogs.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247944569 7465 80.91.229.12 (18 Jul 2009 19:16:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 19:16:09 +0000 (UTC) Cc: Ted Zlatanov , ding@gnus.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 18 21:16:01 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MSFO5-0000X4-GF for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2009 21:16:01 +0200 Original-Received: from localhost ([127.0.0.1]:39781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSFO4-0001YE-MY for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2009 15:16:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSFNx-0001Uf-MP for emacs-devel@gnu.org; Sat, 18 Jul 2009 15:15:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSFNs-0001PI-59 for emacs-devel@gnu.org; Sat, 18 Jul 2009 15:15:52 -0400 Original-Received: from [199.232.76.173] (port=56629 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSFNr-0001Ow-Ti for emacs-devel@gnu.org; Sat, 18 Jul 2009 15:15:47 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:49380) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MSFNo-0007vo-Jl; Sat, 18 Jul 2009 15:15:45 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n6IJFehs012851; Sat, 18 Jul 2009 21:15:40 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 89CCF13944; Sat, 18 Jul 2009 21:15:40 +0200 (CEST) X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od, Ted Zlatanov , emacs-devel@gnu.org, ding@gnus.org In-Reply-To: (Richard Stallman's message of "Sat, 18 Jul 2009 13:11:17 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112699 gmane.emacs.gnus.general:68754 Archived-At: On Sat, Jul 18 2009, Richard Stallman wrote: > rfc2047.el depends on some substantial code in mm-util.el: > mm-charset-to-coding-system and mm-find-mime-charset-region. I cannot > understand that code, and I am not sure what it is trying to do. I > understand the doc strings, but they explain only in vague terms. Please elaborate what is not clear... ,----[ f mm-find-mime-charset-region RET ] | mm-find-mime-charset-region is a compiled Lisp function in `mm-util.el'. | (mm-find-mime-charset-region B E &optional HACK-CHARSETS) | | Return the MIME charsets needed to encode the region between B and E. | nil means ASCII, a single-element list represents an appropriate MIME | charset, and a longer list means no appropriate charset. `---- ,----[ f mm-charset-to-coding-system RET ] | mm-charset-to-coding-system is a compiled Lisp function in `mm-util.el'. | (mm-charset-to-coding-system CHARSET &optional LBT ALLOW-OVERRIDE SILENT) | | Return coding-system corresponding to CHARSET. | CHARSET is a symbol naming a MIME charset. [...] `---- MIME charsets are not the same as (Emacs) coding systems. This function does the mapping and also handles overrides (many MUAs specify wrong charsets), invalid charsets, etc. > Can you separate out that functionality into a file by itself, which > does not depend on the rest of Gnus, and clean it up and/or add > comments so that it is clear? rfc2047.el implements (one of) the MIME standards. mm-utils.el contains utility functions for MIME. I.e. they are closely related. I'm not sure it is worth to separate out parts of it. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/