report-emacs-bug: cope with read-only signature.
This commit is contained in:
parent
82ac93bdaa
commit
4443f2045b
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2012-04-04 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* mail/emacsbug.el (report-emacs-bug): Bind inhibit-read-only.
|
||||
|
||||
2012-04-03 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* mail/sendmail.el (mail-mode-map): Bind C-c C-i to
|
||||
|
|
|
|||
|
|
@ -182,7 +182,9 @@ Prompts for bug subject. Leaves you in a mail buffer."
|
|||
(set (make-local-variable 'message-strip-special-text-properties) nil))
|
||||
(rfc822-goto-eoh)
|
||||
(forward-line 1)
|
||||
(let ((signature (buffer-substring (point) (point-max))))
|
||||
;; Move the mail signature to the proper place.
|
||||
(let ((signature (buffer-substring (point) (point-max)))
|
||||
(inhibit-read-only t))
|
||||
(delete-region (point) (point-max))
|
||||
(insert signature)
|
||||
(backward-char (length signature)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue