diff options
| author | Miles Bader | 2008-07-26 09:13:11 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-07-26 09:13:11 +0000 |
| commit | d62672f36a4aaf33ded7ced6e50c44b6a43e4942 (patch) | |
| tree | 6c41c50f3cdfa167073ffff80771f3f2034add2e /lisp/gnus | |
| parent | 51dc79f87e7587f48acdd8d16ec41f2c6373edfb (diff) | |
| download | emacs-d62672f36a4aaf33ded7ced6e50c44b6a43e4942.tar.gz emacs-d62672f36a4aaf33ded7ced6e50c44b6a43e4942.zip | |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1355
Diffstat (limited to 'lisp/gnus')
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 33 |
2 files changed, 33 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2db00ad59c2..4592f39cfc0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-07-24 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-summary-save-in-pipe): Add optional argument `raw'. | ||
| 4 | |||
| 5 | 2008-07-22 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 6 | |||
| 7 | * gnus-art.el (gnus-summary-save-in-pipe): Consider | ||
| 8 | gnus-save-all-headers. | ||
| 9 | |||
| 1 | 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu> | 10 | 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 11 | ||
| 3 | * gnus-util.el (ns-focus-frame): Remove declaration. | 12 | * gnus-util.el (ns-focus-frame): Remove declaration. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 89dee7f0f56..16e65a63e27 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -3942,8 +3942,19 @@ The directory to save in defaults to `gnus-article-save-directory'." | |||
| 3942 | 3942 | ||
| 3943 | (put 'gnus-summary-save-in-pipe :decode t) | 3943 | (put 'gnus-summary-save-in-pipe :decode t) |
| 3944 | (put 'gnus-summary-save-in-pipe :headers 'gnus-saved-headers) | 3944 | (put 'gnus-summary-save-in-pipe :headers 'gnus-saved-headers) |
| 3945 | (defun gnus-summary-save-in-pipe (&optional command) | 3945 | (defun gnus-summary-save-in-pipe (&optional command raw) |
| 3946 | "Pipe this article to subprocess." | 3946 | "Pipe this article to subprocess COMMAND. |
| 3947 | Valid values for COMMAND include: | ||
| 3948 | a string | ||
| 3949 | The executable command name and possibly arguments. | ||
| 3950 | nil | ||
| 3951 | You will be prompted for the command in the minibuffer. | ||
| 3952 | the symbol `default' | ||
| 3953 | It will be replaced with the command which the variable | ||
| 3954 | `gnus-summary-pipe-output-default-command' holds or the command | ||
| 3955 | last used for saving. | ||
| 3956 | Non-nil value for RAW overrides `:decode' and `:headers' properties | ||
| 3957 | and the raw article including all headers will be piped." | ||
| 3947 | (let ((save-buffer gnus-save-article-buffer) | 3958 | (let ((save-buffer gnus-save-article-buffer) |
| 3948 | (default (or gnus-summary-pipe-output-default-command | 3959 | (default (or gnus-summary-pipe-output-default-command |
| 3949 | gnus-last-shell-command))) | 3960 | gnus-last-shell-command))) |
| @@ -3953,7 +3964,8 @@ The directory to save in defaults to `gnus-article-save-directory'." | |||
| 3953 | ;; means this function is called independently. | 3964 | ;; means this function is called independently. |
| 3954 | (unless (gnus-buffer-live-p save-buffer) | 3965 | (unless (gnus-buffer-live-p save-buffer) |
| 3955 | (let ((article (gnus-summary-article-number)) | 3966 | (let ((article (gnus-summary-article-number)) |
| 3956 | (decode (get 'gnus-summary-save-in-pipe :decode))) | 3967 | (decode (unless raw |
| 3968 | (get 'gnus-summary-save-in-pipe :decode)))) | ||
| 3957 | (if article | 3969 | (if article |
| 3958 | (if (vectorp (gnus-summary-article-header article)) | 3970 | (if (vectorp (gnus-summary-article-header article)) |
| 3959 | (save-window-excursion | 3971 | (save-window-excursion |
| @@ -3973,12 +3985,15 @@ The directory to save in defaults to `gnus-article-save-directory'." | |||
| 3973 | (setq save-buffer | 3985 | (setq save-buffer |
| 3974 | (nnheader-set-temp-buffer " *Gnus Save*")))) | 3986 | (nnheader-set-temp-buffer " *Gnus Save*")))) |
| 3975 | ;; Remove unwanted headers. | 3987 | ;; Remove unwanted headers. |
| 3976 | (let ((gnus-visible-headers | 3988 | (when (and (not raw) |
| 3977 | (or (symbol-value (get gnus-default-article-saver | 3989 | (or (get 'gnus-summary-save-in-pipe :headers) |
| 3978 | :headers)) | 3990 | (not gnus-save-all-headers))) |
| 3979 | gnus-saved-headers gnus-visible-headers)) | 3991 | (let ((gnus-visible-headers |
| 3980 | (gnus-summary-buffer nil)) | 3992 | (or (symbol-value (get 'gnus-summary-save-in-pipe |
| 3981 | (article-hide-headers 1 t))) | 3993 | :headers)) |
| 3994 | gnus-saved-headers gnus-visible-headers)) | ||
| 3995 | (gnus-summary-buffer nil)) | ||
| 3996 | (article-hide-headers 1 t)))) | ||
| 3982 | (error "%d is not a real article" article)) | 3997 | (error "%d is not a real article" article)) |
| 3983 | (error "No article to pipe")))) | 3998 | (error "No article to pipe")))) |
| 3984 | (unless (stringp command) | 3999 | (unless (stringp command) |