# HG changeset patch # User Richard M. Stallman # Date 757830956 0 # Node ID 0873b536e71ddce4404b449d70a607052cb13bb5 # Parent 4fe8a94b0aa6769552cfa3956f11a841cb8685d3 (dehexlify-buffer): If msdos, bind binary-process. (hexl-find-file): Load as binary. diff -r 4fe8a94b0aa6 -r 0873b536e71d lisp/hexl.el --- a/lisp/hexl.el Thu Jan 06 04:34:43 1994 +0000 +++ b/lisp/hexl.el Thu Jan 06 04:35:56 1994 +0000 @@ -219,7 +219,9 @@ "Edit file FILENAME in hexl-mode. Switch to a buffer visiting file FILENAME, creating one in none exists." (interactive "fFilename: ") - (find-file filename) + (if (eq system-type 'ms-dos) + (find-file-binary filename) + (find-file filename)) (if (not (eq major-mode 'hexl-mode)) (hexl-mode))) @@ -504,7 +506,8 @@ (defun dehexlify-buffer () "Convert a hexl format buffer to binary." (interactive) - (shell-command-on-region (point-min) (point-max) dehexlify-command t)) + (let ((binary-process t)) ; for Ms-Dos + (shell-command-on-region (point-min) (point-max) dehexlify-command t))) (defun hexl-char-after-point () "Return char for ASCII hex digits at point."