1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00
Commit Graph

160 Commits

Author SHA1 Message Date
Juanma Barranquero
5232b4cdfa (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.
2006-11-30 23:30:52 +00:00
Masatake YAMATO
3fc29559f5 (hl-line-range-function, hl-line-face): Declare variables to avoid bytecomp warnings.
(hexl-mode-old-ruler-function): New variable.
(hexl-follow-line): Bind `hexl-mode-old-hl-line-range-function'	and `hl-line-range-function' after `require' hl-line.
Then bind `hl-line-range-function' and `hl-line-face'.
Don't require frame. Don't use `with-no-warnings'.
(hexl-activate-ruler): Store the original value of `ruler-mode-ruler-function' to `hexl-mode-old-ruler-function'.
(hexl-mode-exit): Restore the original value of `ruler-mode-ruler-function'.
2006-11-30 16:10:03 +00:00
Masatake YAMATO
6ac2ae62e2 (hexl-mode-old-hl-line-range-function): New variable
(hexl-mode-old-hl-line-face): New variable
(hexl-mode, hexl-mode-exit): Fix the highlighting of the current line when exit from the hexl-mode.
2006-11-30 15:55:14 +00:00
Stefan Monnier
312d24fbde (hexl-mode): Don't try to guess the max-address: get it from the horse's mouth.
(hexlify-buffer): Don't re-encode an arg that's already encoded.
2006-11-23 18:34:44 +00:00
Juanma Barranquero
89c247794e (hexl-mode): Fix typo in docstring. 2006-11-06 02:45:49 +00:00
Eli Zaretskii
7f9da0f3c7 (hexl-find-file): Doc fix. 2006-07-08 15:53:01 +00:00
Stefan Monnier
4a729d5886 (hexlify-buffer): Encode process arguments manually. 2006-05-15 16:05:40 +00:00
Stefan Monnier
37dc47675c (hexl-isearch-search-function): Fix regexp-building code to
quote special chars, and make the trick work on the hex part of the
buffer as well.
(hexl-mode, hexl-save-buffer, hexl-mode-exit)
(hexl-maybe-dehexlify-buffer): Use restore-buffer-modified-p.
2006-04-11 16:48:17 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Masatake YAMATO
12d96c20e5 * hexl.el (hexl-print-current-point-info): Fix simple spelling error. 2005-08-23 03:38:23 +00:00
Masatake YAMATO
2d77d354f1 (hexl-address-region):
(hexl-ascii-region, hexl-font-lock-keywords):
(hexl-highlight-line-range): Use the term "region"
instead of "area" for consistency with the other symbols
defined in hexl.el.
2005-08-10 18:15:50 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
625c152398 (hexl-mode-map): Recognize also `ehelp-command' as a valid binding for
`help-char'.
2005-07-15 10:50:45 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Andreas Schwab
480c8cd32a Add binding of ESC functionkey' for every M-functionkey'. 2005-06-11 07:14:38 +00:00
Lute Kamstra
36555efc19 (hexl-mode): Use run-mode-hooks. 2005-05-26 12:54:22 +00:00
Richard M. Stallman
9bbe39270f (hexl-follow-line): Use with-no-warnings. 2005-05-22 13:35:56 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Richard M. Stallman
881e0a3cf4 (hexl-mode): Use new name eldoc-documentation-function. 2005-04-26 11:02:15 +00:00
Masatake YAMATO
639b8e4d14 * hexl.el (hexlify-buffer): Remove fontification here.
Use font lock mechanism instead.
(hexl-font-lock-keywords): New font lock kewords.
(hexl-mode-old-font-lock-keywords): New variable.
(hexl-mode): Store the old font lock keywords.
(hexl-mode-exit): Restore the old font lock keywords.
2004-12-27 11:59:49 +00:00
Richard M. Stallman
b27ce24f87 (hexl-mode-old-hl-line-mode, hexl-mode-old-ruler-mode): New variables.
(hexl-mode): Set those variables, record ruler-mode and hl-line-mode.
(hexl-mode-exit): Restore status of ruler-mode and hl-line-mode.
2004-11-21 00:38:58 +00:00
Richard M. Stallman
55391f5e9d (hexl-mode): Catch errors in hexl-goto-address. 2004-06-13 21:58:41 +00:00
Kim F. Storm
24d0e54531 (hexl-follow-line): Don't require 'fringe. 2004-03-19 10:40:46 +00:00
Kim F. Storm
4c4ac51661 (hexl-mode-ruler): Adapt to new :align-to semantics. 2004-03-19 10:11:07 +00:00
Masatake YAMATO
9fd76d04e8 2004-03-15 Masatake YAMATO <jet@gyve.org>
* hl-line.el (hl-line-range-function): New variable.
	(hl-line-move): New function.
	(global-hl-line-highlight): Use `hl-line-move'.
	(hl-line-highlight): Ditto.

	* scroll-bar.el (scroll-bar-columns): New function derived from
	ruler-mode.el.

	* fringe.el (fringe-columns): New function derived from
	ruler-mode.el.

	* ruler-mode.el (top-level): Require scroll-bar and fringe.
	(ruler-mode-left-fringe-cols)
	(ruler-mode-right-fringe-cols): Use `fringe-columns'.
	(ruler-mode-right-scroll-bar-cols)
	(ruler-mode-left-scroll-bar-cols): Use `scroll-bar-columns'.
	(ruler-mode-ruler-function): New variable.
	(ruler-mode-header-line-format): Call `ruler-mode-ruler-function'
	if the value for `ruler-mode-ruler-function'is given.

	* hexl.el (hexl-mode-hook): Make the hook customizable.
	(hexl-address-area, hexl-ascii-area, hexl-ascii-cursor): New
	customize variables.
	(hexlify-buffer): Put font-lock-faces on the address area and
	the ascii area.
	(hexl-activate-ruler): New function.
	(hexl-follow-line): New function.
	(hexl-highlight-line-range): New function.
	(hexl-mode-ruler): New function.
2004-03-15 07:27:02 +00:00
Masatake YAMATO
4f918f606b 2004-03-09 Masatake YAMATO <jet@gyve.org>
* hexl.el (hexl-mode): Use `make-local-variable' instead of
	`make-variable-buffer-local'.
2004-03-09 01:25:27 +00:00
Masatake YAMATO
01ff913677 (hexl-mode): Set `hexl-print-current-point-info' as the callback function for eldoc.
(hexl-print-current-point-info): New function.
(hexl-current-address): print the address in both decimal and hexadecimal format.
2004-03-04 18:19:19 +00:00
Andreas Schwab
45ad49ba3b (hexl-insert-char): Add missing format string argument. 2004-02-08 22:36:31 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
John Paul Wallington
45e8e6e75e (hexl-find-file): Bind default-major-mode' to fundamental-mode'. 2003-04-17 02:41:12 +00:00
Richard M. Stallman
3db6aff67f (hexl-find-file): Ignore user's value of default-major-mode. 2003-04-03 23:01:12 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
John Paul Wallington
d9c8518d9a (hexl-mode-map): Bind C-m to `hexl-self-insert-command'. 2003-02-02 16:04:59 +00:00
Kim F. Storm
340c4d8542 (hexl-mode-map): Don't quote remapped command names. 2003-01-13 09:49:54 +00:00
Andreas Schwab
a70f1658c8 (hexl-mode-map): Use command remapping instead of
substitute-key-definition.
2003-01-12 20:48:16 +00:00
Stefan Monnier
87b3b78a06 (hexl-mode-old-write-contents-hooks): Remove.
(hexl-mode, hexl-current-address, hexl-address-to-marker)
(hexl-insert-char): Don't hardcode point-min == 1.
(hexl-isearch-search-function): New fun.
(hexl-mode-old-isearch-search-fun-function): New var.
(hexl-mode): Use them.
(hexl-mode, hexl-mode-exit, hexl-maybe-dehexlify-buffer):
Use write-contents-functions rather then write-contents-hooks.
2002-10-21 22:45:20 +00:00
Juanma Barranquero
fe0a77c6f1 (hexl-mode): Fix typo. 2002-07-09 09:05:19 +00:00
Miles Bader
e49a45ad85 (hexl-find-file): Bind `completion-ignored-extensions' to nil when
prompting for a filename.
2002-07-09 06:00:18 +00:00
Stefan Monnier
b8c49a19fe (hexlify-command, dehexlify-command): Remove.
(hexlify-buffer, dehexlify-buffer): Use call-process-region
rather than shell-command-on-region.
2002-03-04 01:13:52 +00:00
Pavel Janík
a0164df52c (hexl-options): Doc fix.
Update Commentary section.
2002-02-28 16:20:16 +00:00
Pavel Janík
fa9f58dd20 (hexl-mode, hexl-follow-ascii): Remove make-local-hook. 2001-11-26 16:27:00 +00:00
Eli Zaretskii
4b7dd7e2ff (hexl-mode-map): Fix the change of 2001-08-23: use
make-keymap instead of copy-keymap, since copying the global
keymap messes up the menu bar.
2001-09-22 17:50:10 +00:00
Eli Zaretskii
165b428351 (hexl-insert-multibyte-char, hexl-insert-char): Remove
periods from the end of error message strings.  From Pavel
Janik <Pavel@Janik.cz>.
2001-08-26 16:40:03 +00:00
Eli Zaretskii
02aec07b6e (hexl-insert-multibyte-char) New function.
(hexl-quoted-insert, hexl-self-insert-command)
(hexl-insert-hex-char, hexl-insert-decimal-char)
(hexl-insert-octal-char): Call it instead of hexl-insert-char.
Fix the doc strings accordingly.
(hexl-insert-char): Reject characters whose code is above 255.
Doc fix.
(hexl-mode-map): Copy the global keymap instead of creating a
sparse keymap, and bind all self-inserting characters to
hexl-self-insert-command.
2001-08-23 10:55:30 +00:00
Eli Zaretskii
7851eb98ac (hexl-mode, hexl-mode-exit): Adjust hexl-max-address and
original-point for extra CR characters that are added/removed when
the buffer is written/read whose EOL type is -dos.
2001-08-16 19:48:00 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Gerd Moellmann
48f56596d5 (hexl-current-address): Print a message when called
interactively.
2001-05-14 13:17:30 +00:00
Eli Zaretskii
d565f6aa3f (hexl-scroll-up): If scrolling gets outside the hexl
region, position point on the first or last 16-byte group.
(hexl-mode-map): Bind C-Home and C-End to hexl-beginning-of-buffer
and hexl-end-of-buffer.  Bind End and Home to hexl-end-of-line and
hexl-beginning-of-line.
2001-04-03 14:13:46 +00:00
Eli Zaretskii
0716afa2de (hexlify-buffer): Bind coding-system-for-write to
buffer-file-coding-system, instead of raw-text.
(dehexlify-buffer): Bind coding-system-for-read to
buffer-file-coding-system, instead of raw-text.
2000-10-11 17:08:28 +00:00
Gerd Moellmann
9f6bff4441 (hexl-insert-hex-string): New command. 2000-04-19 19:10:46 +00:00
Phillip Rulon
330bd7c39b * hexl.el (hexl-mode): Do nothing if already in hexl mode. 1999-10-09 01:19:36 +00:00
Phillip Rulon
059c2e18d1 * hexl.el (hexlify-buffer): Move point in proper range
if it is too large.
	(hexl-after-revert-hook): Update hexl-max-address.
	(hexl-address-to-marker): Doc fix.
1999-10-08 15:42:32 +00:00
Andrew Innes
7e3a77161e (hexlify-command): Apply shell-quote-argument after
expanding hexl-program in case exec-directory contains a space.
(dehexlify-command): Ditto.
1999-05-02 09:38:50 +00:00
Karl Heuer
dfba246797 (hexl-mode-map): More of previous change. 1998-09-25 17:04:24 +00:00
Karl Heuer
2e435b7f41 (hexl-mode-map): Don't override all ESC bindings,
only those that normally modify the buffer.
1998-09-23 22:24:21 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Eli Zaretskii
a749e5e566 (hexlify-buffer, dehexlify-buffer): Don't bind
binary-process-{in,out}put; setup coding-systems instead.
1998-04-15 14:47:47 +00:00
Stephen Eglen
8e7df2e62b (hexl-mode-exit): Remove hexl-follow-ascii-find from post-command-hook
when leaving hexl-mode.
1998-02-15 16:57:16 +00:00
Richard M. Stallman
0c4b86dac8 Update copyright year. 1998-01-17 20:02:40 +00:00
Stephen Eglen
db6c5b923d (hexl-follow-ascii): New function and variable to highlight the ASCII
character corresponding to the current element of the buffer.
1998-01-17 17:02:13 +00:00
Richard M. Stallman
ce1364815e (hexlify-buffer): Bind coding-system-for-write to
raw-text with eol-type derived from the buffer-file-coding-system.
1997-09-11 22:13:15 +00:00
Richard M. Stallman
338992a502 (hexlify-buffer, dehexlify-buffer):
Pay attention to buffer-file-type.
(hexl-save-buffer): Don't bind buffer-file-type around save-buffer.
1997-08-04 02:44:42 +00:00
Richard M. Stallman
19e31f7cf9 Add a `provide' call.
Delete periods from many error messages.
1997-05-09 21:58:00 +00:00
Richard M. Stallman
2d902813fa (hexl-mode): Add a mode-class property. 1997-05-05 04:18:33 +00:00
Richard M. Stallman
00ed33e7ab Add defgroup; use defcustom for user vars. 1997-04-13 07:51:54 +00:00
Richard M. Stallman
7bfff21e3e (hexl-mode): Run hexl-mode-hook. 1996-06-10 21:36:29 +00:00
Richard M. Stallman
753c130989 (hexl-mode): Set hexl-max-address early on
and call hexl-goto-address afterward.
And call hexlify-buffer even earlier.
1996-06-10 17:00:06 +00:00
Richard M. Stallman
ae2d451b43 (hexl-mode-map): Bind prior, home, deletechar, deleteline,
insertline, S-delete, and DEL.  Don't bind prev.
1996-06-06 14:36:30 +00:00
Richard M. Stallman
aa3757b85f (hexlify-buffer, dehexlify-buffer): Clear out the undo
info, and don't record undo info for the conversion.
1996-04-03 17:22:11 +00:00
Richard M. Stallman
95d87237d2 (hexl-mode-exit, hexl-maybe-dehexlify-buffer):
Corrected write-contents-hook to write-contents-hooks.
1996-02-27 01:49:07 +00:00
Karl Heuer
cf6ba12857 (hexl-hex-char-to-integer, hexl-oct-char-to-integer): Fix error format string. 1996-01-29 23:16:11 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
65e5f4bc98 (hexl-program, hexl-beginning-of-1k-page,
hexl-end-of-1k-page, hexl-beginning-of-512b-page,
hexl-end-of-512b-page): Doc fix.
1996-01-04 23:40:30 +00:00
Richard M. Stallman
0e4889b213 (hexl-mode): Don't call kill-all-local-variables.
Save write-contents-hooks, require-final-newline, the syntax table.
Use make-local-hook for change-major-mode-hook.
(hexl-mode-exit): Restore those vars; remove our local hooks.
1995-12-31 16:09:45 +00:00
Richard M. Stallman
576e92ae3a (hexl-mode): Set require-final-newline to nil.
If point was at end of buffer, move it back one byte.
1995-11-20 05:33:16 +00:00
Richard M. Stallman
6bbb008e7e (hexl-current-address): New arg VALIDATE.
Handle point values in the ASCII text section and in the addresses.
(hexl-insert-char): Handle point located in the ASCII text.
1995-09-10 17:45:08 +00:00
Richard M. Stallman
f39c6650e2 (hexl-mode-old-local-map, hexl-mode-old-mode-name)
(hexl-mode-old-major-mode): Add defvars.
1995-03-12 17:14:54 +00:00
Richard M. Stallman
c3de2bf001 (hexl-mode): Make after-revert-hook rehexlify.
(hexl-after-revert-hook): New function.
1995-03-09 03:05:51 +00:00
Richard M. Stallman
23fa904007 (hexl-find-file): Treat windows-nt like ms-dos. 1994-11-01 05:51:58 +00:00
Richard M. Stallman
8eeac2cebd (hexl-maybe-dehexlify-buffer): New function.
(hexl-mode): Add it to change-major-mode-hook.
(hexl-mode-exit): Remove kludge for mode-line update.
(hexlify-buffer): Doc fix.
1994-07-12 07:25:31 +00:00
Richard M. Stallman
7e17a6aade (hexl-mode-map): Call define-key properly for help-char. 1994-05-28 04:11:29 +00:00
Richard M. Stallman
1fa65e2ff9 (dehexlify-buffer): Reflect that binary-process was
renamed to binary-process-output.
(dehexlify-buffer): Bind also binary-process-input (for ms-dos).
(hexlify-buffer): Bind both binary-process-input and
binary-process-input (for ms-dos).
(hexl-save-buffer): Force binary save (for ms-dos).
1994-05-07 21:55:56 +00:00
Karl Heuer
ab180fb6f2 (hexl-insert-char): Increment `address' for every character inserted. 1994-05-07 02:33:33 +00:00
Karl Heuer
f86f73c33d (hexl-mode-map): Add bindings for cursor keys. 1994-05-07 01:48:54 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
ba275b2de9 (hexl-mode): Make local binding for hexl-max-address. 1994-04-18 23:34:22 +00:00
Richard M. Stallman
900014dd8b (hexl-mode-exit): Bind inhibit-read-only; don't alter buffer-read-only. 1994-02-07 05:43:51 +00:00
Richard M. Stallman
bb752f07fb (hexl-mode): Bind inhibit-read-only; don't alter buffer-read-only. 1994-02-07 05:42:40 +00:00
Richard M. Stallman
10b501e3e8 (dehexlify-buffer): If msdos, bind binary-process.
(hexl-find-file): Load as binary.
1994-01-06 04:35:56 +00:00
Richard M. Stallman
b7f66977be Comment change. 1993-11-23 20:12:25 +00:00
Richard M. Stallman
f4e3d4eb48 (hexlify-buffer): Add autoload cookie. 1993-11-19 15:57:50 +00:00
Richard M. Stallman
c6fcafde81 (hexl-mode): Use add-hook' to modify buffer local write-contents-hooks'.
(hexl-mode-exit): Remove our hook when turning off Hexl mode.
1993-11-10 20:44:14 +00:00
Richard M. Stallman
a836eeaf02 Added a keyword. 1993-07-04 17:56:02 +00:00
Jim Blandy
ac2e902d45 (hexl-in-save-buffer): New flag.
(hexl-save-buffer): Prevent infinite recursion.
1993-06-24 01:48:59 +00:00
Richard M. Stallman
686fc9abcb (hexl-char-after-point): Get rid of mistakenly free variables. 1993-05-28 20:33:14 +00:00
Richard M. Stallman
57f0793118 Doc fixes. 1993-05-28 20:30:49 +00:00
Richard M. Stallman
a22f4c7d34 (hexlify-command, dehexlify-command): Use exec-directory. 1993-05-26 21:17:31 +00:00
Eric S. Raymond
e41b2db1da Added or corrected Commentary sections 1993-03-22 03:27:18 +00:00
Jim Blandy
b9a4b5011e * hexl.el (hexl-mode-map): When initializing, remember that the
argument to key-binding is a key sequence, not a single key.
1993-03-02 07:26:43 +00:00
Jim Blandy
e8a57935cb entered into RCS 1992-08-04 04:15:43 +00:00