diff options
| author | Kenichi Handa | 1997-09-26 01:50:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-09-26 01:50:55 +0000 |
| commit | c8e521b489726fcbdb0ab5d3345812e28464edca (patch) | |
| tree | eba190ed6445d6089a7458f297d73a9ba4003041 | |
| parent | 4f7d7340f8f587e322608b396c5f7d9b2ebb22df (diff) | |
| download | emacs-c8e521b489726fcbdb0ab5d3345812e28464edca.tar.gz emacs-c8e521b489726fcbdb0ab5d3345812e28464edca.zip | |
(nnmh-retrieve-headers): Bind
file-name-coding-system to binary.
(nnmh-request-article): Likewise.
(nnmh-request-group): Likewise.
(nnmh-request-list): Likewise.
(nnmh-possibly-change-directory): Likewise.
(nnmh-active-number): Likewise.
| -rw-r--r-- | lisp/gnus/nnmh.el | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el index 48c0ea2e139..bf4363de717 100644 --- a/lisp/gnus/nnmh.el +++ b/lisp/gnus/nnmh.el | |||
| @@ -77,8 +77,8 @@ | |||
| 77 | (> number nnmail-large-newsgroup))) | 77 | (> number nnmail-large-newsgroup))) |
| 78 | (count 0) | 78 | (count 0) |
| 79 | ;; 1997/8/12 by MORIOKA Tomohiko | 79 | ;; 1997/8/12 by MORIOKA Tomohiko |
| 80 | ;; for XEmacs/mule. | 80 | (file-name-coding-system 'binary) ; for Emacs 20 |
| 81 | (pathname-coding-system 'binary) | 81 | (pathname-coding-system 'binary) ; for XEmacs/mule |
| 82 | beg article) | 82 | beg article) |
| 83 | (nnmh-possibly-change-directory newsgroup server) | 83 | (nnmh-possibly-change-directory newsgroup server) |
| 84 | ;; We don't support fetching by Message-ID. | 84 | ;; We don't support fetching by Message-ID. |
| @@ -138,8 +138,8 @@ | |||
| 138 | nil | 138 | nil |
| 139 | (concat nnmh-current-directory (int-to-string id)))) | 139 | (concat nnmh-current-directory (int-to-string id)))) |
| 140 | ;; 1997/8/12 by MORIOKA Tomohiko | 140 | ;; 1997/8/12 by MORIOKA Tomohiko |
| 141 | ;; for XEmacs/mule. | 141 | (file-name-coding-system 'binary) ; for Emacs 20 |
| 142 | (pathname-coding-system 'binary) | 142 | (pathname-coding-system 'binary) ; for XEmacs/mule |
| 143 | (nntp-server-buffer (or buffer nntp-server-buffer))) | 143 | (nntp-server-buffer (or buffer nntp-server-buffer))) |
| 144 | (and (stringp file) | 144 | (and (stringp file) |
| 145 | (file-exists-p file) | 145 | (file-exists-p file) |
| @@ -150,8 +150,8 @@ | |||
| 150 | (deffoo nnmh-request-group (group &optional server dont-check) | 150 | (deffoo nnmh-request-group (group &optional server dont-check) |
| 151 | (let ((pathname (nnmail-group-pathname group nnmh-directory)) | 151 | (let ((pathname (nnmail-group-pathname group nnmh-directory)) |
| 152 | ;; 1997/8/12 by MORIOKA Tomohiko | 152 | ;; 1997/8/12 by MORIOKA Tomohiko |
| 153 | ;; for XEmacs/mule. | 153 | (file-name-coding-system 'binary) ; for Emacs 20 |
| 154 | (pathname-coding-system 'binary) | 154 | (pathname-coding-system 'binary) ; for XEmacs/mule. |
| 155 | dir) | 155 | dir) |
| 156 | (cond | 156 | (cond |
| 157 | ((not (file-directory-p pathname)) | 157 | ((not (file-directory-p pathname)) |
| @@ -190,7 +190,8 @@ | |||
| 190 | 190 | ||
| 191 | (deffoo nnmh-request-list (&optional server dir) | 191 | (deffoo nnmh-request-list (&optional server dir) |
| 192 | (nnheader-insert "") | 192 | (nnheader-insert "") |
| 193 | (let ((pathname-coding-system 'binary) | 193 | (let ((file-name-coding-system 'binary) |
| 194 | (pathname-coding-system 'binary) | ||
| 194 | (nnmh-toplev | 195 | (nnmh-toplev |
| 195 | (file-truename (or dir (file-name-as-directory nnmh-directory))))) | 196 | (file-truename (or dir (file-name-as-directory nnmh-directory))))) |
| 196 | (nnmh-request-list-1 nnmh-toplev)) | 197 | (nnmh-request-list-1 nnmh-toplev)) |
| @@ -410,8 +411,8 @@ | |||
| 410 | (when newsgroup | 411 | (when newsgroup |
| 411 | (let ((pathname (nnmail-group-pathname newsgroup nnmh-directory)) | 412 | (let ((pathname (nnmail-group-pathname newsgroup nnmh-directory)) |
| 412 | ;; 1997/8/12 by MORIOKA Tomohiko | 413 | ;; 1997/8/12 by MORIOKA Tomohiko |
| 413 | ;; for XEmacs/mule. | 414 | (file-name-coding-system 'binary) ; for Emacs 20 |
| 414 | (pathname-coding-system 'binary)) | 415 | (pathname-coding-system 'binary)) ; for XEmacs/mule |
| 415 | (if (file-directory-p pathname) | 416 | (if (file-directory-p pathname) |
| 416 | (setq nnmh-current-directory pathname) | 417 | (setq nnmh-current-directory pathname) |
| 417 | (error "No such newsgroup: %s" newsgroup))))) | 418 | (error "No such newsgroup: %s" newsgroup))))) |
| @@ -461,8 +462,8 @@ | |||
| 461 | (let ((active (cadr (assoc group nnmh-group-alist))) | 462 | (let ((active (cadr (assoc group nnmh-group-alist))) |
| 462 | (dir (nnmail-group-pathname group nnmh-directory)) | 463 | (dir (nnmail-group-pathname group nnmh-directory)) |
| 463 | ;; 1997/8/14 by MORIOKA Tomohiko | 464 | ;; 1997/8/14 by MORIOKA Tomohiko |
| 464 | ;; for XEmacs/mule. | 465 | (file-name-coding-system 'binary) ; for Emacs 20 |
| 465 | (pathname-coding-system 'binary)) | 466 | (pathname-coding-system 'binary)) ; for XEmacs/mule |
| 466 | (unless active | 467 | (unless active |
| 467 | ;; The group wasn't known to nnmh, so we just create an active | 468 | ;; The group wasn't known to nnmh, so we just create an active |
| 468 | ;; entry for it. | 469 | ;; entry for it. |