diff options
| author | Lars Ingebrigtsen | 2012-02-20 11:17:07 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-02-20 11:17:07 +0000 |
| commit | 75a4d9cc2f182761e2be64a429ed617557811194 (patch) | |
| tree | cdc25b0cb3ac20d5adface8e9aba17f32f681553 | |
| parent | e838e2ac2fa90fd579fa3816fe2216f7dc662bb4 (diff) | |
| download | emacs-75a4d9cc2f182761e2be64a429ed617557811194.tar.gz emacs-75a4d9cc2f182761e2be64a429ed617557811194.zip | |
nnimap.el (nnimap-request-list): Return the group names encoded as utf8. Otherwise non-European group names don't work.
(nnimap-request-newgroups): Ditto.
gnus-sum.el (gnus-summary-insert-old-articles): Fix the syntax for the default in `read-string' (bug#10757).
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 12 |
3 files changed, 15 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index eee886ec1c2..e2d99e92c9e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-02-20 Lars Ingebrigtsen <larsi@gnus.org> | 1 | 2012-02-20 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * nnimap.el (nnimap-request-list): Return the group names encoded as | ||
| 4 | utf8. Otherwise non-European group names don't work. | ||
| 5 | (nnimap-request-newgroups): Ditto. | ||
| 6 | |||
| 7 | * gnus-sum.el (gnus-summary-insert-old-articles): Fix the syntax for | ||
| 8 | the default in `read-string' (bug#10757). | ||
| 9 | |||
| 3 | * gnus-msg.el (gnus-group-post-news): Don't bug out on `C-u a' on | 10 | * gnus-msg.el (gnus-group-post-news): Don't bug out on `C-u a' on |
| 4 | topics (bug#10843). | 11 | topics (bug#10843). |
| 5 | 12 | ||
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 8ae8d0b8ae2..9770b8f9982 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -12860,9 +12860,8 @@ If ALL is a number, fetch this number of articles." | |||
| 12860 | (if initial "max" "default") | 12860 | (if initial "max" "default") |
| 12861 | len) | 12861 | len) |
| 12862 | nil nil | 12862 | nil nil |
| 12863 | (if initial | 12863 | (and initial |
| 12864 | (cons (number-to-string initial) | 12864 | (number-to-string initial))))) |
| 12865 | 0))))) | ||
| 12866 | (unless (string-match "^[ \t]*$" input) | 12865 | (unless (string-match "^[ \t]*$" input) |
| 12867 | (setq all (string-to-number input)) | 12866 | (setq all (string-to-number input)) |
| 12868 | (if (< all len) | 12867 | (if (< all len) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 6cbd83c8f78..f978b8c9906 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1191,7 +1191,8 @@ textual parts.") | |||
| 1191 | (dolist (response responses) | 1191 | (dolist (response responses) |
| 1192 | (let* ((sequence (car response)) | 1192 | (let* ((sequence (car response)) |
| 1193 | (response (cadr response)) | 1193 | (response (cadr response)) |
| 1194 | (group (cadr (assoc sequence sequences)))) | 1194 | (group (cadr (assoc sequence sequences))) |
| 1195 | (egroup (encode-coding-string group 'utf-8))) | ||
| 1195 | (when (and group | 1196 | (when (and group |
| 1196 | (equal (caar response) "OK")) | 1197 | (equal (caar response) "OK")) |
| 1197 | (let ((uidnext (nnimap-find-parameter "UIDNEXT" response)) | 1198 | (let ((uidnext (nnimap-find-parameter "UIDNEXT" response)) |
| @@ -1203,15 +1204,14 @@ textual parts.") | |||
| 1203 | (setq highest (1- (string-to-number (car uidnext))))) | 1204 | (setq highest (1- (string-to-number (car uidnext))))) |
| 1204 | (cond | 1205 | (cond |
| 1205 | ((null highest) | 1206 | ((null highest) |
| 1206 | (insert (format "%S 0 1 y\n" (utf7-decode group t)))) | 1207 | (insert (format "%S 0 1 y\n" egroup))) |
| 1207 | ((zerop exists) | 1208 | ((zerop exists) |
| 1208 | ;; Empty group. | 1209 | ;; Empty group. |
| 1209 | (insert (format "%S %d %d y\n" | 1210 | (insert (format "%S %d %d y\n" egroup |
| 1210 | (utf7-decode group t) | ||
| 1211 | highest (1+ highest)))) | 1211 | highest (1+ highest)))) |
| 1212 | (t | 1212 | (t |
| 1213 | ;; Return the widest possible range. | 1213 | ;; Return the widest possible range. |
| 1214 | (insert (format "%S %d 1 y\n" (utf7-decode group t) | 1214 | (insert (format "%S %d 1 y\n" egroup |
| 1215 | (or highest exists))))))))) | 1215 | (or highest exists))))))))) |
| 1216 | t))))) | 1216 | t))))) |
| 1217 | 1217 | ||
| @@ -1223,7 +1223,7 @@ textual parts.") | |||
| 1223 | (nnimap-get-groups))) | 1223 | (nnimap-get-groups))) |
| 1224 | (unless (assoc group nnimap-current-infos) | 1224 | (unless (assoc group nnimap-current-infos) |
| 1225 | ;; Insert dummy numbers here -- they don't matter. | 1225 | ;; Insert dummy numbers here -- they don't matter. |
| 1226 | (insert (format "%S 0 1 y\n" (utf7-encode group))))) | 1226 | (insert (format "%S 0 1 y\n" (encode-coding-string group 'utf-8))))) |
| 1227 | t))) | 1227 | t))) |
| 1228 | 1228 | ||
| 1229 | (deffoo nnimap-retrieve-group-data-early (server infos) | 1229 | (deffoo nnimap-retrieve-group-data-early (server infos) |