diff options
| author | ShengHuo ZHU | 2001-02-07 22:08:26 +0000 |
|---|---|---|
| committer | ShengHuo ZHU | 2001-02-07 22:08:26 +0000 |
| commit | 1653df0fbbdf862ce49782c124dbd1141feb06ef (patch) | |
| tree | 840999b7bd209728ab130ce0d762772a62b61ce1 /lisp/gnus | |
| parent | 751d3bc411b93c87f6225faf4a02e52fa531372d (diff) | |
| download | emacs-1653df0fbbdf862ce49782c124dbd1141feb06ef.tar.gz emacs-1653df0fbbdf862ce49782c124dbd1141feb06ef.zip | |
2001-02-07 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el (message-make-forward-subject): Argument decoded.
(message-forward): Use it when digest.
* gnus-uu.el (gnus-uu-grab-articles): Shoot down original article
buffer.
* gnus-sum.el (gnus-summary-make-menu-bar): Don't share menu bar
in Emacs.
* gnus-art.el (gnus-article-make-menu-bar): Make
gnus-article-post-menu.
Diffstat (limited to 'lisp/gnus')
| -rw-r--r-- | lisp/gnus/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 20 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/gnus-uu.el | 17 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 12 |
5 files changed, 57 insertions, 20 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 83bbc9201bb..3bf886c5e7d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2001-02-07 ShengHuo ZHU <zsh@cs.rochester.edu> | ||
| 2 | |||
| 3 | * message.el (message-make-forward-subject): Argument decoded. | ||
| 4 | (message-forward): Use it when digest. | ||
| 5 | |||
| 6 | * gnus-uu.el (gnus-uu-grab-articles): Shoot down original article | ||
| 7 | buffer. | ||
| 8 | |||
| 9 | * gnus-sum.el (gnus-summary-make-menu-bar): Don't share menu bar | ||
| 10 | in Emacs. | ||
| 11 | |||
| 12 | * gnus-art.el (gnus-article-make-menu-bar): Make | ||
| 13 | gnus-article-post-menu. | ||
| 14 | |||
| 1 | 2001-02-06 Dave Love <fx@gnu.org> | 15 | 2001-02-06 Dave Love <fx@gnu.org> |
| 2 | 16 | ||
| 3 | * qp.el (quoted-printable-encode-region): Remove redundant code | 17 | * qp.el (quoted-printable-encode-region): Remove redundant code |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 55e51d8c128..d535cefbd80 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2289,8 +2289,9 @@ This format is defined by the `gnus-article-time-format' variable." | |||
| 2289 | gnus-newsgroup-name 'highlight-words t))) | 2289 | gnus-newsgroup-name 'highlight-words t))) |
| 2290 | gnus-emphasis-alist))))) | 2290 | gnus-emphasis-alist))))) |
| 2291 | 2291 | ||
| 2292 | (defvar gnus-summary-article-menu) | 2292 | (eval-when-compile |
| 2293 | (defvar gnus-summary-post-menu) | 2293 | (defvar gnus-summary-article-menu) |
| 2294 | (defvar gnus-summary-post-menu)) | ||
| 2294 | 2295 | ||
| 2295 | ;;; Saving functions. | 2296 | ;;; Saving functions. |
| 2296 | 2297 | ||
| @@ -2662,6 +2663,8 @@ If variable `gnus-use-long-file-name' is non-nil, it is | |||
| 2662 | (substitute-key-definition | 2663 | (substitute-key-definition |
| 2663 | 'undefined 'gnus-article-read-summary-keys gnus-article-mode-map) | 2664 | 'undefined 'gnus-article-read-summary-keys gnus-article-mode-map) |
| 2664 | 2665 | ||
| 2666 | (defvar gnus-article-post-menu nil) | ||
| 2667 | |||
| 2665 | (defun gnus-article-make-menu-bar () | 2668 | (defun gnus-article-make-menu-bar () |
| 2666 | (gnus-turn-off-edit-menu 'article) | 2669 | (gnus-turn-off-edit-menu 'article) |
| 2667 | (unless (boundp 'gnus-article-article-menu) | 2670 | (unless (boundp 'gnus-article-article-menu) |
| @@ -2692,8 +2695,15 @@ If variable `gnus-use-long-file-name' is non-nil, it is | |||
| 2692 | ;; Note "Commands" menu is defined in gnus-sum.el for consistency | 2695 | ;; Note "Commands" menu is defined in gnus-sum.el for consistency |
| 2693 | 2696 | ||
| 2694 | (when (boundp 'gnus-summary-post-menu) | 2697 | (when (boundp 'gnus-summary-post-menu) |
| 2698 | (cond | ||
| 2699 | ((not (keymapp gnus-summary-post-menu)) | ||
| 2700 | (setq gnus-article-post-menu gnus-summary-post-menu)) | ||
| 2701 | ((not gnus-article-post-menu) | ||
| 2702 | ;; Don't share post menu. | ||
| 2703 | (setq gnus-article-post-menu | ||
| 2704 | (copy-keymap gnus-summary-post-menu)))) | ||
| 2695 | (define-key gnus-article-mode-map [menu-bar post] | 2705 | (define-key gnus-article-mode-map [menu-bar post] |
| 2696 | (cons "Post" gnus-summary-post-menu))) | 2706 | (cons "Post" gnus-article-post-menu))) |
| 2697 | 2707 | ||
| 2698 | (gnus-run-hooks 'gnus-article-menu-hook))) | 2708 | (gnus-run-hooks 'gnus-article-menu-hook))) |
| 2699 | 2709 | ||
| @@ -2716,13 +2726,13 @@ commands: | |||
| 2716 | \\[gnus-article-describe-briefly]\t Describe the current mode briefly | 2726 | \\[gnus-article-describe-briefly]\t Describe the current mode briefly |
| 2717 | \\[gnus-info-find-node]\t Go to the Gnus info node" | 2727 | \\[gnus-info-find-node]\t Go to the Gnus info node" |
| 2718 | (interactive) | 2728 | (interactive) |
| 2719 | (when (gnus-visual-p 'article-menu 'menu) | ||
| 2720 | (gnus-article-make-menu-bar)) | ||
| 2721 | (gnus-simplify-mode-line) | 2729 | (gnus-simplify-mode-line) |
| 2722 | (setq mode-name "Article") | 2730 | (setq mode-name "Article") |
| 2723 | (setq major-mode 'gnus-article-mode) | 2731 | (setq major-mode 'gnus-article-mode) |
| 2724 | (make-local-variable 'minor-mode-alist) | 2732 | (make-local-variable 'minor-mode-alist) |
| 2725 | (use-local-map gnus-article-mode-map) | 2733 | (use-local-map gnus-article-mode-map) |
| 2734 | (when (gnus-visual-p 'article-menu 'menu) | ||
| 2735 | (gnus-article-make-menu-bar)) | ||
| 2726 | (gnus-update-format-specifications nil 'article-mode) | 2736 | (gnus-update-format-specifications nil 'article-mode) |
| 2727 | (set (make-local-variable 'page-delimiter) gnus-page-delimiter) | 2737 | (set (make-local-variable 'page-delimiter) gnus-page-delimiter) |
| 2728 | (make-local-variable 'gnus-page-broken) | 2738 | (make-local-variable 'gnus-page-broken) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 6ffecba1bd4..4e6a939e034 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -1315,6 +1315,8 @@ increase the score of each group you read." | |||
| 1315 | 1315 | ||
| 1316 | (put 'gnus-summary-mode 'mode-class 'special) | 1316 | (put 'gnus-summary-mode 'mode-class 'special) |
| 1317 | 1317 | ||
| 1318 | (defvar gnus-article-commands-menu) | ||
| 1319 | |||
| 1318 | (when t | 1320 | (when t |
| 1319 | ;; Non-orthogonal keys | 1321 | ;; Non-orthogonal keys |
| 1320 | 1322 | ||
| @@ -1815,9 +1817,15 @@ increase the score of each group you read." | |||
| 1815 | gnus-summary-article-menu gnus-summary-mode-map "" | 1817 | gnus-summary-article-menu gnus-summary-mode-map "" |
| 1816 | (cons "Article" innards)) | 1818 | (cons "Article" innards)) |
| 1817 | 1819 | ||
| 1818 | (easy-menu-define | 1820 | (if (not (keymapp gnus-summary-article-menu)) |
| 1819 | gnus-article-commands-menu gnus-article-mode-map "" | 1821 | (easy-menu-define |
| 1820 | (cons "Commands" innards))) | 1822 | gnus-article-commands-menu gnus-article-mode-map "" |
| 1823 | (cons "Commands" innards)) | ||
| 1824 | ;; in Emacs, don't share menu. | ||
| 1825 | (setq gnus-article-commands-menu | ||
| 1826 | (copy-keymap gnus-summary-article-menu)) | ||
| 1827 | (define-key gnus-article-mode-map [menu-bar commands] | ||
| 1828 | (cons "Commands" gnus-article-commands-menu)))) | ||
| 1821 | 1829 | ||
| 1822 | (easy-menu-define | 1830 | (easy-menu-define |
| 1823 | gnus-summary-thread-menu gnus-summary-mode-map "" | 1831 | gnus-summary-thread-menu gnus-summary-mode-map "" |
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index f4ff2ea154b..a5c660ea9fa 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; gnus-uu.el --- extract (uu)encoded files in Gnus | 1 | ;;; gnus-uu.el --- extract (uu)encoded files in Gnus |
| 2 | ;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 2000 | 2 | ;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 2000, |
| 3 | ;; Free Software Foundation, Inc. | 3 | ;; 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 6 | ;; Created: 2 Oct 1993 | 6 | ;; Created: 2 Oct 1993 |
| @@ -531,7 +531,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 531 | n nil)) | 531 | n nil)) |
| 532 | (gnus-setup-message 'forward | 532 | (gnus-setup-message 'forward |
| 533 | (setq gnus-uu-digest-from-subject nil) | 533 | (setq gnus-uu-digest-from-subject nil) |
| 534 | (setq gnus-uu-digest-buffer | 534 | (setq gnus-uu-digest-buffer |
| 535 | (gnus-get-buffer-create " *gnus-uu-forward*")) | 535 | (gnus-get-buffer-create " *gnus-uu-forward*")) |
| 536 | (gnus-uu-decode-save n file) | 536 | (gnus-uu-decode-save n file) |
| 537 | (switch-to-buffer gnus-uu-digest-buffer) | 537 | (switch-to-buffer gnus-uu-digest-buffer) |
| @@ -878,7 +878,7 @@ When called interactively, prompt for REGEXP." | |||
| 878 | ;; These two are necessary for XEmacs 19.12 fascism. | 878 | ;; These two are necessary for XEmacs 19.12 fascism. |
| 879 | (put-text-property (point-min) (point-max) 'invisible nil) | 879 | (put-text-property (point-min) (point-max) 'invisible nil) |
| 880 | (put-text-property (point-min) (point-max) 'intangible nil)) | 880 | (put-text-property (point-min) (point-max) 'intangible nil)) |
| 881 | (when (and message-forward-as-mime | 881 | (when (and message-forward-as-mime |
| 882 | message-forward-show-mml | 882 | message-forward-show-mml |
| 883 | gnus-uu-digest-buffer) | 883 | gnus-uu-digest-buffer) |
| 884 | (mm-enable-multibyte) | 884 | (mm-enable-multibyte) |
| @@ -921,7 +921,7 @@ When called interactively, prompt for REGEXP." | |||
| 921 | (insert sorthead) | 921 | (insert sorthead) |
| 922 | (goto-char (point-min)) | 922 | (goto-char (point-min)) |
| 923 | (when (re-search-forward "^Subject: \\(.*\\)$" nil t) | 923 | (when (re-search-forward "^Subject: \\(.*\\)$" nil t) |
| 924 | (setq subj (buffer-substring (match-beginning 1) | 924 | (setq subj (buffer-substring (match-beginning 1) |
| 925 | (match-end 1)))) | 925 | (match-end 1)))) |
| 926 | (goto-char (point-max)) | 926 | (goto-char (point-max)) |
| 927 | (insert body)) | 927 | (insert body)) |
| @@ -965,7 +965,7 @@ When called interactively, prompt for REGEXP." | |||
| 965 | (with-current-buffer gnus-uu-digest-buffer | 965 | (with-current-buffer gnus-uu-digest-buffer |
| 966 | (goto-char (point-max)) | 966 | (goto-char (point-max)) |
| 967 | (insert-buffer "*gnus-uu-body*")) | 967 | (insert-buffer "*gnus-uu-body*")) |
| 968 | (let ((coding-system-for-write mm-text-coding-system) | 968 | (let ((coding-system-for-write mm-text-coding-system) |
| 969 | (file-name-coding-system nnmail-pathname-coding-system)) | 969 | (file-name-coding-system nnmail-pathname-coding-system)) |
| 970 | (write-region | 970 | (write-region |
| 971 | (point-min) (point-max) gnus-uu-saved-article-name t))))) | 971 | (point-min) (point-max) gnus-uu-saved-article-name t))))) |
| @@ -1393,6 +1393,9 @@ When called interactively, prompt for REGEXP." | |||
| 1393 | (while article-series | 1393 | (while article-series |
| 1394 | (gnus-summary-tick-article (pop article-series) t))))) | 1394 | (gnus-summary-tick-article (pop article-series) t))))) |
| 1395 | 1395 | ||
| 1396 | ;; The original article buffer is hosed, shoot it down. | ||
| 1397 | (gnus-kill-buffer gnus-original-article-buffer) | ||
| 1398 | |||
| 1396 | result-files)) | 1399 | result-files)) |
| 1397 | 1400 | ||
| 1398 | (defun gnus-uu-grab-view (file) | 1401 | (defun gnus-uu-grab-view (file) |
| @@ -1570,7 +1573,7 @@ Gnus might fail to display all of it.") | |||
| 1570 | (unless | 1573 | (unless |
| 1571 | (unwind-protect | 1574 | (unwind-protect |
| 1572 | (with-current-buffer buffer | 1575 | (with-current-buffer buffer |
| 1573 | (insert (substitute-command-keys | 1576 | (insert (substitute-command-keys |
| 1574 | gnus-uu-unshar-warning)) | 1577 | gnus-uu-unshar-warning)) |
| 1575 | (goto-char (point-min)) | 1578 | (goto-char (point-min)) |
| 1576 | (display-buffer buffer) | 1579 | (display-buffer buffer) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7cfd964e650..bab176fe86e 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4160,7 +4160,7 @@ The form is: Fwd: Subject, where Subject is the original subject of | |||
| 4160 | the message." | 4160 | the message." |
| 4161 | (concat "Fwd: " subject)) | 4161 | (concat "Fwd: " subject)) |
| 4162 | 4162 | ||
| 4163 | (defun message-make-forward-subject () | 4163 | (defun message-make-forward-subject (&optional decoded) |
| 4164 | "Return a Subject header suitable for the message in the current buffer." | 4164 | "Return a Subject header suitable for the message in the current buffer." |
| 4165 | (save-excursion | 4165 | (save-excursion |
| 4166 | (save-restriction | 4166 | (save-restriction |
| @@ -4169,7 +4169,9 @@ the message." | |||
| 4169 | (subject (message-fetch-field "Subject"))) | 4169 | (subject (message-fetch-field "Subject"))) |
| 4170 | (setq subject | 4170 | (setq subject |
| 4171 | (if subject | 4171 | (if subject |
| 4172 | (mail-decode-encoded-word-string subject) | 4172 | (if decoded |
| 4173 | subject | ||
| 4174 | (mail-decode-encoded-word-string subject)) | ||
| 4173 | "")) | 4175 | "")) |
| 4174 | (if message-wash-forwarded-subjects | 4176 | (if message-wash-forwarded-subjects |
| 4175 | (setq subject (message-wash-subject subject))) | 4177 | (setq subject (message-wash-subject subject))) |
| @@ -4191,9 +4193,9 @@ the message." | |||
| 4191 | Optional NEWS will use news to forward instead of mail. | 4193 | Optional NEWS will use news to forward instead of mail. |
| 4192 | Optional DIGEST will use digest to forward." | 4194 | Optional DIGEST will use digest to forward." |
| 4193 | (interactive "P") | 4195 | (interactive "P") |
| 4194 | (let* ((cur (current-buffer)) | 4196 | (let ((cur (current-buffer)) |
| 4195 | (subject (message-make-forward-subject)) | 4197 | (subject (message-make-forward-subject digest)) |
| 4196 | art-beg) | 4198 | art-beg) |
| 4197 | (if news | 4199 | (if news |
| 4198 | (message-news nil subject) | 4200 | (message-news nil subject) |
| 4199 | (message-mail nil subject)) | 4201 | (message-mail nil subject)) |