Function: hexl-current-address
hexl-current-address is an interactive and byte-compiled function
defined in hexl.el.gz.
Signature
(hexl-current-address &optional VALIDATE)
Documentation
Return current hexl-address.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(defun hexl-current-address (&optional validate)
"Return current hexl-address."
(interactive)
(let ((current-column
(- (% (- (point) (point-min) -1) (hexl-line-displen)) 11))
(hexl-address 0))
(if (< current-column 0)
(if validate
(error "Point is not on a character in the file")
(setq current-column 0)))
(setq hexl-address
(+ (* (/ (- (point) (point-min) -1)
(hexl-line-displen)) 16)
(if (>= current-column (- (hexl-ascii-start-column) 10))
(- current-column (- (hexl-ascii-start-column) 10))
(/ (- current-column
(/ current-column (1+ (/ hexl-bits 4)))) 2))))
(when (called-interactively-p 'interactive)
(message "Current address is %d/0x%08x" hexl-address hexl-address))
hexl-address))