Mercurial > emacs
changeset 5458:0873b536e71d
(dehexlify-buffer): If msdos, bind binary-process.
(hexl-find-file): Load as binary.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 06 Jan 1994 04:35:56 +0000 |
parents | 4fe8a94b0aa6 |
children | ff128e39003b |
files | lisp/hexl.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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."