Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: pgnus on a Windows box
Date: 29 Nov 1998 05:10:08 -0500	[thread overview]
Message-ID: <2n7lwe95dr.fsf@zsh.cs.rochester.edu> (raw)
In-Reply-To: <wk1zmromfp.fsf@chevax.ecs.umass.edu>

>>>>> "Jack" == Jack Vinson <jvinson@chevax.ecs.umass.edu> 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  <zsh@cs.rochester.edu>
+
+	* 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  <zsh@cs.rochester.edu>
 
 	* 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)
 
 \f
 
@@ -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)
+
 \f
 
 ;;; 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)


  reply	other threads:[~1998-11-29 10:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-19 15:41 Jack Vinson
1998-11-19 18:39 ` Shenghuo ZHU
1998-11-19 19:25   ` Jack Vinson
1998-11-19 20:29     ` Shenghuo ZHU
1998-11-20 22:59       ` Jack Vinson
1998-11-24  9:16         ` Shenghuo ZHU
1998-11-25 14:51           ` Jack Vinson
1998-11-29 10:10             ` Shenghuo ZHU [this message]
1998-12-03 17:00               ` Jack Vinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2n7lwe95dr.fsf@zsh.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).