diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-05-07 21:55:56 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-05-07 21:55:56 +0000 |
commit | 499d172f51d7df5784a5c4353edc2d8f93eb2ed6 (patch) | |
tree | 6b6b6e07020d065150371412347395fd4e9a3fbd /lisp/hexl.el | |
parent | 8ee11a5c9456910ad0380119cb5f7ca4ddb5a0d0 (diff) | |
download | emacs-499d172f51d7df5784a5c4353edc2d8f93eb2ed6.tar.gz |
(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).
Diffstat (limited to 'lisp/hexl.el')
-rw-r--r-- | lisp/hexl.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el index d7e7cd44baa..130a2573a14 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el @@ -202,7 +202,8 @@ You can use \\[hexl-find-file] to visit a file in hexl-mode. (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 @@ You may also type up to 3 octal digits, to insert a character with that code" (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 () |