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:
parent
d8b2a96214
commit
3ecba0495e
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user