1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

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).
This commit is contained in:
Lawrence Mitchell 2010-12-06 14:35:54 -05:00 committed by Chong Yidong
parent d8b2a96214
commit 3ecba0495e
2 changed files with 6 additions and 2 deletions

View 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.

View 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