diff options
| author | Richard M. Stallman | 1997-05-09 21:58:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-09 21:58:00 +0000 |
| commit | 19e31f7cf92f933b50a13c97a5a940654595341a (patch) | |
| tree | 6368c3a2d6f85779d4e420f42d36ff89b2dd8658 | |
| parent | a7ebd4437829f7e04edd4d1c939baa60061d4ad2 (diff) | |
| download | emacs-19e31f7cf92f933b50a13c97a5a940654595341a.tar.gz emacs-19e31f7cf92f933b50a13c97a5a940654595341a.zip | |
Add a `provide' call.
Delete periods from many error messages.
| -rw-r--r-- | lisp/hexl.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el index b2234d4000c..19de8c04f3b 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -341,7 +341,7 @@ Ask the user for confirmation." | |||
| 341 | Signal error if ADDRESS out of range." | 341 | Signal error if ADDRESS out of range." |
| 342 | (interactive "nAddress: ") | 342 | (interactive "nAddress: ") |
| 343 | (if (or (< address 0) (> address hexl-max-address)) | 343 | (if (or (< address 0) (> address hexl-max-address)) |
| 344 | (error "Out of hexl region.")) | 344 | (error "Out of hexl region")) |
| 345 | (goto-char (hexl-address-to-marker address))) | 345 | (goto-char (hexl-address-to-marker address))) |
| 346 | 346 | ||
| 347 | (defun hexl-goto-hex-address (hex-address) | 347 | (defun hexl-goto-hex-address (hex-address) |
| @@ -615,13 +615,13 @@ This discards the buffer's undo information." | |||
| 615 | (let ((ch (logior character 32))) | 615 | (let ((ch (logior character 32))) |
| 616 | (if (and (>= ch ?a) (<= ch ?f)) | 616 | (if (and (>= ch ?a) (<= ch ?f)) |
| 617 | (- ch (- ?a 10)) | 617 | (- ch (- ?a 10)) |
| 618 | (error "Invalid hex digit `%c'." ch))))) | 618 | (error "Invalid hex digit `%c'" ch))))) |
| 619 | 619 | ||
| 620 | (defun hexl-oct-char-to-integer (character) | 620 | (defun hexl-oct-char-to-integer (character) |
| 621 | "Take a char and return its value as if it was a octal digit." | 621 | "Take a char and return its value as if it was a octal digit." |
| 622 | (if (and (>= character ?0) (<= character ?7)) | 622 | (if (and (>= character ?0) (<= character ?7)) |
| 623 | (- character ?0) | 623 | (- character ?0) |
| 624 | (error "Invalid octal digit `%c'." character))) | 624 | (error "Invalid octal digit `%c'" character))) |
| 625 | 625 | ||
| 626 | (defun hexl-printable-character (ch) | 626 | (defun hexl-printable-character (ch) |
| 627 | "Return a displayable string for character CH." | 627 | "Return a displayable string for character CH." |
| @@ -675,7 +675,7 @@ This discards the buffer's undo information." | |||
| 675 | (interactive "p") | 675 | (interactive "p") |
| 676 | (let ((num (hexl-hex-string-to-integer (read-string "Hex number: ")))) | 676 | (let ((num (hexl-hex-string-to-integer (read-string "Hex number: ")))) |
| 677 | (if (or (> num 255) (< num 0)) | 677 | (if (or (> num 255) (< num 0)) |
| 678 | (error "Hex number out of range.") | 678 | (error "Hex number out of range") |
| 679 | (hexl-insert-char num arg)))) | 679 | (hexl-insert-char num arg)))) |
| 680 | 680 | ||
| 681 | (defun hexl-insert-decimal-char (arg) | 681 | (defun hexl-insert-decimal-char (arg) |
| @@ -683,7 +683,7 @@ This discards the buffer's undo information." | |||
| 683 | (interactive "p") | 683 | (interactive "p") |
| 684 | (let ((num (string-to-int (read-string "Decimal Number: ")))) | 684 | (let ((num (string-to-int (read-string "Decimal Number: ")))) |
| 685 | (if (or (> num 255) (< num 0)) | 685 | (if (or (> num 255) (< num 0)) |
| 686 | (error "Decimal number out of range.") | 686 | (error "Decimal number out of range") |
| 687 | (hexl-insert-char num arg)))) | 687 | (hexl-insert-char num arg)))) |
| 688 | 688 | ||
| 689 | (defun hexl-insert-octal-char (arg) | 689 | (defun hexl-insert-octal-char (arg) |
| @@ -691,7 +691,7 @@ This discards the buffer's undo information." | |||
| 691 | (interactive "p") | 691 | (interactive "p") |
| 692 | (let ((num (hexl-octal-string-to-integer (read-string "Octal Number: ")))) | 692 | (let ((num (hexl-octal-string-to-integer (read-string "Octal Number: ")))) |
| 693 | (if (or (> num 255) (< num 0)) | 693 | (if (or (> num 255) (< num 0)) |
| 694 | (error "Decimal number out of range.") | 694 | (error "Decimal number out of range") |
| 695 | (hexl-insert-char num arg)))) | 695 | (hexl-insert-char num arg)))) |
| 696 | 696 | ||
| 697 | ;; startup stuff. | 697 | ;; startup stuff. |
| @@ -803,4 +803,6 @@ This discards the buffer's undo information." | |||
| 803 | (define-key hexl-mode-map "\C-x\C-s" 'hexl-save-buffer) | 803 | (define-key hexl-mode-map "\C-x\C-s" 'hexl-save-buffer) |
| 804 | (define-key hexl-mode-map "\C-x\C-t" 'undefined)) | 804 | (define-key hexl-mode-map "\C-x\C-t" 'undefined)) |
| 805 | 805 | ||
| 806 | (provide 'hexl) | ||
| 807 | |||
| 806 | ;;; hexl.el ends here | 808 | ;;; hexl.el ends here |