diff options
| author | Gnus developers | 2011-08-20 00:20:39 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-08-20 00:20:39 +0000 |
| commit | 4d9db491a079712aeaf92ae3c63aebc56398b17e (patch) | |
| tree | f499e4a786429ad2ba9dec3370417933dd19ab89 | |
| parent | 9234ff7fcfa79c5e19b9d3a7ae88570f4f768b9a (diff) | |
| download | emacs-4d9db491a079712aeaf92ae3c63aebc56398b17e.tar.gz emacs-4d9db491a079712aeaf92ae3c63aebc56398b17e.zip | |
Merge changes made in Gnus trunk.
nnimap.el (nnimap-transform-headers): Protect against (NIL ...) bodystructures (bug#9314).
starttls.el (starttls-any-program-available): Define as obsolete function.
gnus-util.el (gnus-y-or-n-p): Reinstate the message-clearing y-or-n-p versions which Gnus use when appropriate.
gnus-group.el (gnus-group-clear-data): Add a y-or-n query, since it's a pretty destructive command.
nnmail.el (nnmail-extra-headers): Clarify slightly (bug#9302).
message.el (message-fix-before-sending): Make a different warning about NUL characters (bug#9270).
gnus-sum.el (gnus-auto-select-subject): Allow specifying a function from custom (bug#9260).
| -rw-r--r-- | lisp/gnus/ChangeLog | 26 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 15 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 59 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/starttls.el | 4 |
8 files changed, 59 insertions, 63 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 64ac50fe8f0..52ed08a84db 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-19 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-transform-headers): Protect against (NIL ...) | ||
| 4 | bodystructures (bug#9314). | ||
| 5 | |||
| 1 | 2011-08-19 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2011-08-19 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * gnus-art.el (gnus-insert-mime-button, gnus-mime-display-alternative): | 8 | * gnus-art.el (gnus-insert-mime-button, gnus-mime-display-alternative): |
| @@ -12,8 +17,29 @@ | |||
| 12 | `gnus-registry-get-id-key' since `gnus-registry-fetch-groups' isn't | 17 | `gnus-registry-get-id-key' since `gnus-registry-fetch-groups' isn't |
| 13 | available anymore. | 18 | available anymore. |
| 14 | 19 | ||
| 20 | 2011-08-12 Simon Josefsson <simon@josefsson.org> | ||
| 21 | |||
| 22 | * starttls.el (starttls-any-program-available): Define as obsolete | ||
| 23 | function. | ||
| 24 | |||
| 25 | 2011-08-18 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 26 | |||
| 27 | * gnus-util.el (gnus-y-or-n-p): Reinstate the message-clearing y-or-n-p | ||
| 28 | versions which Gnus use when appropriate. | ||
| 29 | |||
| 30 | * gnus-group.el (gnus-group-clear-data): Add a y-or-n query, since it's | ||
| 31 | a pretty destructive command. | ||
| 32 | |||
| 33 | * nnmail.el (nnmail-extra-headers): Clarify slightly (bug#9302). | ||
| 34 | |||
| 15 | 2011-08-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | 35 | 2011-08-17 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 16 | 36 | ||
| 37 | p * message.el (message-fix-before-sending): Make a different warning | ||
| 38 | about NUL characters (bug#9270). | ||
| 39 | |||
| 40 | * gnus-sum.el (gnus-auto-select-subject): Allow specifying a function | ||
| 41 | from custom (bug#9260). | ||
| 42 | |||
| 17 | * gnus-spec.el (gnus-lrm-string): Use 8206 instead of ?\x200e to make | 43 | * gnus-spec.el (gnus-lrm-string): Use 8206 instead of ?\x200e to make |
| 18 | things work in Emacs 22 and XEmacs, too. | 44 | things work in Emacs 22 and XEmacs, too. |
| 19 | 45 | ||
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 2a31ccd34f0..5ae29053b6f 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -3471,13 +3471,14 @@ sort in reverse order." | |||
| 3471 | "Clear all marks and read ranges from the current group. | 3471 | "Clear all marks and read ranges from the current group. |
| 3472 | Obeys the process/prefix convention." | 3472 | Obeys the process/prefix convention." |
| 3473 | (interactive "P") | 3473 | (interactive "P") |
| 3474 | (gnus-group-iterate arg | 3474 | (when (gnus-y-or-n-p "Really clear data? ") |
| 3475 | (lambda (group) | 3475 | (gnus-group-iterate arg |
| 3476 | (let (info) | 3476 | (lambda (group) |
| 3477 | (gnus-info-clear-data (setq info (gnus-get-info group))) | 3477 | (let (info) |
| 3478 | (gnus-get-unread-articles-in-group info (gnus-active group) t) | 3478 | (gnus-info-clear-data (setq info (gnus-get-info group))) |
| 3479 | (when (gnus-group-goto-group group) | 3479 | (gnus-get-unread-articles-in-group info (gnus-active group) t) |
| 3480 | (gnus-group-update-group-line)))))) | 3480 | (when (gnus-group-goto-group group) |
| 3481 | (gnus-group-update-group-line))))))) | ||
| 3481 | 3482 | ||
| 3482 | (defun gnus-group-clear-data-on-native-groups () | 3483 | (defun gnus-group-clear-data-on-native-groups () |
| 3483 | "Clear all marks and read ranges from all native groups." | 3484 | "Clear all marks and read ranges from all native groups." |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index cd4699e6107..73ecffb090e 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -375,7 +375,8 @@ place point on some subject line." | |||
| 375 | (const unread) | 375 | (const unread) |
| 376 | (const first) | 376 | (const first) |
| 377 | (const unseen) | 377 | (const unseen) |
| 378 | (const unseen-or-unread))) | 378 | (const unseen-or-unread) |
| 379 | (function :tag "Function to call"))) | ||
| 379 | 380 | ||
| 380 | (defcustom gnus-auto-select-next t | 381 | (defcustom gnus-auto-select-next t |
| 381 | "*If non-nil, offer to go to the next group from the end of the previous. | 382 | "*If non-nil, offer to go to the next group from the end of the previous. |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 7155c7f9607..03ff4a2ea4b 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -388,57 +388,14 @@ TIME defaults to the current time." | |||
| 388 | (define-key keymap key (pop plist)) | 388 | (define-key keymap key (pop plist)) |
| 389 | (pop plist))))) | 389 | (pop plist))))) |
| 390 | 390 | ||
| 391 | ;; Two silly functions to ensure that all `y-or-n-p' questions clear | 391 | (defun gnus-y-or-n-p (prompt) |
| 392 | ;; the echo area. | 392 | (prog1 |
| 393 | ;; | 393 | (y-or-n-p prompt) |
| 394 | ;; Do we really need these functions? Workarounds for bugs in the corresponding | 394 | (message ""))) |
| 395 | ;; Emacs functions? Maybe these bugs are no longer present in any supported | 395 | (defun gnus-yes-or-no-p (prompt) |
| 396 | ;; (X)Emacs version? Alias them to the original functions and see if anyone | 396 | (prog1 |
| 397 | ;; reports a problem. If not, replace with original functions. --rsteib, | 397 | (yes-or-no-p prompt) |
| 398 | ;; 2007-12-14 | 398 | (message ""))) |
| 399 | ;; | ||
| 400 | ;; All supported Emacsen clear the echo area after `yes-or-no-p', so we can | ||
| 401 | ;; remove `yes-or-no-p'. RMS says that not clearing after `y-or-n-p' is | ||
| 402 | ;; intentional (see below), so we could remove `gnus-y-or-n-p' too. | ||
| 403 | ;; Objections? --rsteib, 2008-02-16 | ||
| 404 | ;; | ||
| 405 | ;; ,----[ http://thread.gmane.org/gmane.emacs.gnus.general/65099/focus=66070 ] | ||
| 406 | ;; | From: Richard Stallman | ||
| 407 | ;; | Subject: Re: Do we need gnus-yes-or-no-p and gnus-y-or-n-p? | ||
| 408 | ;; | To: Katsumi Yamaoka [...] | ||
| 409 | ;; | Cc: emacs-devel@[...], xemacs-beta@[...], ding@[...] | ||
| 410 | ;; | Date: Mon, 07 Jan 2008 12:16:05 -0500 | ||
| 411 | ;; | Message-ID: <E1JBva1-000528-VY@fencepost.gnu.org> | ||
| 412 | ;; | | ||
| 413 | ;; | The behavior of `y-or-n-p' that it doesn't clear the question | ||
| 414 | ;; | and the answer is not serious of course, but I feel it is not | ||
| 415 | ;; | cool. | ||
| 416 | ;; | | ||
| 417 | ;; | It is intentional. | ||
| 418 | ;; | | ||
| 419 | ;; | Currently, it is commented out in the trunk by Reiner Steib. He | ||
| 420 | ;; | also wrote the benefit of leaving the question and the answer in | ||
| 421 | ;; | the echo area as follows: | ||
| 422 | ;; | | ||
| 423 | ;; | (http://article.gmane.org/gmane.emacs.gnus.general/66061) | ||
| 424 | ;; | > In contrast to yes-or-no-p it is much easier to type y, n, | ||
| 425 | ;; | > SPC, DEL, etc accidentally, so it might be useful for the user | ||
| 426 | ;; | > to see what he has typed. | ||
| 427 | ;; | | ||
| 428 | ;; | Yes, that is the reason. | ||
| 429 | ;; `---- | ||
| 430 | |||
| 431 | ;; (defun gnus-y-or-n-p (prompt) | ||
| 432 | ;; (prog1 | ||
| 433 | ;; (y-or-n-p prompt) | ||
| 434 | ;; (message ""))) | ||
| 435 | ;; (defun gnus-yes-or-no-p (prompt) | ||
| 436 | ;; (prog1 | ||
| 437 | ;; (yes-or-no-p prompt) | ||
| 438 | ;; (message ""))) | ||
| 439 | |||
| 440 | (defalias 'gnus-y-or-n-p 'y-or-n-p) | ||
| 441 | (defalias 'gnus-yes-or-no-p 'yes-or-no-p) | ||
| 442 | 399 | ||
| 443 | ;; By Frank Schmitt <ich@Frank-Schmitt.net>. Allows to have | 400 | ;; By Frank Schmitt <ich@Frank-Schmitt.net>. Allows to have |
| 444 | ;; age-depending date representations. (e.g. just the time if it's | 401 | ;; age-depending date representations. (e.g. just the time if it's |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index a157afe2ce6..52cef1925a2 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4254,8 +4254,10 @@ conformance." | |||
| 4254 | "Invisible text found and made visible; continue sending? ") | 4254 | "Invisible text found and made visible; continue sending? ") |
| 4255 | (error "Invisible text found and made visible"))))) | 4255 | (error "Invisible text found and made visible"))))) |
| 4256 | (message-check 'illegible-text | 4256 | (message-check 'illegible-text |
| 4257 | (let (char found choice) | 4257 | (let (char found choice nul-chars) |
| 4258 | (message-goto-body) | 4258 | (message-goto-body) |
| 4259 | (setq nul-chars (save-excursion | ||
| 4260 | (search-forward "\000" nil t))) | ||
| 4259 | (while (progn | 4261 | (while (progn |
| 4260 | (skip-chars-forward mm-7bit-chars) | 4262 | (skip-chars-forward mm-7bit-chars) |
| 4261 | (when (get-text-property (point) 'no-illegible-text) | 4263 | (when (get-text-property (point) 'no-illegible-text) |
| @@ -4281,7 +4283,9 @@ conformance." | |||
| 4281 | (when found | 4283 | (when found |
| 4282 | (setq choice | 4284 | (setq choice |
| 4283 | (gnus-multiple-choice | 4285 | (gnus-multiple-choice |
| 4284 | "Non-printable characters found. Continue sending?" | 4286 | (if nul-chars |
| 4287 | "NUL characters found, which may cause problems. Continue sending?" | ||
| 4288 | "Non-printable characters found. Continue sending?") | ||
| 4285 | `((?d "Remove non-printable characters and send") | 4289 | `((?d "Remove non-printable characters and send") |
| 4286 | (?r ,(format | 4290 | (?r ,(format |
| 4287 | "Replace non-printable characters with \"%s\" and send" | 4291 | "Replace non-printable characters with \"%s\" and send" |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index c940e06fbb6..2dbc465f8c9 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -216,9 +216,10 @@ textual parts.") | |||
| 216 | (let ((structure (ignore-errors | 216 | (let ((structure (ignore-errors |
| 217 | (read (current-buffer))))) | 217 | (read (current-buffer))))) |
| 218 | (while (and (consp structure) | 218 | (while (and (consp structure) |
| 219 | (not (stringp (car structure)))) | 219 | (not (atom (car structure)))) |
| 220 | (setq structure (car structure))) | 220 | (setq structure (car structure))) |
| 221 | (setq lines (if (and | 221 | (setq lines (if (and |
| 222 | (stringp (car structure)) | ||
| 222 | (equal (upcase (nth 0 structure)) "MESSAGE") | 223 | (equal (upcase (nth 0 structure)) "MESSAGE") |
| 223 | (equal (upcase (nth 1 structure)) "RFC822")) | 224 | (equal (upcase (nth 1 structure)) "RFC822")) |
| 224 | (nth 9 structure) | 225 | (nth 9 structure) |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 8906a036779..dc2080dee1a 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -554,7 +554,9 @@ parameter. It should return nil, `warn' or `delete'." | |||
| 554 | (const delete))) | 554 | (const delete))) |
| 555 | 555 | ||
| 556 | (defcustom nnmail-extra-headers '(To Newsgroups) | 556 | (defcustom nnmail-extra-headers '(To Newsgroups) |
| 557 | "*Extra headers to parse." | 557 | "Extra headers to parse. |
| 558 | In addition to the standard headers, these extra headers will be | ||
| 559 | included in NOV headers (and the like) when backends parse headers." | ||
| 558 | :version "21.1" | 560 | :version "21.1" |
| 559 | :group 'nnmail | 561 | :group 'nnmail |
| 560 | :type '(repeat symbol)) | 562 | :type '(repeat symbol)) |
diff --git a/lisp/gnus/starttls.el b/lisp/gnus/starttls.el index c1caca90cf0..b995f7478ce 100644 --- a/lisp/gnus/starttls.el +++ b/lisp/gnus/starttls.el | |||
| @@ -301,6 +301,10 @@ GNUTLS requires a port number." | |||
| 301 | starttls-gnutls-program | 301 | starttls-gnutls-program |
| 302 | starttls-program))) | 302 | starttls-program))) |
| 303 | 303 | ||
| 304 | (defalias 'starttls-any-program-available 'starttls-available-p) | ||
| 305 | (make-obsolete 'starttls-any-program-available 'starttls-available-p | ||
| 306 | "2011-08-02") | ||
| 307 | |||
| 304 | (provide 'starttls) | 308 | (provide 'starttls) |
| 305 | 309 | ||
| 306 | ;;; starttls.el ends here | 310 | ;;; starttls.el ends here |