From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18111 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: a patch to mm-uu [Was: Re: Whee!] Date: 24 Oct 1998 16:53:55 -400 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <5baf2lznoc.fsf_-_@rye.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156692 4458 80.91.224.250 (20 Oct 2002 23:31:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:31:32 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA29262 for ; Sat, 24 Oct 1998 16:54:33 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB19369; Sat, 24 Oct 1998 15:54:20 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 24 Oct 1998 15:54:24 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id PAA28663 for ; Sat, 24 Oct 1998 15:54:15 -0500 (CDT) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id QAA29248 for ; Sat, 24 Oct 1998 16:53:57 -0400 (EDT) Original-Received: from slate.cs.rochester.edu (slate.cs.rochester.edu [192.5.53.101]) by cayuga.cs.rochester.edu (8.6.9/O) with ESMTP id QAA24818 for ; Sat, 24 Oct 1998 16:53:55 -0400 Original-Received: from rye.cs.rochester.edu (rye.cs.rochester.edu [192.5.53.192]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id QAA03513 for ; Sat, 24 Oct 1998 16:53:55 -0400 Original-Received: (from zsh@localhost) by rye.cs.rochester.edu (SMI-8.6/N++) id QAA13451; Sat, 24 Oct 1998 16:53:55 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Hrvoje Niksic's message of "24 Oct 1998 21:52:00 +0200" Original-Lines: 54 User-Agent: Gnus/5.070038 (Pterodactyl Gnus v0.38) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18111 >>>>> "Hrvoje" == Hrvoje Niksic writes: Hrvoje> It has bugs, though. If the message is: Hrvoje> Hrvoje> Hrvoje> Hrvoje> then begins with a spurious newline, and is not Hrvoje> shown at all. -- Shenghuo :- cut --------------------------------------------- --- ChangeLog 1998/10/24 20:48:01 1.1 +++ ChangeLog 1998/10/24 20:50:15 @@ -1,3 +1,8 @@ +Sat Oct 24 16:48:51 1998 Shenghuo ZHU + + * mm-uu.el (mm-uu-dissect): Delete the begining spurious newline + and display last part. + Sat Oct 24 20:31:55 1998 Lars Magne Ingebrigtsen * gnus.el: Pterodactyl Gnus v0.38 is released. --- mm-uu.el 1998/10/24 20:33:38 1.1 +++ mm-uu.el 1998/10/24 20:36:20 @@ -76,6 +76,7 @@ (save-restriction (mail-narrow-to-head) (goto-char (point-max))) + (forward-line) (let ((text-start (point)) start-char end-char type file-name end-line result) (while (re-search-forward mm-uu-begin-line nil t) @@ -94,6 +95,7 @@ (intern (concat "mm-uu-" (symbol-name type) "-end-line")))) (when (re-search-forward end-line nil t) + (forward-line) (setq end-char (point)) (when (or (not (eq type 'binhex)) (setq file-name @@ -138,7 +140,7 @@ result) (setq text-start end-char)))) (when result - (if (> start-char text-start) + (if (> (point-max) (1+ text-start)) (push (list (mm-uu-copy-to-buffer text-start (point-max)) '("text/plain") nil nil nil nil)