diff options
| author | Lars Ingebrigtsen | 2011-02-04 09:51:56 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-02-04 09:51:56 +0000 |
| commit | 2b7feab0099bda2082985b7c0dfb5de13de994f5 (patch) | |
| tree | 687b97caece57d993bdb898502a00c43423aed4d | |
| parent | a5d733f5d76c6f69780a3ed23020773c270362e7 (diff) | |
| download | emacs-2b7feab0099bda2082985b7c0dfb5de13de994f5.tar.gz emacs-2b7feab0099bda2082985b7c0dfb5de13de994f5.zip | |
message.el (message-setup-1): Don't bind the constant -forbidden-properties.
(message-setup-1): Revert previous change, since it needs to bind the props to insert them.
(message-resend): Allow removing the read-only separator line.
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 21 |
2 files changed, 25 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index cb5de1c7f03..02ec82d06a0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-02-04 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * message.el (message-setup-1): Don't bind the constant | ||
| 4 | -forbidden-properties. | ||
| 5 | (message-setup-1): Revert previous change, since it needs to bind the | ||
| 6 | props to insert them. | ||
| 7 | (message-resend): Allow removing the read-only separator line. | ||
| 8 | |||
| 1 | 2011-02-03 Lars Ingebrigtsen <larsi@gnus.org> | 9 | 2011-02-03 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 10 | ||
| 3 | * nnimap.el (nnimap-request-accept-article): Give an error message if | 11 | * nnimap.el (nnimap-request-accept-article): Give an error message if |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index eaa2e6cd0db..5c24bc886bc 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -129,6 +129,17 @@ | |||
| 129 | :group 'message-buffers | 129 | :group 'message-buffers |
| 130 | :type '(choice function (const nil))) | 130 | :type '(choice function (const nil))) |
| 131 | 131 | ||
| 132 | (defcustom message-cite-style nil | ||
| 133 | "The overall style to be used when yanking cited text. | ||
| 134 | Values are either `traditional' (cited text first), | ||
| 135 | `top-post' (cited text at the bottom), or nil (don't override the | ||
| 136 | individual message variables)." | ||
| 137 | :version "24.1" | ||
| 138 | :group 'message-various | ||
| 139 | :type '(choice (const :tag "None" :value nil) | ||
| 140 | (const :tag "Traditional" :value traditional) | ||
| 141 | (const :tag "Top-post" :value top-post))) | ||
| 142 | |||
| 132 | (defcustom message-fcc-handler-function 'message-output | 143 | (defcustom message-fcc-handler-function 'message-output |
| 133 | "*A function called to save outgoing articles. | 144 | "*A function called to save outgoing articles. |
| 134 | This function will be called with the name of the file to store the | 145 | This function will be called with the name of the file to store the |
| @@ -2764,7 +2775,7 @@ message composition doesn't break too bad." | |||
| 2764 | :link '(custom-manual "(message)Various Message Variables") | 2775 | :link '(custom-manual "(message)Various Message Variables") |
| 2765 | :type 'boolean) | 2776 | :type 'boolean) |
| 2766 | 2777 | ||
| 2767 | (defconst message-forbidden-properties | 2778 | (defvar message-forbidden-properties |
| 2768 | ;; No reason this should be clutter up customize. We make it a | 2779 | ;; No reason this should be clutter up customize. We make it a |
| 2769 | ;; property list (rather than a list of property symbols), to be | 2780 | ;; property list (rather than a list of property symbols), to be |
| 2770 | ;; directly useful for `remove-text-properties'. | 2781 | ;; directly useful for `remove-text-properties'. |
| @@ -6402,7 +6413,7 @@ are not included." | |||
| 6402 | (or (bolp) (insert ?\n))) | 6413 | (or (bolp) (insert ?\n))) |
| 6403 | (let ((message-forbidden-properties nil)) | 6414 | (let ((message-forbidden-properties nil)) |
| 6404 | (insert (propertize (concat mail-header-separator "\n") | 6415 | (insert (propertize (concat mail-header-separator "\n") |
| 6405 | 'read-only t 'rear-nonsticky t 'intangible t))) | 6416 | 'read-only t 'rear-nonsticky t 'intangible t))) |
| 6406 | (forward-line -1) | 6417 | (forward-line -1) |
| 6407 | ;; If a crash happens while replying, the auto-save file would *not* have a | 6418 | ;; If a crash happens while replying, the auto-save file would *not* have a |
| 6408 | ;; `References:' header if `message-generate-headers-first' was nil. | 6419 | ;; `References:' header if `message-generate-headers-first' was nil. |
| @@ -7429,7 +7440,8 @@ is for the internal use." | |||
| 7429 | ;; We first set up a normal mail buffer. | 7440 | ;; We first set up a normal mail buffer. |
| 7430 | (unless (message-mail-user-agent) | 7441 | (unless (message-mail-user-agent) |
| 7431 | (set-buffer (get-buffer-create " *message resend*")) | 7442 | (set-buffer (get-buffer-create " *message resend*")) |
| 7432 | (erase-buffer)) | 7443 | (let ((inhibit-read-only t)) |
| 7444 | (erase-buffer))) | ||
| 7433 | (let ((message-this-is-mail t) | 7445 | (let ((message-this-is-mail t) |
| 7434 | message-generate-hashcash | 7446 | message-generate-hashcash |
| 7435 | message-setup-hook) | 7447 | message-setup-hook) |
| @@ -7446,7 +7458,8 @@ is for the internal use." | |||
| 7446 | (insert "Resent-")) | 7458 | (insert "Resent-")) |
| 7447 | (widen) | 7459 | (widen) |
| 7448 | (forward-line) | 7460 | (forward-line) |
| 7449 | (delete-region (point) (point-max)) | 7461 | (let ((inhibit-read-only t)) |
| 7462 | (delete-region (point) (point-max))) | ||
| 7450 | (setq beg (point)) | 7463 | (setq beg (point)) |
| 7451 | ;; Insert the message to be resent. | 7464 | ;; Insert the message to be resent. |
| 7452 | (insert-buffer-substring cur) | 7465 | (insert-buffer-substring cur) |