From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62681 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: rfc2231.el changes (was: Improve handling of message/external-body) Date: Wed, 12 Apr 2006 14:49:49 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144847745 17877 80.91.229.2 (12 Apr 2006 13:15:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2006 13:15:45 +0000 (UTC) Original-X-From: ding-owner+m11208@lists.math.uh.edu Wed Apr 12 15:15:44 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTfCB-00076B-5q for ding-account@gmane.org; Wed, 12 Apr 2006 15:15:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FTfC6-0002XT-00; Wed, 12 Apr 2006 08:15:38 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FTf8x-0002XO-00 for ding@lists.math.uh.edu; Wed, 12 Apr 2006 08:12:23 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FTf8r-0002me-MG for ding@lists.math.uh.edu; Wed, 12 Apr 2006 08:12:23 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FTf8q-00007y-00 for ; Wed, 12 Apr 2006 15:12:16 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FTf8a-0006CV-Cn for ding@gnus.org; Wed, 12 Apr 2006 15:12:00 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 15:12:00 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 15:12:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:kGsb/9hY18dQWXxRzfxIKvv4fxc= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62681 Archived-At: On Wed, Apr 12 2006, Katsumi Yamaoka wrote: >>>>>> In Katsumi Yamaoka wrote: > >> I found there are several problems concerned with externalized >> MIME parts that I made performing the `C-o' command on ordinary >> MIME parts. > > I've fixed some residual minor bugs concerned with the handling > of message/external-body parts. > > In addition, I've merged the changes to rfc2231.el that Kenichi > Handa made in the Emacs CVS. [...] > * trunk and v5-10 branch * I've adjusted the corresponding ChangeLog entries (date, ...) which were a bit messed up. The versions of `rfc2231.el' in v5-10 and Emacs are in sync now. However there are two differences to the trunk version. vc-annotate shows that you worked on this code (on 16-Feb-06). Could you sync the code if appropriate, please? Hm, maybe it's because older Emacsen don't support shy groups correctly? --8<---------------cut here---------------start------------->8--- --- rfc2231.el 12 Apr 2006 02:00:40 -0000 6.11.2.14 +++ rfc2231.el 12 Apr 2006 02:00:49 -0000 7.15 @@ -81,8 +81,8 @@ ;; Finally, attempt to extract only type. (if (string-match (concat "\\`[\t\n ]*\\([^" ietf-drums-tspecials "\t\n ]+" - "\\(/[^" ietf-drums-tspecials - "\t\n ]+\\)?\\)\\([\t\n ;]\\|\\'\\)") + "\\(?:/[^" ietf-drums-tspecials + "\t\n ]+\\)?\\)\\(?:[\t\n ;]\\|\\'\\)") string) (match-string 1 string) "")))))) @@ -223,10 +223,10 @@ \"'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\", \"''This%20is%20%2A%2A%2Afun%2A%2A%2A\", or \"This is ***fun***\"." - (string-match "\\`\\(\\([^']+\\)?'\\([^']+\\)?'\\)?\\(.+\\)" string) - (let ((coding-system (mm-charset-to-coding-system (match-string 2 string))) - ;;(language (match-string 3 string)) - (value (match-string 4 string))) + (string-match "\\`\\(?:\\([^']+\\)?'\\([^']+\\)?'\\)?\\(.+\\)" string) + (let ((coding-system (mm-charset-to-coding-system (match-string 1 string))) + ;;(language (match-string 2 string)) + (value (match-string 3 string))) (mm-with-unibyte-buffer (insert value) (goto-char (point-min)) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/