Mercurial > emacs
comparison lisp/gnus/gnus-uu.el @ 35957:a35d9c07d074
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.
author | ShengHuo ZHU <zsh@cs.rochester.edu> |
---|---|
date | Wed, 07 Feb 2001 22:08:26 +0000 |
parents | d67ce1c9c62b |
children | e11fd97820c0 |
comparison
equal
deleted
inserted
replaced
35956:e4f3480df58c | 35957:a35d9c07d074 |
---|---|
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 |
7 ;; Keyword: news | 7 ;; Keyword: news |
8 | 8 |
529 (if (and n (not (numberp n))) | 529 (if (and n (not (numberp n))) |
530 (setq message-forward-as-mime (not message-forward-as-mime) | 530 (setq message-forward-as-mime (not message-forward-as-mime) |
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) |
538 (let ((fs gnus-uu-digest-from-subject)) | 538 (let ((fs gnus-uu-digest-from-subject)) |
539 (when fs | 539 (when fs |
876 (let (buffer-read-only) | 876 (let (buffer-read-only) |
877 (gnus-set-text-properties (point-min) (point-max) nil) | 877 (gnus-set-text-properties (point-min) (point-max) nil) |
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) |
885 (mime-to-mml)) | 885 (mime-to-mml)) |
886 (goto-char (point-min)) | 886 (goto-char (point-min)) |
919 (let ((buf (mml-generate-new-buffer " *mml*"))) | 919 (let ((buf (mml-generate-new-buffer " *mml*"))) |
920 (with-current-buffer buf | 920 (with-current-buffer buf |
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)) |
928 (insert "\n<#part type=message/rfc822" | 928 (insert "\n<#part type=message/rfc822" |
929 " buffer=\"" (buffer-name buf) "\">\n"))) | 929 " buffer=\"" (buffer-name buf) "\">\n"))) |
963 (insert (concat (make-string (length end-string) ?*) "\n")) | 963 (insert (concat (make-string (length end-string) ?*) "\n")) |
964 (if gnus-uu-digest-buffer | 964 (if gnus-uu-digest-buffer |
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))))) |
972 (gnus-kill-buffer "*gnus-uu-pre*") | 972 (gnus-kill-buffer "*gnus-uu-pre*") |
973 (gnus-kill-buffer "*gnus-uu-body*") | 973 (gnus-kill-buffer "*gnus-uu-body*") |
1391 ;; Make unsuccessfully decoded articles unread. | 1391 ;; Make unsuccessfully decoded articles unread. |
1392 (when gnus-uu-unmark-articles-not-decoded | 1392 (when gnus-uu-unmark-articles-not-decoded |
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) |
1399 "View FILE using the gnus-uu methods." | 1402 "View FILE using the gnus-uu methods." |
1400 (let ((action (gnus-uu-get-action file))) | 1403 (let ((action (gnus-uu-get-action file))) |
1568 (let ((buffer (get-buffer-create (generate-new-buffer-name | 1571 (let ((buffer (get-buffer-create (generate-new-buffer-name |
1569 "*Warning*")))) | 1572 "*Warning*")))) |
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) |
1577 (yes-or-no-p "This is a shell archive, unshar it? ")) | 1580 (yes-or-no-p "This is a shell archive, unshar it? ")) |
1578 (kill-buffer buffer)) | 1581 (kill-buffer buffer)) |