Function: hexl-follow-ascii

hexl-follow-ascii is an interactive and byte-compiled function defined in hexl.el.gz.

Signature

(hexl-follow-ascii &optional ARG)

Documentation

Toggle following ASCII in Hexl buffers.

Like hexl-follow-ascii-mode(var)/hexl-follow-ascii-mode(fun) but remembers the choice globally.

This is a global minor mode. If called interactively, toggle the Hexl-Follow-Ascii mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=hexl-follow-ascii)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(define-minor-mode hexl-follow-ascii
  "Toggle following ASCII in Hexl buffers.
Like `hexl-follow-ascii-mode' but remembers the choice globally."
  :global t
  (let ((on-p (if arg
		  (> (prefix-numeric-value arg) 0)
	       (not hexl-ascii-overlay))))
    (hexl-follow-ascii-mode (if on-p 1 -1))
    ;; Remember this choice globally for later use.
    (setq hexl-follow-ascii hexl-follow-ascii-mode)))