aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2006-11-30 23:30:52 +0000
committerJuanma Barranquero2006-11-30 23:30:52 +0000
commit5232b4cdfa2a1fc8685b81febefc64667b34ebf6 (patch)
tree24de2addd14f7655db471217d92f8520653a2a79
parentfde80ee0dcaf446c4ab36e0c9990bf7ace40e9fa (diff)
downloademacs-5232b4cdfa2a1fc8685b81febefc64667b34ebf6.tar.gz
emacs-5232b4cdfa2a1fc8685b81febefc64667b34ebf6.zip
(hexl-goto-address, hexl-forward-char, hexl-forward-short, hexl-forward-word,
hexl-previous-line, hexl-beginning-of-1k-page, hexl-end-of-1k-page): Doc fixes. (hexl-address-region, hexl-ascii-region, hexl-highlight-line-range): Fix typos in docstrings.
-rw-r--r--lisp/hexl.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index f01e7dc21dd..39c313cb3da 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -87,12 +87,12 @@ Quoting cannot be used, so the arguments cannot themselves contain spaces."
87 87
88(defface hexl-address-region 88(defface hexl-address-region
89 '((t (:inherit header-line))) 89 '((t (:inherit header-line)))
90 "Face used in address are of hexl-mode buffer." 90 "Face used in address area of hexl-mode buffer."
91 :group 'hexl) 91 :group 'hexl)
92 92
93(defface hexl-ascii-region 93(defface hexl-ascii-region
94 '((t (:inherit header-line))) 94 '((t (:inherit header-line)))
95 "Face used in ascii are of hexl-mode buffer." 95 "Face used in ascii area of hexl-mode buffer."
96 :group 'hexl) 96 :group 'hexl)
97 97
98(defvar hexl-max-address 0 98(defvar hexl-max-address 0
@@ -455,7 +455,7 @@ This function is intended to be used as eldoc callback."
455 455
456(defun hexl-goto-address (address) 456(defun hexl-goto-address (address)
457 "Goto hexl-mode (decimal) address ADDRESS. 457 "Goto hexl-mode (decimal) address ADDRESS.
458Signal error if ADDRESS out of range." 458Signal error if ADDRESS is out of range."
459 (interactive "nAddress: ") 459 (interactive "nAddress: ")
460 (if (or (< address 0) (> address hexl-max-address)) 460 (if (or (< address 0) (> address hexl-max-address))
461 (error "Out of hexl region")) 461 (error "Out of hexl region"))
@@ -496,7 +496,7 @@ Signal error if HEX-ADDRESS is out of range."
496 (hexl-goto-address (- (hexl-current-address) arg))) 496 (hexl-goto-address (- (hexl-current-address) arg)))
497 497
498(defun hexl-forward-char (arg) 498(defun hexl-forward-char (arg)
499 "Move right ARG bytes (left if ARG negative) in hexl-mode." 499 "Move to right ARG bytes (left if ARG negative) in hexl-mode."
500 (interactive "p") 500 (interactive "p")
501 (hexl-goto-address (+ (hexl-current-address) arg))) 501 (hexl-goto-address (+ (hexl-current-address) arg)))
502 502
@@ -535,7 +535,7 @@ Signal error if HEX-ADDRESS is out of range."
535 address))) 535 address)))
536 536
537(defun hexl-forward-short (arg) 537(defun hexl-forward-short (arg)
538 "Move right ARG shorts (left if ARG negative) in hexl-mode." 538 "Move to right ARG shorts (left if ARG negative) in hexl-mode."
539 (interactive "p") 539 (interactive "p")
540 (hexl-backward-short (- arg))) 540 (hexl-backward-short (- arg)))
541 541
@@ -574,13 +574,13 @@ Signal error if HEX-ADDRESS is out of range."
574 address))) 574 address)))
575 575
576(defun hexl-forward-word (arg) 576(defun hexl-forward-word (arg)
577 "Move right ARG words (left if ARG negative) in hexl-mode." 577 "Move to right ARG words (left if ARG negative) in hexl-mode."
578 (interactive "p") 578 (interactive "p")
579 (hexl-backward-word (- arg))) 579 (hexl-backward-word (- arg)))
580 580
581(defun hexl-previous-line (arg) 581(defun hexl-previous-line (arg)
582 "Move vertically up ARG lines [16 bytes] (down if ARG negative) in hexl-mode. 582 "Move vertically up ARG lines [16 bytes] (down if ARG negative) in hexl-mode.
583If there is byte at the target address move to the last byte in that line." 583If there is no byte at the target address move to the last byte in that line."
584 (interactive "p") 584 (interactive "p")
585 (hexl-next-line (- arg))) 585 (hexl-next-line (- arg)))
586 586
@@ -666,12 +666,12 @@ If there's no byte at the target address, move to the first or last line."
666 (recenter 0))) 666 (recenter 0)))
667 667
668(defun hexl-beginning-of-1k-page () 668(defun hexl-beginning-of-1k-page ()
669 "Go to beginning of 1k boundary." 669 "Go to beginning of 1KB boundary."
670 (interactive) 670 (interactive)
671 (hexl-goto-address (logand (hexl-current-address) -1024))) 671 (hexl-goto-address (logand (hexl-current-address) -1024)))
672 672
673(defun hexl-end-of-1k-page () 673(defun hexl-end-of-1k-page ()
674 "Go to end of 1k boundary." 674 "Go to end of 1KB boundary."
675 (interactive) 675 (interactive)
676 (hexl-goto-address (let ((address (logior (hexl-current-address) 1023))) 676 (hexl-goto-address (let ((address (logior (hexl-current-address) 1023)))
677 (if (> address hexl-max-address) 677 (if (> address hexl-max-address)
@@ -968,7 +968,7 @@ Customize the variable `hexl-follow-ascii' to disable this feature."
968 968
969(defun hexl-highlight-line-range () 969(defun hexl-highlight-line-range ()
970 "Return the range of address region for the point. 970 "Return the range of address region for the point.
971This function is assumed to be used as call back function for `hl-line-mode'." 971This function is assumed to be used as callback function for `hl-line-mode'."
972 (cons 972 (cons
973 (line-beginning-position) 973 (line-beginning-position)
974 ;; 9 stands for (length "87654321:") 974 ;; 9 stands for (length "87654321:")