diff options
| -rw-r--r-- | lisp/gnus/gnus-start.el | 15 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnml.el | 16 | ||||
| -rw-r--r-- | lisp/gnus/nnrss.el | 18 |
4 files changed, 27 insertions, 24 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 9b1be650673..2beb685822f 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -2145,12 +2145,15 @@ The info element is shared with the same element of | |||
| 2145 | (condition-case () | 2145 | (condition-case () |
| 2146 | (if (and (stringp (progn | 2146 | (if (and (stringp (progn |
| 2147 | (setq group (read cur) | 2147 | (setq group (read cur) |
| 2148 | group (cond ((numberp group) | 2148 | group |
| 2149 | (number-to-string group)) | 2149 | (encode-coding-string |
| 2150 | ((symbolp group) | 2150 | (cond ((numberp group) |
| 2151 | (symbol-name group)) | 2151 | (number-to-string group)) |
| 2152 | ((stringp group) | 2152 | ((symbolp group) |
| 2153 | group))))) | 2153 | (symbol-name group)) |
| 2154 | ((stringp group) | ||
| 2155 | group)) | ||
| 2156 | 'latin-1)))) | ||
| 2154 | (numberp (setq max (read cur))) | 2157 | (numberp (setq max (read cur))) |
| 2155 | (numberp (setq min (read cur))) | 2158 | (numberp (setq min (read cur))) |
| 2156 | (null (progn | 2159 | (null (progn |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index a95cdb4a4f8..b6dbbea74cc 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -663,7 +663,7 @@ nn*-request-list should have been called before calling this function." | |||
| 663 | (narrow-to-region (point) (point-at-eol)) | 663 | (narrow-to-region (point) (point-at-eol)) |
| 664 | (setq group (read buffer)) | 664 | (setq group (read buffer)) |
| 665 | (unless (stringp group) | 665 | (unless (stringp group) |
| 666 | (setq group (symbol-name group))) | 666 | (setq group (encode-coding-string (symbol-name group) 'latin-1))) |
| 667 | (if (and (numberp (setq max (read buffer))) | 667 | (if (and (numberp (setq max (read buffer))) |
| 668 | (numberp (setq min (read buffer)))) | 668 | (numberp (setq min (read buffer)))) |
| 669 | (push (list group (cons min max)) | 669 | (push (list group (cons min max)) |
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el index 5770777ad4b..205e9e48034 100644 --- a/lisp/gnus/nnml.el +++ b/lisp/gnus/nnml.el | |||
| @@ -259,7 +259,7 @@ non-nil.") | |||
| 259 | (t | 259 | (t |
| 260 | (nnheader-re-read-dir nnml-current-directory) | 260 | (nnheader-re-read-dir nnml-current-directory) |
| 261 | (nnmail-activate 'nnml) | 261 | (nnmail-activate 'nnml) |
| 262 | (let ((active (nth 1 (assoc group nnml-group-alist)))) | 262 | (let ((active (nth 1 (assoc-string group nnml-group-alist)))) |
| 263 | (if (not active) | 263 | (if (not active) |
| 264 | (nnheader-report 'nnml "No such group: %s" decoded) | 264 | (nnheader-report 'nnml "No such group: %s" decoded) |
| 265 | (nnheader-report 'nnml "Selected group %s" decoded) | 265 | (nnheader-report 'nnml "Selected group %s" decoded) |
| @@ -295,7 +295,7 @@ non-nil.") | |||
| 295 | (nnheader-report 'nnml "%s is a file" | 295 | (nnheader-report 'nnml "%s is a file" |
| 296 | (directory-file-name (nnml-group-pathname group | 296 | (directory-file-name (nnml-group-pathname group |
| 297 | nil server)))) | 297 | nil server)))) |
| 298 | ((assoc group nnml-group-alist) | 298 | ((assoc-string group nnml-group-alist) |
| 299 | t) | 299 | t) |
| 300 | (t | 300 | (t |
| 301 | (let (active) | 301 | (let (active) |
| @@ -379,7 +379,7 @@ non-nil.") | |||
| 379 | (nnml-nov-delete-article group number)) | 379 | (nnml-nov-delete-article group number)) |
| 380 | (push number rest))) | 380 | (push number rest))) |
| 381 | (push number rest))) | 381 | (push number rest))) |
| 382 | (let ((active (nth 1 (assoc group nnml-group-alist)))) | 382 | (let ((active (nth 1 (assoc-string group nnml-group-alist)))) |
| 383 | (when active | 383 | (when active |
| 384 | (setcar active (or (and active-articles | 384 | (setcar active (or (and active-articles |
| 385 | (apply 'min active-articles)) | 385 | (apply 'min active-articles)) |
| @@ -520,7 +520,7 @@ non-nil.") | |||
| 520 | (nnheader-report 'nnml "No such directory: %s/" file)) | 520 | (nnheader-report 'nnml "No such directory: %s/" file)) |
| 521 | ;; Remove the group from all structures. | 521 | ;; Remove the group from all structures. |
| 522 | (setq nnml-group-alist | 522 | (setq nnml-group-alist |
| 523 | (delq (assoc group nnml-group-alist) nnml-group-alist) | 523 | (delq (assoc-string group nnml-group-alist) nnml-group-alist) |
| 524 | nnml-current-group nil | 524 | nnml-current-group nil |
| 525 | nnml-current-directory nil) | 525 | nnml-current-directory nil) |
| 526 | ;; Save the active file. | 526 | ;; Save the active file. |
| @@ -549,7 +549,7 @@ non-nil.") | |||
| 549 | (when (<= (length (directory-files old-dir)) 2) | 549 | (when (<= (length (directory-files old-dir)) 2) |
| 550 | (ignore-errors (delete-directory old-dir))) | 550 | (ignore-errors (delete-directory old-dir))) |
| 551 | ;; That went ok, so we change the internal structures. | 551 | ;; That went ok, so we change the internal structures. |
| 552 | (let ((entry (assoc group nnml-group-alist))) | 552 | (let ((entry (assoc-string group nnml-group-alist))) |
| 553 | (when entry | 553 | (when entry |
| 554 | (setcar entry new-name)) | 554 | (setcar entry new-name)) |
| 555 | (setq nnml-current-directory nil | 555 | (setq nnml-current-directory nil |
| @@ -597,7 +597,7 @@ non-nil.") | |||
| 597 | (when (setq path (nnml-article-to-file article)) | 597 | (when (setq path (nnml-article-to-file article)) |
| 598 | (when (file-writable-p path) | 598 | (when (file-writable-p path) |
| 599 | (or (not nnmail-keep-last-article) | 599 | (or (not nnmail-keep-last-article) |
| 600 | (not (eq (cdr (nth 1 (assoc group nnml-group-alist))) | 600 | (not (eq (cdr (nth 1 (assoc-string group nnml-group-alist))) |
| 601 | article))))))) | 601 | article))))))) |
| 602 | 602 | ||
| 603 | ;; Find an article number in the current group given the Message-ID. | 603 | ;; Find an article number in the current group given the Message-ID. |
| @@ -742,7 +742,7 @@ article number. This function is called narrowed to an article." | |||
| 742 | "Compute the next article number in GROUP on SERVER." | 742 | "Compute the next article number in GROUP on SERVER." |
| 743 | (let* ((encoded (if nnmail-group-names-not-encoded-p | 743 | (let* ((encoded (if nnmail-group-names-not-encoded-p |
| 744 | (nnml-encoded-group-name group server))) | 744 | (nnml-encoded-group-name group server))) |
| 745 | (active (cadr (assoc (or encoded group) nnml-group-alist)))) | 745 | (active (cadr (assoc-string (or encoded group) nnml-group-alist)))) |
| 746 | ;; The group wasn't known to nnml, so we just create an active | 746 | ;; The group wasn't known to nnml, so we just create an active |
| 747 | ;; entry for it. | 747 | ;; entry for it. |
| 748 | (unless active | 748 | (unless active |
| @@ -783,7 +783,7 @@ article number. This function is called narrowed to an article." | |||
| 783 | (cdr nnml-incremental-nov-buffer-alist))))) | 783 | (cdr nnml-incremental-nov-buffer-alist))))) |
| 784 | 784 | ||
| 785 | (defun nnml-open-incremental-nov (group) | 785 | (defun nnml-open-incremental-nov (group) |
| 786 | (or (cdr (assoc group nnml-incremental-nov-buffer-alist)) | 786 | (or (cdr (assoc-string group nnml-incremental-nov-buffer-alist)) |
| 787 | (let ((buffer (nnml-get-nov-buffer group t))) | 787 | (let ((buffer (nnml-get-nov-buffer group t))) |
| 788 | (push (cons group buffer) nnml-incremental-nov-buffer-alist) | 788 | (push (cons group buffer) nnml-incremental-nov-buffer-alist) |
| 789 | buffer))) | 789 | buffer))) |
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index 7f2accc2b66..0bfecb28e09 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -340,10 +340,10 @@ for decoding when the cdr that the data specify is not available.") | |||
| 340 | (let (elem) | 340 | (let (elem) |
| 341 | ;; There may be two or more entries in `nnrss-group-alist' since | 341 | ;; There may be two or more entries in `nnrss-group-alist' since |
| 342 | ;; this function didn't delete them formerly. | 342 | ;; this function didn't delete them formerly. |
| 343 | (while (setq elem (assoc group nnrss-group-alist)) | 343 | (while (setq elem (assoc-string group nnrss-group-alist)) |
| 344 | (setq nnrss-group-alist (delq elem nnrss-group-alist)))) | 344 | (setq nnrss-group-alist (delq elem nnrss-group-alist)))) |
| 345 | (setq nnrss-server-data | 345 | (setq nnrss-server-data |
| 346 | (delq (assoc group nnrss-server-data) nnrss-server-data)) | 346 | (delq (assoc-string group nnrss-server-data) nnrss-server-data)) |
| 347 | (nnrss-save-server-data server) | 347 | (nnrss-save-server-data server) |
| 348 | (ignore-errors | 348 | (ignore-errors |
| 349 | (let ((file-name-coding-system nnmail-pathname-coding-system)) | 349 | (let ((file-name-coding-system nnmail-pathname-coding-system)) |
| @@ -367,7 +367,7 @@ for decoding when the cdr that the data specify is not available.") | |||
| 367 | (with-current-buffer nntp-server-buffer | 367 | (with-current-buffer nntp-server-buffer |
| 368 | (erase-buffer) | 368 | (erase-buffer) |
| 369 | (dolist (group groups) | 369 | (dolist (group groups) |
| 370 | (let ((elem (assoc (gnus-group-decoded-name group) nnrss-server-data))) | 370 | (let ((elem (assoc-string (gnus-group-decoded-name group) nnrss-server-data))) |
| 371 | (insert (format "%S %s 1 y\n" group (or (cadr elem) 0))))) | 371 | (insert (format "%S %s 1 y\n" group (or (cadr elem) 0))))) |
| 372 | 'active)) | 372 | 'active)) |
| 373 | 373 | ||
| @@ -539,7 +539,7 @@ which RSS 2.0 allows." | |||
| 539 | (if (hash-table-p nnrss-group-hashtb) | 539 | (if (hash-table-p nnrss-group-hashtb) |
| 540 | (clrhash nnrss-group-hashtb) | 540 | (clrhash nnrss-group-hashtb) |
| 541 | (setq nnrss-group-hashtb (make-hash-table :test 'equal))) | 541 | (setq nnrss-group-hashtb (make-hash-table :test 'equal))) |
| 542 | (let ((pair (assoc group nnrss-server-data))) | 542 | (let ((pair (assoc-string group nnrss-server-data))) |
| 543 | (setq nnrss-group-max (or (cadr pair) 0)) | 543 | (setq nnrss-group-max (or (cadr pair) 0)) |
| 544 | (setq nnrss-group-min (+ nnrss-group-max 1))) | 544 | (setq nnrss-group-min (+ nnrss-group-max 1))) |
| 545 | (let ((file (nnrss-make-filename group server)) | 545 | (let ((file (nnrss-make-filename group server)) |
| @@ -644,8 +644,8 @@ which RSS 2.0 allows." | |||
| 644 | (concat group ".xml")) | 644 | (concat group ".xml")) |
| 645 | nnrss-directory)))) | 645 | nnrss-directory)))) |
| 646 | (setq xml (nnrss-fetch file t)) | 646 | (setq xml (nnrss-fetch file t)) |
| 647 | (setq url (or (nth 2 (assoc group nnrss-server-data)) | 647 | (setq url (or (nth 2 (assoc-string group nnrss-server-data)) |
| 648 | (cadr (assoc group nnrss-group-alist)))) | 648 | (cadr (assoc-string group nnrss-group-alist)))) |
| 649 | (unless url | 649 | (unless url |
| 650 | (setq url | 650 | (setq url |
| 651 | (cdr | 651 | (cdr |
| @@ -653,7 +653,7 @@ which RSS 2.0 allows." | |||
| 653 | (nnrss-discover-feed | 653 | (nnrss-discover-feed |
| 654 | (read-string | 654 | (read-string |
| 655 | (format "URL to search for %s: " group) "http://"))))) | 655 | (format "URL to search for %s: " group) "http://"))))) |
| 656 | (let ((pair (assoc group nnrss-server-data))) | 656 | (let ((pair (assoc-string group nnrss-server-data))) |
| 657 | (if pair | 657 | (if pair |
| 658 | (setcdr (cdr pair) (list url)) | 658 | (setcdr (cdr pair) (list url)) |
| 659 | (push (list group nnrss-group-max url) nnrss-server-data))) | 659 | (push (list group nnrss-group-max url) nnrss-server-data))) |
| @@ -721,7 +721,7 @@ which RSS 2.0 allows." | |||
| 721 | (setq extra nil)) | 721 | (setq extra nil)) |
| 722 | (when changed | 722 | (when changed |
| 723 | (nnrss-save-group-data group server) | 723 | (nnrss-save-group-data group server) |
| 724 | (let ((pair (assoc group nnrss-server-data))) | 724 | (let ((pair (assoc-string group nnrss-server-data))) |
| 725 | (if pair | 725 | (if pair |
| 726 | (setcar (cdr pair) nnrss-group-max) | 726 | (setcar (cdr pair) nnrss-group-max) |
| 727 | (push (list group nnrss-group-max) nnrss-server-data))) | 727 | (push (list group nnrss-group-max) nnrss-server-data))) |
| @@ -792,7 +792,7 @@ It is useful when `(setq nnrss-use-local t)'." | |||
| 792 | (insert "RSSDIR='" (expand-file-name nnrss-directory) "'\n") | 792 | (insert "RSSDIR='" (expand-file-name nnrss-directory) "'\n") |
| 793 | (dolist (elem nnrss-server-data) | 793 | (dolist (elem nnrss-server-data) |
| 794 | (let ((url (or (nth 2 elem) | 794 | (let ((url (or (nth 2 elem) |
| 795 | (cadr (assoc (car elem) nnrss-group-alist))))) | 795 | (cadr (assoc-string (car elem) nnrss-group-alist))))) |
| 796 | (insert "$WGET -q -O \"$RSSDIR\"/'" | 796 | (insert "$WGET -q -O \"$RSSDIR\"/'" |
| 797 | (nnrss-translate-file-chars (concat (car elem) ".xml")) | 797 | (nnrss-translate-file-chars (concat (car elem) ".xml")) |
| 798 | "' '" url "'\n")))) | 798 | "' '" url "'\n")))) |