From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19283 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: pgnus on a Windows box Date: 29 Nov 1998 05:10:08 -0500 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2n7lwe95dr.fsf@zsh.cs.rochester.edu> References: <5bbtm3sf17.fsf@ripple.cs.rochester.edu> <5b67cbs9xg.fsf@ripple.cs.rochester.edu> <2nogpxxxgc.fsf@zsh.cs.rochester.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157660 10813 80.91.224.250 (20 Oct 2002 23:47:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:47:40 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id FAA15762 for ; Sun, 29 Nov 1998 05:12:28 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id EAB10210; Sun, 29 Nov 1998 04:12:16 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 29 Nov 1998 04:11:36 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id EAA18037 for ; Sun, 29 Nov 1998 04:11:24 -0600 (CST) 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 FAA15753 for ; Sun, 29 Nov 1998 05:11:17 -0500 (EST) 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 FAA06641 for ; Sun, 29 Nov 1998 05:11:15 -0500 Original-Received: from brain.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id FAA27454 for ; Sun, 29 Nov 1998 05:11:05 -0500 Original-Received: (from zsh@localhost) by brain.cs.rochester.edu (8.9.0/8.8.5) id FAA03714; Sun, 29 Nov 1998 05:10:09 -0500 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 Original-Lines: 97 User-Agent: Gnus/5.070055 (Pterodactyl Gnus v0.55) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:19283 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19283 >>>>> "Jack" == Jack Vinson writes: Jack> Sure, I can try. The problem is completely solved if I do Jack> (setq nnmail-file-coding-system 'raw-text-dos) Jack> But the example is pretty straightforward. With this value set Jack> to 'binary, my summary buffer looks normal. As shown in the Jack> enclosed ex_summary.txt. (All of these messages happen to have Jack> come before I moved to emacs-20.3.1.) When I hit reply on a Jack> message, the message buffer looks like ex_message1.txt. If I Jack> change nnmail-file-coding-system to 'raw-text-dos and reply to Jack> the same message, the message buffer looks correct as shown in Jack> ex_message2.txt. For this to work I must select a different Jack> message and then reselect the first message for the Jack> nnmail-file-coding-system to take effect when it reads that Jack> file. (I am working in the nnml back end.) Test this patch. Some new voos are added. -- Shenghuo :- cut ---------------------- --- ChangeLog 1998/11/29 09:55:03 1.2 +++ ChangeLog 1998/11/29 10:04:19 @@ -1,3 +1,11 @@ +Sun Nov 29 04:55:40 1998 Shenghuo ZHU + + * nnmail.el (nnmail-file-coding-system-1): New variable. + * nnfolder.el (nnfolder-file-coding-system): Ditto. + (nnfolder-read-folder): Use nnfolder-file-coding-system. + * nnml.el (nnml-file-coding-system): New variable. + (nnml-request-article): Use nnml-file-coding-system. + Sun Nov 29 03:50:20 1998 Shenghuo ZHU * mm-decode.el (mm-inlinable-p): Save the result of test. --- nnmail.el 1998/11/29 09:51:30 1.1 +++ nnmail.el 1998/11/29 09:54:36 @@ -496,6 +496,11 @@ (defvar nnmail-file-coding-system 'binary "Coding system used in nnmail.") +(defvar nnmail-file-coding-system-1 + (if (string-match "nt" system-configuration) + 'raw-text-dos 'binary) + "Another coding system used in nnmail.") + (defun nnmail-find-file (file) "Insert FILE in server buffer safely." (set-buffer nntp-server-buffer) --- nnfolder.el 1998/11/29 09:46:50 1.1 +++ nnfolder.el 1998/11/29 09:57:05 @@ -90,6 +90,7 @@ (defvoo nnfolder-buffer-alist nil) (defvoo nnfolder-scantime-alist nil) (defvoo nnfolder-active-timestamp nil) +(defvoo nnfolder-file-coding-system nnmail-file-coding-system-1) @@ -682,7 +683,10 @@ (defun nnfolder-read-folder (group) (let* ((file (nnfolder-group-pathname group)) - (buffer (set-buffer (nnheader-find-file-noselect file)))) + (buffer (set-buffer + (let ((nnmail-file-coding-system + nnfolder-file-coding-system)) + (nnheader-find-file-noselect file))))) (if (equal (cadr (assoc group nnfolder-scantime-alist)) (nth 5 (file-attributes file))) ;; This looks up-to-date, so we don't do any scanning. --- nnml.el 1998/11/29 09:53:00 1.1 +++ nnml.el 1998/11/29 09:59:55 @@ -86,6 +86,8 @@ (defvar nnml-nov-buffer-file-name nil) +(defvoo nnml-file-coding-system nnmail-file-coding-system-1) + ;;; Interface functions. @@ -183,7 +185,9 @@ (nnheader-report 'nnml "No such file: %s" path)) ((file-directory-p path) (nnheader-report 'nnml "File is a directory: %s" path)) - ((not (save-excursion (nnmail-find-file path))) + ((not (save-excursion (let ((nnmail-file-coding-system + nnml-file-coding-system)) + (nnmail-find-file path)))) (nnheader-report 'nnml "Couldn't read file: %s" path)) (t (nnheader-report 'nnml "Article %s retrieved" id)