From: Lawrence Mitchell Date: Mon, 6 Dec 2010 19:35:54 +0000 (-0500) Subject: Fix arg usage of format-decode-run-method (Bug#7488). X-Git-Tag: emacs-pretest-23.2.91~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ecba0495e877769d3b29f67f0648af39352edb8;p=emacs.git Fix arg usage of format-decode-run-method (Bug#7488). * lisp/format.el (format-decode-run-method): Pass args FROM and TO, not point-min and point-max, to shell-command-on-region (Bug#7488). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 125ce3351ba..88fcbc850be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-06 Lawrence Mitchell + + * format.el (format-decode-run-method): Pass args FROM and TO, not + point-min and point-max, to shell-command-on-region (Bug#7488). + 2010-12-06 Jan Djärv * frame.el (blink-cursor-mode): Make default t for ns. diff --git a/lisp/format.el b/lisp/format.el index d4262e2d0e6..8f2ef2c39a5 100644 --- a/lisp/format.el +++ b/lisp/format.el @@ -180,8 +180,7 @@ it should be a Lisp function. Decoding is done for the given BUFFER." ;; We should perhaps go via a temporary buffer and copy it ;; back, in case of errors. (if (and (zerop (save-window-excursion - (shell-command-on-region (point-min) (point-max) - method t t + (shell-command-on-region from to method t t error-buff))) ;; gzip gives zero exit status with bad args, for instance. (zerop (with-current-buffer error-buff