diff options
| author | Dan Nicolaescu | 2007-10-21 02:41:13 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-10-21 02:41:13 +0000 |
| commit | 61dd70aaa9ee4945463e1281a95f779ac948eb9b (patch) | |
| tree | c4bc6cd2422c6b706a154e9cdc2e729153e0c7d0 | |
| parent | cdc9f5c23a62d614e0e00d7c15617b2180fe644b (diff) | |
| download | emacs-61dd70aaa9ee4945463e1281a95f779ac948eb9b.tar.gz emacs-61dd70aaa9ee4945463e1281a95f779ac948eb9b.zip | |
* hexl.el (hexl-menu): New major mode menu.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/hexl.el | 39 |
2 files changed, 42 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9d440b68c1e..1a274bf1721 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-10-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * hexl.el (hexl-menu): New major mode menu. | ||
| 4 | |||
| 1 | 2007-10-20 Glenn Morris <rgm@gnu.org> | 5 | 2007-10-20 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * progmodes/f90.el (f90-font-lock-keywords-2) | 7 | * progmodes/f90.el (f90-font-lock-keywords-2) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index 17d2d83b681..c21be9b42cb 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -457,7 +457,7 @@ This function is intended to be used as eldoc callback." | |||
| 457 | (+ (* (/ address 16) 68) 10 (point-min) (/ (* (% address 16) 5) 2))) | 457 | (+ (* (/ address 16) 68) 10 (point-min) (/ (* (% address 16) 5) 2))) |
| 458 | 458 | ||
| 459 | (defun hexl-goto-address (address) | 459 | (defun hexl-goto-address (address) |
| 460 | "Goto hexl-mode (decimal) address ADDRESS. | 460 | "Go to hexl-mode (decimal) address ADDRESS. |
| 461 | Signal error if ADDRESS is out of range." | 461 | Signal error if ADDRESS is out of range." |
| 462 | (interactive "nAddress: ") | 462 | (interactive "nAddress: ") |
| 463 | (if (or (< address 0) (> address hexl-max-address)) | 463 | (if (or (< address 0) (> address hexl-max-address)) |
| @@ -1104,6 +1104,43 @@ This function is assumed to be used as callback function for `hl-line-mode'." | |||
| 1104 | (define-key hexl-mode-map "\C-x\C-s" 'hexl-save-buffer) | 1104 | (define-key hexl-mode-map "\C-x\C-s" 'hexl-save-buffer) |
| 1105 | (define-key hexl-mode-map "\C-x\C-t" 'undefined)) | 1105 | (define-key hexl-mode-map "\C-x\C-t" 'undefined)) |
| 1106 | 1106 | ||
| 1107 | (easy-menu-define hexl-menu hexl-mode-map "Hexl Mode menu" | ||
| 1108 | `("Hexl" | ||
| 1109 | :help "Hexl-specific Features" | ||
| 1110 | |||
| 1111 | ["Backward short" hexl-backward-short | ||
| 1112 | :help "Move to left a short"] | ||
| 1113 | ["Forward short" hexl-forward-short | ||
| 1114 | :help "Move to right a short"] | ||
| 1115 | ["Backward word" hexl-backward-short | ||
| 1116 | :help "Move to left a word"] | ||
| 1117 | ["Forward word" hexl-forward-short | ||
| 1118 | :help "Move to right a word"] | ||
| 1119 | "-" | ||
| 1120 | ["Beginning of 512b page" hexl-beginning-of-512b-page | ||
| 1121 | :help "Go to beginning of 512 byte boundary"] | ||
| 1122 | ["End of 512b page" hexl-end-of-512b-page | ||
| 1123 | :help "Go to end of 512 byte boundary"] | ||
| 1124 | ["Beginning of 1K page" hexl-beginning-of-1k-page | ||
| 1125 | :help "Go to beginning of 1KB boundary"] | ||
| 1126 | ["End of 1K page" hexl-end-of-1k-page | ||
| 1127 | :help "Go to end of 1KB boundary"] | ||
| 1128 | "-" | ||
| 1129 | ["Go to address" hexl-goto-address | ||
| 1130 | :help "Go to hexl-mode (decimal) address"] | ||
| 1131 | ["Go to address" hexl-goto-hex-address | ||
| 1132 | :help "Go to hexl-mode (hex string) address"] | ||
| 1133 | "-" | ||
| 1134 | ["Insert decimal char" hexl-insert-decimal-char | ||
| 1135 | :help "Insert a character given by its decimal code"] | ||
| 1136 | ["Insert hex char" hexl-insert-hex-char | ||
| 1137 | :help "Insert a character given by its hexadecimal code"] | ||
| 1138 | ["Insert octal char" hexl-insert-octal-char | ||
| 1139 | :help "Insert a character given by its octal code"] | ||
| 1140 | "-" | ||
| 1141 | ["Exit hexl mode" hexl-mode-exit | ||
| 1142 | :help "Exit hexl mode returning to previous mode"])) | ||
| 1143 | |||
| 1107 | (provide 'hexl) | 1144 | (provide 'hexl) |
| 1108 | 1145 | ||
| 1109 | ;; arch-tag: d5a7aa8a-9bce-480b-bcff-6c4c7ca5ea4a | 1146 | ;; arch-tag: d5a7aa8a-9bce-480b-bcff-6c4c7ca5ea4a |