Function: hexl-maybe-dehexlify-buffer

hexl-maybe-dehexlify-buffer is a byte-compiled function defined in hexl.el.gz.

Signature

(hexl-maybe-dehexlify-buffer)

Documentation

Convert a hexl format buffer to binary.

Ask the user for confirmation.

Source Code

;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(defun hexl-maybe-dehexlify-buffer ()
  "Convert a hexl format buffer to binary.
Ask the user for confirmation."
  (if (y-or-n-p "Convert contents back to binary format? ")
      (let ((modified (buffer-modified-p))
	    (inhibit-read-only t)
            (point-offset (hexl-current-address)))
	(dehexlify-buffer)
	(remove-hook 'write-contents-functions #'hexl-save-buffer t)
	(restore-buffer-modified-p modified)
	(goto-char (filepos-to-bufferpos point-offset 'exact)))))