Function: hexl-follow-ascii-mode
hexl-follow-ascii-mode is an interactive and byte-compiled function
defined in hexl.el.gz.
Signature
(hexl-follow-ascii-mode &optional ARG)
Documentation
Minor mode to follow ASCII in current Hexl buffer.
When following is enabled, the ASCII character corresponding to the
element under the point is highlighted.
The default activation is controlled by hexl-follow-ascii(var)/hexl-follow-ascii(fun).
This is a 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 hexl-follow-ascii-mode(var)/hexl-follow-ascii-mode(fun).
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-mode
"Minor mode to follow ASCII in current Hexl buffer.
When following is enabled, the ASCII character corresponding to the
element under the point is highlighted.
The default activation is controlled by `hexl-follow-ascii'."
:global nil
(if hexl-follow-ascii-mode
;; turn it on
(progn
(unless hexl-ascii-overlay
(setq hexl-ascii-overlay (make-overlay (point) (point)))
(overlay-put hexl-ascii-overlay 'face 'highlight))
(add-hook 'post-command-hook #'hexl-follow-ascii-find nil t))
;; turn it off
(when hexl-ascii-overlay
(delete-overlay hexl-ascii-overlay)
(setq hexl-ascii-overlay nil))
(remove-hook 'post-command-hook #'hexl-follow-ascii-find t)))