diff options
| author | Lars Magne Ingebrigtsen | 2011-07-07 23:18:23 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-07-07 23:18:23 +0000 |
| commit | 72aba33f59d0ba30a01adf7aa7952b5839a8410d (patch) | |
| tree | ccb1f37b5b56254a17e25a3478f5bfa03b193a9c | |
| parent | 14cc04aa161d7d070a6f3f7038a44fd2a3657977 (diff) | |
| download | emacs-72aba33f59d0ba30a01adf7aa7952b5839a8410d.tar.gz emacs-72aba33f59d0ba30a01adf7aa7952b5839a8410d.zip | |
Merge changes made in Gnus trunk.
gnus-msg.el (gnus-bug): Don't insert user variables. It usually isn't very interesting any more, and it leaks potentially secret data.
(gnus-debug): Removed.
gnus-art.el (gnus-ignored-headers): Removed obsolete and non-working use of :custom-show.
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 73 |
3 files changed, 12 insertions, 73 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f8f52417ac2..8b6d00e8e1d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-07-07 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-msg.el (gnus-bug): Don't insert user variables. It usually | ||
| 4 | isn't very interesting any more, and it leaks potentially secret data. | ||
| 5 | (gnus-debug): Removed. | ||
| 6 | |||
| 7 | * gnus-art.el (gnus-ignored-headers): Removed obsolete and non-working | ||
| 8 | use of :custom-show. | ||
| 9 | |||
| 1 | 2011-07-07 Daiki Ueno <ueno@unixuser.org> | 10 | 2011-07-07 Daiki Ueno <ueno@unixuser.org> |
| 2 | 11 | ||
| 3 | * plstore.el: Add documentation. | 12 | * plstore.el: Add documentation. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 7e2d213d20c..7255be416eb 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -163,8 +163,7 @@ | |||
| 163 | "*All headers that start with this regexp will be hidden. | 163 | "*All headers that start with this regexp will be hidden. |
| 164 | This variable can also be a list of regexps of headers to be ignored. | 164 | This variable can also be a list of regexps of headers to be ignored. |
| 165 | If `gnus-visible-headers' is non-nil, this variable will be ignored." | 165 | If `gnus-visible-headers' is non-nil, this variable will be ignored." |
| 166 | :type '(choice :custom-show nil | 166 | :type '(choice regexp |
| 167 | regexp | ||
| 168 | (repeat regexp)) | 167 | (repeat regexp)) |
| 169 | :group 'gnus-article-hiding) | 168 | :group 'gnus-article-hiding) |
| 170 | 169 | ||
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index bad474b4057..9d3ec25c03a 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -1464,26 +1464,13 @@ If YANK is non-nil, include the original article." | |||
| 1464 | (when gnus-bug-create-help-buffer | 1464 | (when gnus-bug-create-help-buffer |
| 1465 | (push `(gnus-bug-kill-buffer) message-send-actions)) | 1465 | (push `(gnus-bug-kill-buffer) message-send-actions)) |
| 1466 | (goto-char (point-min)) | 1466 | (goto-char (point-min)) |
| 1467 | (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$")) | 1467 | (message-goto-body) |
| 1468 | (forward-line 1) | 1468 | (insert "\n\n\n\n\n") |
| 1469 | (insert (format "Package: %s\n" gnus-bug-package)) | ||
| 1470 | (insert (format "Version: %s\n" (gnus-continuum-version))) | ||
| 1471 | (insert "\n") | ||
| 1472 | (insert (gnus-version) "\n" | 1469 | (insert (gnus-version) "\n" |
| 1473 | (emacs-version) "\n") | 1470 | (emacs-version) "\n") |
| 1474 | (when (and (boundp 'nntp-server-type) | 1471 | (when (and (boundp 'nntp-server-type) |
| 1475 | (stringp nntp-server-type)) | 1472 | (stringp nntp-server-type)) |
| 1476 | (insert nntp-server-type)) | 1473 | (insert nntp-server-type)) |
| 1477 | (insert "\n\n\n\n\n") | ||
| 1478 | (let (text) | ||
| 1479 | (with-current-buffer (gnus-get-buffer-create " *gnus environment info*") | ||
| 1480 | (erase-buffer) | ||
| 1481 | (gnus-debug) | ||
| 1482 | (setq text (buffer-string))) | ||
| 1483 | (insert "<#part type=application/emacs-lisp " | ||
| 1484 | "disposition=inline description=\"User settings\">\n" | ||
| 1485 | text | ||
| 1486 | "\n<#/part>")) | ||
| 1487 | (goto-char (point-min)) | 1474 | (goto-char (point-min)) |
| 1488 | (search-forward "Subject: " nil t) | 1475 | (search-forward "Subject: " nil t) |
| 1489 | (message ""))) | 1476 | (message ""))) |
| @@ -1503,62 +1490,6 @@ If YANK is non-nil, include the original article." | |||
| 1503 | (with-current-buffer buffer | 1490 | (with-current-buffer buffer |
| 1504 | (message-yank-buffer gnus-article-buffer)))) | 1491 | (message-yank-buffer gnus-article-buffer)))) |
| 1505 | 1492 | ||
| 1506 | (defun gnus-debug () | ||
| 1507 | "Attempts to go through the Gnus source file and report what variables have been changed. | ||
| 1508 | The source file has to be in the Emacs load path." | ||
| 1509 | (interactive) | ||
| 1510 | (let ((files gnus-debug-files) | ||
| 1511 | (point (point)) | ||
| 1512 | file expr olist sym) | ||
| 1513 | (gnus-message 4 "Please wait while we snoop your variables...") | ||
| 1514 | (sit-for 0) | ||
| 1515 | ;; Go through all the files looking for non-default values for variables. | ||
| 1516 | (with-current-buffer (gnus-get-buffer-create " *gnus bug info*") | ||
| 1517 | (while files | ||
| 1518 | (erase-buffer) | ||
| 1519 | (when (and (setq file (locate-library (pop files))) | ||
| 1520 | (file-exists-p file)) | ||
| 1521 | (insert-file-contents file) | ||
| 1522 | (goto-char (point-min)) | ||
| 1523 | (if (not (re-search-forward "^;;* *Internal variables" nil t)) | ||
| 1524 | (gnus-message 4 "Malformed sources in file %s" file) | ||
| 1525 | (narrow-to-region (point-min) (point)) | ||
| 1526 | (goto-char (point-min)) | ||
| 1527 | (while (setq expr (ignore-errors (read (current-buffer)))) | ||
| 1528 | (ignore-errors | ||
| 1529 | (and (or (eq (car expr) 'defvar) | ||
| 1530 | (eq (car expr) 'defcustom)) | ||
| 1531 | (stringp (nth 3 expr)) | ||
| 1532 | (not (memq (nth 1 expr) gnus-debug-exclude-variables)) | ||
| 1533 | (or (not (boundp (nth 1 expr))) | ||
| 1534 | (not (equal (eval (nth 2 expr)) | ||
| 1535 | (symbol-value (nth 1 expr))))) | ||
| 1536 | (push (nth 1 expr) olist))))))) | ||
| 1537 | (kill-buffer (current-buffer))) | ||
| 1538 | (when (setq olist (nreverse olist)) | ||
| 1539 | (insert "------------------ Environment follows ------------------\n\n")) | ||
| 1540 | (while olist | ||
| 1541 | (if (boundp (car olist)) | ||
| 1542 | (ignore-errors | ||
| 1543 | (gnus-pp | ||
| 1544 | `(setq ,(car olist) | ||
| 1545 | ,(if (or (consp (setq sym (symbol-value (car olist)))) | ||
| 1546 | (and (symbolp sym) | ||
| 1547 | (not (or (eq sym nil) | ||
| 1548 | (eq sym t))))) | ||
| 1549 | (list 'quote (symbol-value (car olist))) | ||
| 1550 | (symbol-value (car olist)))))) | ||
| 1551 | (insert ";; (makeunbound '" (symbol-name (car olist)) ")\n")) | ||
| 1552 | (setq olist (cdr olist))) | ||
| 1553 | (insert "\n\n") | ||
| 1554 | ;; Remove any control chars - they seem to cause trouble for some | ||
| 1555 | ;; mailers. (Byte-compiled output from the stuff above.) | ||
| 1556 | (goto-char point) | ||
| 1557 | (while (re-search-forward (mm-string-to-multibyte | ||
| 1558 | "[\000-\010\013-\037\200-\237]") nil t) | ||
| 1559 | (replace-match (format "\\%03o" (string-to-char (match-string 0))) | ||
| 1560 | t t)))) | ||
| 1561 | |||
| 1562 | ;;; Treatment of rejected articles. | 1493 | ;;; Treatment of rejected articles. |
| 1563 | ;;; Bounced mail. | 1494 | ;;; Bounced mail. |
| 1564 | 1495 | ||