diff options
| author | ShengHuo ZHU | 2000-12-04 23:03:50 +0000 |
|---|---|---|
| committer | ShengHuo ZHU | 2000-12-04 23:03:50 +0000 |
| commit | 25fc4fd5b853e3dfca6a3780347f5fdfcdab888c (patch) | |
| tree | ac9b066db60a13b5fb8df9f0a8b50249e9e1cf60 | |
| parent | 0c68ce6f22f6d47a77e97ffbf546c4c91bacf99d (diff) | |
| download | emacs-25fc4fd5b853e3dfca6a3780347f5fdfcdab888c.tar.gz emacs-25fc4fd5b853e3dfca6a3780347f5fdfcdab888c.zip | |
* 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.
| -rw-r--r-- | lisp/gnus/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 46 | ||||
| -rw-r--r-- | lisp/gnus/gnus-win.el | 6 |
3 files changed, 46 insertions, 24 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8923a3be902..16086b54ca4 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2000-12-04 ShengHuo ZHU <zsh@cs.rochester.edu> | ||
| 2 | |||
| 3 | * gnus-msg.el (gnus-msg-mail): COMPOSEFUNC should return t if | ||
| 4 | succeed. | ||
| 5 | (gnus-setup-message): Remove a hack. | ||
| 6 | * gnus-win.el (gnus-configure-windows): Make sure | ||
| 7 | nntp-server-buffer is live. | ||
| 8 | (gnus-remove-some-windows): switch-to-buffer -> set-buffer. | ||
| 9 | |||
| 10 | 2000-12-04 Andreas Jaeger <aj@suse.de> | ||
| 11 | |||
| 12 | * gnus-msg.el (gnus-summary-mail-forward): Fix typos in description. | ||
| 13 | |||
| 14 | 2000-11-17 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 15 | |||
| 16 | * gnus-msg.el (gnus-group-posting-charset-alist): No longer allow | ||
| 17 | raw 8-bit in headers in dk.* newsgroups. | ||
| 18 | |||
| 1 | 2000-11-30 Dave Love <fx@gnu.org> | 19 | 2000-11-30 Dave Love <fx@gnu.org> |
| 2 | 20 | ||
| 3 | * message.el (message-auto-save-directory): Use | 21 | * message.el (message-auto-save-directory): Use |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index a8a734d8c80..55c9ecc57e3 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -102,7 +102,7 @@ the second with the current group name.") | |||
| 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)) |
| @@ -202,11 +202,6 @@ Thank you for your help in stamping out bugs. | |||
| 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 | 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 | |||
| 210 | ;;; Internal functions. | 205 | ;;; Internal functions. |
| 211 | 206 | ||
| 212 | (defvar gnus-article-reply nil) | 207 | (defvar gnus-article-reply nil) |
| @@ -237,12 +232,9 @@ Thank you for your help in stamping out bugs. | |||
| 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))) |
| @@ -250,6 +242,22 @@ Thank you for your help in stamping out bugs. | |||
| 250 | (gnus-configure-windows ,config t) | 242 | (gnus-configure-windows ,config t) |
| 251 | (set-buffer-modified-p nil)))) | 243 | (set-buffer-modified-p nil)))) |
| 252 | 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) | ||
| 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 "")) |
| @@ -425,15 +433,7 @@ header line with the old Message-ID." | |||
| 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) |
| @@ -701,9 +701,9 @@ The original article will be yanked." | |||
| 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") |
diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el index 512cdd4c193..3abf46f5f36 100644 --- a/lisp/gnus/gnus-win.el +++ b/lisp/gnus/gnus-win.el | |||
| @@ -432,6 +432,10 @@ See the Gnus manual for an explanation of the syntax used.") | |||
| 432 | ;; put point in the assigned buffer, and do not touch the | 432 | ;; put point in the assigned buffer, and do not touch the |
| 433 | ;; winconf. | 433 | ;; winconf. |
| 434 | (select-window all-visible) | 434 | (select-window all-visible) |
| 435 | |||
| 436 | ;; Make sure "the other" buffer, nntp-server-buffer, is live. | ||
| 437 | (unless (gnus-buffer-live-p nntp-server-buffer) | ||
| 438 | (nnheader-init-server-buffer)) | ||
| 435 | 439 | ||
| 436 | ;; Either remove all windows or just remove all Gnus windows. | 440 | ;; Either remove all windows or just remove all Gnus windows. |
| 437 | (let ((frame (selected-frame))) | 441 | (let ((frame (selected-frame))) |
| @@ -536,7 +540,7 @@ should have point." | |||
| 536 | lowest-buf buf)))) | 540 | lowest-buf buf)))) |
| 537 | (when lowest-buf | 541 | (when lowest-buf |
| 538 | (pop-to-buffer lowest-buf) | 542 | (pop-to-buffer lowest-buf) |
| 539 | (switch-to-buffer nntp-server-buffer)) | 543 | (set-buffer nntp-server-buffer)) |
| 540 | (mapcar (lambda (b) (delete-windows-on b t)) bufs)))) | 544 | (mapcar (lambda (b) (delete-windows-on b t)) bufs)))) |
| 541 | 545 | ||
| 542 | (provide 'gnus-win) | 546 | (provide 'gnus-win) |