# HG changeset patch # User Richard M. Stallman # Date 768347756 0 # Node ID abb02a91f4cbb29bdb2f95fe3bf72dc5c82df7a9 # Parent e0ffa47f2ed4e676b8147a45463ae05c8e69f6ad (dehexlify-buffer): Reflect that binary-process was renamed to binary-process-output. (dehexlify-buffer): Bind also binary-process-input (for ms-dos). (hexlify-buffer): Bind both binary-process-input and binary-process-input (for ms-dos). (hexl-save-buffer): Force binary save (for ms-dos). diff -r e0ffa47f2ed4 -r abb02a91f4cb lisp/hexl.el --- a/lisp/hexl.el Sat May 07 21:53:28 1994 +0000 +++ b/lisp/hexl.el Sat May 07 21:55:56 1994 +0000 @@ -202,7 +202,8 @@ (set-buffer name) (dehexlify-buffer) ;; Prevent infinite recursion. - (let ((hexl-in-save-buffer t)) + (let ((hexl-in-save-buffer t) + (buffer-file-type t)) ; for ms-dos (save-buffer)) (setq modified (buffer-modified-p)) (delete-region (point-min) (point-max)) @@ -499,12 +500,15 @@ (defun hexlify-buffer () "Convert a binary buffer to hexl format" (interactive) - (shell-command-on-region (point-min) (point-max) hexlify-command t)) + (let ((binary-process-output nil) ; for Ms-Dos + (binary-process-input t)) + (shell-command-on-region (point-min) (point-max) hexlify-command t))) (defun dehexlify-buffer () "Convert a hexl format buffer to binary." (interactive) - (let ((binary-process t)) ; for Ms-Dos + (let ((binary-process-output t) ; for Ms-Dos + (binary-process-input nil)) (shell-command-on-region (point-min) (point-max) dehexlify-command t))) (defun hexl-char-after-point ()