(2 'hexl-ascii-region t t)))
"Font lock keywords used in `hexl-mode'.")
-(defun hexl-rulerise (string bits)
+(defun hexl-rulerize (string bits)
(let ((size (/ bits 4)) (strlen (length string)) (pos 0) (ruler ""))
(while (< pos strlen)
(setq ruler (concat ruler " " (substring string pos (+ pos size))))
(lambda (bits)
(cons bits
(concat " 87654321 "
- (hexl-rulerise "00112233445566778899aabbccddeeff" bits)
+ (hexl-rulerize "00112233445566778899aabbccddeeff" bits)
" 0123456789abcdef")))
'(8 16 32 64)))
;; routines
(error "Invalid character 0x%x -- must be in the range [0..255]" ch))
(let ((address (hexl-current-address t)))
(while (> num 0)
- (let ((hex-position
- (+ (* (/ address 16) (hexl-line-displen))
- 10 (point-min)
- (* 2 (% address 16))
- (/ (% address 16) 2)))
+ (let ((hex-position (hexl-address-to-marker address))
(ascii-position
(+ (* (/ address 16) (hexl-line-displen))
(hexl-ascii-start-column)