diff options
| author | Kenichi Handa | 1997-08-28 04:51:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-08-28 04:51:02 +0000 |
| commit | fc46309dc8617616fab1e9a6dd570a13400e17af (patch) | |
| tree | c8d6b6fa9d74a7e469616e6001d1be9496b6140f | |
| parent | 58724016c28b6a76025e0f262a9c179d31cceb46 (diff) | |
| download | emacs-fc46309dc8617616fab1e9a6dd570a13400e17af.tar.gz emacs-fc46309dc8617616fab1e9a6dd570a13400e17af.zip | |
(nntp-coding-system-for-read): New variable.
(nntp-open-connection): Bind `coding-system-for-read' with
`nntp-coding-system-for-read' for Emacs/mule and XEmacs/mule.
| -rw-r--r-- | lisp/gnus/nntp.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 9c40dc5a0f3..52fd0867477 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -142,6 +142,10 @@ server there that you can connect to. See also `nntp-open-connection-function'" | |||
| 142 | (defvoo nntp-warn-about-losing-connection t | 142 | (defvoo nntp-warn-about-losing-connection t |
| 143 | "*If non-nil, beep when a server closes connection.") | 143 | "*If non-nil, beep when a server closes connection.") |
| 144 | 144 | ||
| 145 | ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> | ||
| 146 | (defvoo nntp-coding-system-for-read nil | ||
| 147 | "*coding-system for read from NNTP.") | ||
| 148 | |||
| 145 | 149 | ||
| 146 | 150 | ||
| 147 | ;;; Internal variables. | 151 | ;;; Internal variables. |
| @@ -736,7 +740,9 @@ This function is supposed to be called from `nntp-server-opened-hook'." | |||
| 736 | (let* ((pbuffer (nntp-make-process-buffer buffer)) | 740 | (let* ((pbuffer (nntp-make-process-buffer buffer)) |
| 737 | (process | 741 | (process |
| 738 | (condition-case () | 742 | (condition-case () |
| 739 | (funcall nntp-open-connection-function pbuffer) | 743 | ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> |
| 744 | (let ((coding-system-for-read nntp-coding-system-for-read)) | ||
| 745 | (funcall nntp-open-connection-function pbuffer)) | ||
| 740 | (error nil) | 746 | (error nil) |
| 741 | (quit nil)))) | 747 | (quit nil)))) |
| 742 | (when process | 748 | (when process |