mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 19:42:53 -08:00
Avoid modifying temporary buffer with package-review diff
* lisp/package/package-install.el (package-review): Narrow the buffer to the region without the sentinel message. Below, 'insert-buffer-substring' will not copy over the last two lines.
This commit is contained in:
parent
c8c191d1a3
commit
a5618ce5d0
1 changed files with 1 additions and 1 deletions
|
|
@ -1142,7 +1142,7 @@ attached."
|
|||
;; delete sentinel message
|
||||
(goto-char (point-max))
|
||||
(forward-line -2)
|
||||
(delete-region (point) (point-max))
|
||||
(narrow-to-region (point-min) (point))
|
||||
;; prepare mail buffer
|
||||
(let ((tmp-buf (current-buffer)))
|
||||
(compose-mail (with-demoted-errors "Failed to find maintainers: %S"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue