changeset 111913:5510dd208e55

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).
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 06 Dec 2010 14:35:54 -0500
parents d566763f152d
children f773f82f2c63
files lisp/ChangeLog lisp/format.el
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Dec 06 01:54:52 2010 -0500
+++ b/lisp/ChangeLog	Mon Dec 06 14:35:54 2010 -0500
@@ -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.
--- a/lisp/format.el	Mon Dec 06 01:54:52 2010 -0500
+++ b/lisp/format.el	Mon Dec 06 14:35:54 2010 -0500
@@ -180,8 +180,7 @@
 	;; 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