diff options
author | Lawrence Mitchell <lawrence.mitchell@ed.ac.uk> | 2010-12-06 14:35:54 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-12-06 14:35:54 -0500 |
commit | 3ecba0495e877769d3b29f67f0648af39352edb8 (patch) | |
tree | 1b0133c6dd6df6cf46fc3990ab03c709b665c26b /lisp/format.el | |
parent | d8b2a96214c9b53ab914901fdde71f5b0a931678 (diff) | |
download | emacs-3ecba0495e877769d3b29f67f0648af39352edb8.tar.gz |
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).
Diffstat (limited to 'lisp/format.el')
-rw-r--r-- | lisp/format.el | 3 |
1 files changed, 1 insertions, 2 deletions
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 |