Mercurial > emacs
comparison lisp/gnus/gnus-eform.el @ 85712:a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-911
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 28 Oct 2007 09:18:39 +0000 |
parents | 24202b793a08 |
children | 107ccd98fa12 880960b70474 |
comparison
equal
deleted
inserted
replaced
85711:b6f5dc84b2e1 | 85712:a3c27999decb |
---|---|
84 (use-local-map gnus-edit-form-mode-map) | 84 (use-local-map gnus-edit-form-mode-map) |
85 (make-local-variable 'gnus-edit-form-done-function) | 85 (make-local-variable 'gnus-edit-form-done-function) |
86 (make-local-variable 'gnus-prev-winconf) | 86 (make-local-variable 'gnus-prev-winconf) |
87 (gnus-run-mode-hooks 'gnus-edit-form-mode-hook)) | 87 (gnus-run-mode-hooks 'gnus-edit-form-mode-hook)) |
88 | 88 |
89 (defun gnus-edit-form (form documentation exit-func) | 89 (defun gnus-edit-form (form documentation exit-func &optional layout) |
90 "Edit FORM in a new buffer. | 90 "Edit FORM in a new buffer. |
91 Call EXIT-FUNC on exit. Display DOCUMENTATION in the beginning | 91 Call EXIT-FUNC on exit. Display DOCUMENTATION in the beginning |
92 of the buffer." | 92 of the buffer. |
93 The optional LAYOUT overrides the `edit-form' window layout." | |
93 (let ((winconf (current-window-configuration))) | 94 (let ((winconf (current-window-configuration))) |
94 (set-buffer (gnus-get-buffer-create gnus-edit-form-buffer)) | 95 (set-buffer (gnus-get-buffer-create gnus-edit-form-buffer)) |
95 (gnus-configure-windows 'edit-form) | 96 (gnus-configure-windows (or layout 'edit-form)) |
96 (gnus-edit-form-mode) | 97 (gnus-edit-form-mode) |
97 (setq gnus-prev-winconf winconf) | 98 (setq gnus-prev-winconf winconf) |
98 (setq gnus-edit-form-done-function exit-func) | 99 (setq gnus-edit-form-done-function exit-func) |
99 (erase-buffer) | 100 (erase-buffer) |
100 (insert documentation) | 101 (insert documentation) |