]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix arg usage of format-decode-run-method (Bug#7488).
authorLawrence Mitchell <lawrence.mitchell@ed.ac.uk>
Mon, 6 Dec 2010 19:35:54 +0000 (14:35 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 6 Dec 2010 19:35:54 +0000 (14:35 -0500)
* 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).

lisp/ChangeLog
lisp/format.el

index 125ce3351baee761af8a2d5c659e2f5d6ba9ce2c..88fcbc850be0985d883f63f6d7b20435e38efed1 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-06  Lawrence Mitchell  <lawrence.mitchell@ed.ac.uk>
+
+       * 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  <jan.h.d@swipnet.se>
 
        * frame.el (blink-cursor-mode): Make default t for ns.
index d4262e2d0e694dd2d9cf7f6adfb0dc6e36ee83db..8f2ef2c39a5f998a12fb4fb3b7386a7ab90735df 100644 (file)
@@ -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