diff options
| author | Stefan Monnier | 2002-04-12 03:13:23 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-04-12 03:13:23 +0000 |
| commit | 946cca1628fcd3ce298c9f24aef1595068c2cdcb (patch) | |
| tree | 9a407dc14d8c96abd411c6518b453b3c11ac39e1 | |
| parent | be1ad76795e9530b74a8d77207f84de051f807ba (diff) | |
| download | emacs-946cca1628fcd3ce298c9f24aef1595068c2cdcb.tar.gz emacs-946cca1628fcd3ce298c9f24aef1595068c2cdcb.zip | |
(gnus-uu-binhex-article, gnus-uu-reginize-string, gnus-uu-expand-numbers)
(gnus-uu-post-make-mime, gnus-uu-post-encoded): Don't assume point-min == 1.
| -rw-r--r-- | lisp/gnus/gnus-uu.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index 9aaf64fb596..e92a7686763 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el | |||
| @@ -1003,7 +1003,8 @@ When called interactively, prompt for REGEXP." | |||
| 1003 | (if (looking-at gnus-uu-binhex-begin-line) | 1003 | (if (looking-at gnus-uu-binhex-begin-line) |
| 1004 | (progn | 1004 | (progn |
| 1005 | (setq state (list 'begin)) | 1005 | (setq state (list 'begin)) |
| 1006 | (write-region 1 1 gnus-uu-binhex-article-name)) | 1006 | (write-region (point-min) (point-min) |
| 1007 | gnus-uu-binhex-article-name)) | ||
| 1007 | (setq state (list 'middle))) | 1008 | (setq state (list 'middle))) |
| 1008 | (goto-char (point-max)) | 1009 | (goto-char (point-max)) |
| 1009 | (re-search-backward (concat gnus-uu-binhex-body-line "\\|" | 1010 | (re-search-backward (concat gnus-uu-binhex-body-line "\\|" |
| @@ -1115,7 +1116,7 @@ When called interactively, prompt for REGEXP." | |||
| 1115 | (while (re-search-forward "[ \t]+" nil t) | 1116 | (while (re-search-forward "[ \t]+" nil t) |
| 1116 | (replace-match "[ \t]+" t t)) | 1117 | (replace-match "[ \t]+" t t)) |
| 1117 | 1118 | ||
| 1118 | (buffer-substring 1 (point-max)))) | 1119 | (buffer-substring (point-min) (point-max)))) |
| 1119 | 1120 | ||
| 1120 | (defun gnus-uu-get-list-of-articles (n) | 1121 | (defun gnus-uu-get-list-of-articles (n) |
| 1121 | ;; If N is non-nil, the article numbers of the N next articles | 1122 | ;; If N is non-nil, the article numbers of the N next articles |
| @@ -1211,7 +1212,7 @@ When called interactively, prompt for REGEXP." | |||
| 1211 | (format "%06d" | 1212 | (format "%06d" |
| 1212 | (string-to-int (buffer-substring | 1213 | (string-to-int (buffer-substring |
| 1213 | (match-beginning 0) (match-end 0)))))) | 1214 | (match-beginning 0) (match-end 0)))))) |
| 1214 | (setq string (buffer-substring 1 (point-max))) | 1215 | (setq string (buffer-substring (point-min) (point-max))) |
| 1215 | (setcar (car string-list) string) | 1216 | (setcar (car string-list) string) |
| 1216 | (setq string-list (cdr string-list)))) | 1217 | (setq string-list (cdr string-list)))) |
| 1217 | out-list)) | 1218 | out-list)) |
| @@ -1949,7 +1950,7 @@ The user will be asked for a file name." | |||
| 1949 | (goto-char (point-min)) | 1950 | (goto-char (point-min)) |
| 1950 | (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$")) | 1951 | (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$")) |
| 1951 | (forward-line -1) | 1952 | (forward-line -1) |
| 1952 | (narrow-to-region 1 (point)) | 1953 | (narrow-to-region (point-min) (point)) |
| 1953 | (unless (mail-fetch-field "mime-version") | 1954 | (unless (mail-fetch-field "mime-version") |
| 1954 | (widen) | 1955 | (widen) |
| 1955 | (insert "MIME-Version: 1.0\n")) | 1956 | (insert "MIME-Version: 1.0\n")) |
| @@ -2039,7 +2040,7 @@ If no file has been included, the user will be asked for a file." | |||
| 2039 | (erase-buffer) | 2040 | (erase-buffer) |
| 2040 | (insert-buffer-substring post-buf beg-binary end-binary) | 2041 | (insert-buffer-substring post-buf beg-binary end-binary) |
| 2041 | (goto-char (point-min)) | 2042 | (goto-char (point-min)) |
| 2042 | (setq length (count-lines 1 (point-max))) | 2043 | (setq length (count-lines (point-min) (point-max))) |
| 2043 | (setq parts (/ length gnus-uu-post-length)) | 2044 | (setq parts (/ length gnus-uu-post-length)) |
| 2044 | (unless (< (% length gnus-uu-post-length) 4) | 2045 | (unless (< (% length gnus-uu-post-length) 4) |
| 2045 | (incf parts))) | 2046 | (incf parts))) |
| @@ -2052,7 +2053,7 @@ If no file has been included, the user will be asked for a file." | |||
| 2052 | (re-search-forward | 2053 | (re-search-forward |
| 2053 | (concat "^" (regexp-quote mail-header-separator) "$") nil t) | 2054 | (concat "^" (regexp-quote mail-header-separator) "$") nil t) |
| 2054 | (beginning-of-line) | 2055 | (beginning-of-line) |
| 2055 | (setq header (buffer-substring 1 (point))) | 2056 | (setq header (buffer-substring (point-min) (point))) |
| 2056 | 2057 | ||
| 2057 | (goto-char (point-min)) | 2058 | (goto-char (point-min)) |
| 2058 | (when gnus-uu-post-separate-description | 2059 | (when gnus-uu-post-separate-description |