Mercurial > emacs
comparison lisp/gnus/gnus-msg.el @ 34192:57a15e35e75b
* gnus-msg.el (gnus-msg-mail): COMPOSEFUNC should return t if
succeed.
(gnus-setup-message): Remove a hack.
* gnus-win.el (gnus-configure-windows): Make sure
nntp-server-buffer is live.
(gnus-remove-some-windows): switch-to-buffer -> set-buffer.
* gnus-msg.el (gnus-summary-mail-forward): Fix typos in description.
* gnus-msg.el (gnus-group-posting-charset-alist): No longer allow
raw 8-bit in headers in dk.* newsgroups.
author | ShengHuo ZHU <zsh@cs.rochester.edu> |
---|---|
date | Mon, 04 Dec 2000 23:03:50 +0000 |
parents | e06db3b8e558 |
children | 60c4cf859b30 |
comparison
equal
deleted
inserted
replaced
34191:106595ce3db9 | 34192:57a15e35e75b |
---|---|
100 | 100 |
101 (defvar gnus-posting-styles nil | 101 (defvar gnus-posting-styles nil |
102 "*Alist of styles to use when posting.") | 102 "*Alist of styles to use when posting.") |
103 | 103 |
104 (defcustom gnus-group-posting-charset-alist | 104 (defcustom gnus-group-posting-charset-alist |
105 '(("^\\(no\\|fr\\|dk\\)\\.[^,]*\\(,[ \t\n]*\\(no\\|fr\\|dk\\)\\.[^,]*\\)*$" iso-8859-1 (iso-8859-1)) | 105 '(("^\\(no\\|fr\\)\\.[^,]*\\(,[ \t\n]*\\(no\\|fr\\)\\.[^,]*\\)*$" iso-8859-1 (iso-8859-1)) |
106 ("^\\(fido7\\|relcom\\)\\.[^,]*\\(,[ \t\n]*\\(fido7\\|relcom\\)\\.[^,]*\\)*$" koi8-r (koi8-r)) | 106 ("^\\(fido7\\|relcom\\)\\.[^,]*\\(,[ \t\n]*\\(fido7\\|relcom\\)\\.[^,]*\\)*$" koi8-r (koi8-r)) |
107 (message-this-is-mail nil nil) | 107 (message-this-is-mail nil nil) |
108 (message-this-is-news nil t)) | 108 (message-this-is-news nil t)) |
109 "Alist of regexps and permitted unencoded charsets for posting. | 109 "Alist of regexps and permitted unencoded charsets for posting. |
110 Each element of the alist has the form (TEST HEADER BODY-LIST), where | 110 Each element of the alist has the form (TEST HEADER BODY-LIST), where |
199 | 199 |
200 (gnus-define-keys (gnus-send-bounce-map "D" gnus-summary-send-map) | 200 (gnus-define-keys (gnus-send-bounce-map "D" gnus-summary-send-map) |
201 "b" gnus-summary-resend-bounced-mail | 201 "b" gnus-summary-resend-bounced-mail |
202 ;; "c" gnus-summary-send-draft | 202 ;; "c" gnus-summary-send-draft |
203 "r" gnus-summary-resend-message) | 203 "r" gnus-summary-resend-message) |
204 | |
205 ;;;###autoload | |
206 (define-mail-user-agent 'gnus-user-agent | |
207 'gnus-msg-mail 'message-send-and-exit | |
208 'message-kill-buffer 'message-send-hook) | |
209 | 204 |
210 ;;; Internal functions. | 205 ;;; Internal functions. |
211 | 206 |
212 (defvar gnus-article-reply nil) | 207 (defvar gnus-article-reply nil) |
213 (defmacro gnus-setup-message (config &rest forms) | 208 (defmacro gnus-setup-message (config &rest forms) |
235 (set (make-local-variable 'gnus-message-group-art) | 230 (set (make-local-variable 'gnus-message-group-art) |
236 (cons ,group ,article)) | 231 (cons ,group ,article)) |
237 (set (make-local-variable 'gnus-newsgroup-name) ,group) | 232 (set (make-local-variable 'gnus-newsgroup-name) ,group) |
238 (gnus-run-hooks 'gnus-message-setup-hook) | 233 (gnus-run-hooks 'gnus-message-setup-hook) |
239 (if (eq major-mode 'message-mode) | 234 (if (eq major-mode 'message-mode) |
240 ;; Make mml-buffer-list local. | 235 (let ((mbl1 mml-buffer-list)) |
241 ;; Restore global mml-buffer-list value as mbl. | 236 (setq mml-buffer-list mbl) ;; Global value |
242 ;; What a hack! -- Shenghuo | 237 (set (make-local-variable 'mml-buffer-list) mbl1);; Local value |
243 (let ((mml-buffer-list mml-buffer-list)) | |
244 (setq mml-buffer-list mbl) | |
245 (make-local-variable 'mml-buffer-list) | |
246 (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)) | 238 (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)) |
247 (mml-destroy-buffers) | 239 (mml-destroy-buffers) |
248 (setq mml-buffer-list mbl))) | 240 (setq mml-buffer-list mbl))) |
249 (gnus-add-buffer) | 241 (gnus-add-buffer) |
250 (gnus-configure-windows ,config t) | 242 (gnus-configure-windows ,config t) |
251 (set-buffer-modified-p nil)))) | 243 (set-buffer-modified-p nil)))) |
244 | |
245 ;;;###autoload | |
246 (defun gnus-msg-mail (&rest args) | |
247 "Start editing a mail message to be sent. | |
248 Like `message-mail', but with Gnus paraphernalia, particularly the | |
249 Gcc: header for archiving purposes." | |
250 (interactive) | |
251 (gnus-setup-message 'message | |
252 (apply 'message-mail args)) | |
253 ;; COMPOSEFUNC should return t if succeed. Undocumented ??? | |
254 t) | |
255 | |
256 ;;;###autoload | |
257 (define-mail-user-agent 'gnus-user-agent | |
258 'gnus-msg-mail 'message-send-and-exit | |
259 'message-kill-buffer 'message-send-hook) | |
252 | 260 |
253 (defun gnus-setup-posting-charset (group) | 261 (defun gnus-setup-posting-charset (group) |
254 (let ((alist gnus-group-posting-charset-alist) | 262 (let ((alist gnus-group-posting-charset-alist) |
255 (group (or group "")) | 263 (group (or group "")) |
256 elem) | 264 elem) |
423 (save-excursion | 431 (save-excursion |
424 (set-buffer ,gnus-summary-buffer) | 432 (set-buffer ,gnus-summary-buffer) |
425 (gnus-cache-possibly-remove-article ,article nil nil nil t) | 433 (gnus-cache-possibly-remove-article ,article nil nil nil t) |
426 (gnus-summary-mark-as-read ,article gnus-canceled-mark))))) | 434 (gnus-summary-mark-as-read ,article gnus-canceled-mark))))) |
427 message-send-actions)))) | 435 message-send-actions)))) |
428 | 436 |
429 ;;;###autoload | |
430 (defun gnus-msg-mail (&rest args) | |
431 "Start editing a mail message to be sent. | |
432 Like `message-mail', but with Gnus paraphernalia, particularly the | |
433 the Gcc: header for archiving purposes." | |
434 (interactive) | |
435 (gnus-setup-message 'message | |
436 (apply 'message-mail args))) | |
437 | 437 |
438 | 438 |
439 (defun gnus-copy-article-buffer (&optional article-buffer) | 439 (defun gnus-copy-article-buffer (&optional article-buffer) |
440 ;; make a copy of the article buffer with all text properties removed | 440 ;; make a copy of the article buffer with all text properties removed |
441 ;; this copy is in the buffer gnus-article-copy. | 441 ;; this copy is in the buffer gnus-article-copy. |
699 | 699 |
700 (defun gnus-summary-mail-forward (&optional arg post) | 700 (defun gnus-summary-mail-forward (&optional arg post) |
701 "Forward the current message to another user. | 701 "Forward the current message to another user. |
702 If ARG is nil, see `message-forward-as-mime' and `message-forward-show-mml'; | 702 If ARG is nil, see `message-forward-as-mime' and `message-forward-show-mml'; |
703 if ARG is 1, decode the message and forward directly inline; | 703 if ARG is 1, decode the message and forward directly inline; |
704 if ARG is 2, foward message as an rfc822 MIME section; | 704 if ARG is 2, forward message as an rfc822 MIME section; |
705 if ARG is 3, decode message and forward as an rfc822 MIME section; | 705 if ARG is 3, decode message and forward as an rfc822 MIME section; |
706 if ARG is 4, foward message directly inline; | 706 if ARG is 4, forward message directly inline; |
707 otherwise, use flipped `message-forward-as-mime'. | 707 otherwise, use flipped `message-forward-as-mime'. |
708 If POST, post instead of mail." | 708 If POST, post instead of mail." |
709 (interactive "P") | 709 (interactive "P") |
710 (let ((message-forward-as-mime message-forward-as-mime) | 710 (let ((message-forward-as-mime message-forward-as-mime) |
711 (message-forward-show-mml message-forward-show-mml)) | 711 (message-forward-show-mml message-forward-show-mml)) |