From: Daiki Ueno Date: Wed, 3 Aug 2016 12:10:13 +0000 (+0200) Subject: po-mode: Fix po-send-mail behaviour on Emacs 25 X-Git-Tag: v0.20~508 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0ecec28cdc4a7a69e499077ca62a0fee4180729;p=thirdparty%2Fgettext.git po-mode: Fix po-send-mail behaviour on Emacs 25 * gettext-tools/misc/po-mode.el (po-send-mail): Don't rely on region markers. Reported by Göran Uddeborg in: http://lists.gnu.org/archive/html/bug-gettext/2016-07/msg00027.html --- diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index 9189cb3b8..b0eed2125 100644 --- a/gettext-tools/misc/po-mode.el +++ b/gettext-tools/misc/po-mode.el @@ -3518,10 +3518,12 @@ Write to your team? ('n' if writing to the Translation Project robot) "))) (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) (save-excursion - (insert-buffer-substring buffer) - (shell-command-on-region - (region-beginning) (region-end) - (concat po-gzip-uuencode-command " " name ".gz") t t)))))) + (save-restriction + (narrow-to-region (point) (point)) + (insert-buffer-substring buffer) + (shell-command-on-region + (point-min) (point-max) + (concat po-gzip-uuencode-command " " name ".gz") t t))))))) (message "")) (defun po-confirm-and-quit ()