Mercurial > emacs
changeset 56080:33e0ec6d5662
(hexl-mode): Catch errors in hexl-goto-address.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 13 Jun 2004 21:58:41 +0000 |
parents | 16a8650c3814 |
children | a72ee0aaa7f9 |
files | lisp/hexl.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/hexl.el Sun Jun 13 21:56:49 2004 +0000 +++ b/lisp/hexl.el Sun Jun 13 21:58:41 2004 +0000 @@ -217,7 +217,9 @@ (set-buffer-modified-p modified)) (make-local-variable 'hexl-max-address) (setq hexl-max-address max-address) - (hexl-goto-address original-point)) + (condition-case nil + (hexl-goto-address original-point) + (error nil))) ;; We do not turn off the old major mode; instead we just ;; override most of it. That way, we can restore it perfectly. @@ -405,7 +407,7 @@ Signal error if ADDRESS out of range." (interactive "nAddress: ") (if (or (< address 0) (> address hexl-max-address)) - (error "Out of hexl region")) + (error "Out of hexl region")) (goto-char (hexl-address-to-marker address))) (defun hexl-goto-hex-address (hex-address)