1
Fork 0
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:
Philip Kaludercic 2025-12-27 21:18:26 +01:00
parent c8c191d1a3
commit a5618ce5d0
No known key found for this signature in database

View file

@ -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"