diff options
| author | Gerd Moellmann | 2000-08-28 15:01:58 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-28 15:01:58 +0000 |
| commit | db2144080c0b08b93ffaa2579fe7b66863688eff (patch) | |
| tree | b0c615b60ac65f1839439ef30fd0353483275752 | |
| parent | 1c70a086f74b5a62c25a7851f78c83696554714b (diff) | |
| download | emacs-db2144080c0b08b93ffaa2579fe7b66863688eff.tar.gz emacs-db2144080c0b08b93ffaa2579fe7b66863688eff.zip | |
(uce-reply-to-uce): Remove hard-coded "*Article*" from
Gnus support code, and use special article copy buffer
`(gnus-original-article-buffer)' instead. This allows to get rid
of article-hide-headers usage (which breaks in the latest Gnus
version). Thanks to Detlev Zundel.
| -rw-r--r-- | lisp/mail/uce.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/mail/uce.el b/lisp/mail/uce.el index aa0dfdfee39..6b039594318 100644 --- a/lisp/mail/uce.el +++ b/lisp/mail/uce.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; uce.el --- facilitate reply to unsolicited commercial email | 1 | ;;; uce.el --- facilitate reply to unsolicited commercial email |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996, 1998, 2000 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: stanislav shalunov <shalunov@mccme.ru> | 5 | ;; Author: stanislav shalunov <shalunov@mccme.ru> |
| 6 | ;; Created: 10 Dec 1996 | 6 | ;; Created: 10 Dec 1996 |
| @@ -79,9 +79,14 @@ | |||
| 79 | ;; Dec 3, 1997 -- changes from Gareth Jones <gdj1@gdjones.demon.co.uk> | 79 | ;; Dec 3, 1997 -- changes from Gareth Jones <gdj1@gdjones.demon.co.uk> |
| 80 | ;; handling Received headers following some line like `From:'. | 80 | ;; handling Received headers following some line like `From:'. |
| 81 | 81 | ||
| 82 | ;;; Setup: | 82 | ;; Aug 16, 2000 -- changes from Detlev Zundel |
| 83 | ;; <detlev.zundel@stud.uni-karlsruhe.de> to make uce.el work with the | ||
| 84 | ;; latest Gnus. Lars told him it should work for all versions of Gnus | ||
| 85 | ;; younger than three years. | ||
| 83 | 86 | ||
| 84 | ;; put in your ~./emacs the following line: | 87 | ;; Setup: |
| 88 | |||
| 89 | ;; Add the following line to your ~/.emacs: | ||
| 85 | 90 | ||
| 86 | ;; (autoload 'uce-reply-to-uce "uce" "Reply to UCEs" t nil) | 91 | ;; (autoload 'uce-reply-to-uce "uce" "Reply to UCEs" t nil) |
| 87 | 92 | ||
| @@ -214,7 +219,7 @@ buffer with default To: to the sender, his postmaster, his abuse@ | |||
| 214 | address, and postmaster of the mail relay used." | 219 | address, and postmaster of the mail relay used." |
| 215 | (interactive) | 220 | (interactive) |
| 216 | (let ((message-buffer | 221 | (let ((message-buffer |
| 217 | (cond ((eq uce-mail-reader 'gnus) "*Article*") | 222 | (cond ((eq uce-mail-reader 'gnus) gnus-original-article-buffer) |
| 218 | ((eq uce-mail-reader 'rmail) "RMAIL") | 223 | ((eq uce-mail-reader 'rmail) "RMAIL") |
| 219 | (t (error | 224 | (t (error |
| 220 | "Variable uce-mail-reader set to unrecognized value"))))) | 225 | "Variable uce-mail-reader set to unrecognized value"))))) |
| @@ -241,9 +246,7 @@ address, and postmaster of the mail relay used." | |||
| 241 | (setq mail-send-actions nil) | 246 | (setq mail-send-actions nil) |
| 242 | (setq mail-reply-buffer nil) | 247 | (setq mail-reply-buffer nil) |
| 243 | (cond ((eq uce-mail-reader 'gnus) | 248 | (cond ((eq uce-mail-reader 'gnus) |
| 244 | (article-hide-headers -1) | 249 | (copy-region-as-kill (point-min) (point-max))) |
| 245 | (copy-region-as-kill (point-min) (point-max)) | ||
| 246 | (article-hide-headers)) | ||
| 247 | ((eq uce-mail-reader 'rmail) | 250 | ((eq uce-mail-reader 'rmail) |
| 248 | (save-excursion | 251 | (save-excursion |
| 249 | (save-restriction | 252 | (save-restriction |