]> code.delx.au - gnu-emacs/blobdiff - lisp/format.el
(ps-mule-begin-job): Redo this change "if
[gnu-emacs] / lisp / format.el
index 3bfe556364ed39191f4eccde0a890693407982ab..6fab2a3e725bcbe1b96a83da1cf83fc28ff8db4c 100644 (file)
@@ -149,7 +149,7 @@ otherwise, it should be a Lisp function.
 BUFFER should be the buffer that the output originally came from."
   (if (stringp method)
       (let ((error-buff (get-buffer-create "*Format Errors*"))
-           (coding-system-for-write 'no-conversion)
+           (coding-system-for-read 'no-conversion)
            format-alist)
        (with-current-buffer error-buff
          (widen)
@@ -170,7 +170,7 @@ If METHOD is a string, it is a shell command; otherwise, it should be
 a Lisp function.  Decoding is done for the given BUFFER."
   (if (stringp method)
       (let ((error-buff (get-buffer-create "*Format Errors*"))
-           (coding-system-for-read 'no-conversion) ; like jka-compr
+           (coding-system-for-write 'no-conversion)
            format-alist)
        (with-current-buffer error-buff
          (widen)
@@ -425,7 +425,7 @@ Optional args BEG and END specify a region of the buffer on which to operate."
       (if end (narrow-to-region (point-min) end))
       (while alist
        (let ((from (if reverse (cdr (car alist)) (car (car alist))))
-             (to   (if reverse (car (cdr alist)) (cdr (car alist)))))
+             (to   (if reverse (car (car alist)) (cdr (car alist)))))
          (goto-char beg)
          (while (search-forward from nil t)
            (goto-char (match-beginning 0))