From: Masatake YAMATO Date: Thu, 30 Nov 2006 15:55:14 +0000 (+0000) Subject: (hexl-mode-old-hl-line-range-function): New variable X-Git-Tag: emacs-pretest-22.0.92~384 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ac2ae62e26f7bc9d4012d14cc3294a2abc5dc38;p=emacs.git (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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12ba2ee7449..fadb2e2501b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2006-11-29 Alin C. Soare (tiny change) + + * lisp/hexl.el (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 Juanma Barranquero * international/fontset.el (create-fontset-from-ascii-font) diff --git a/lisp/hexl.el b/lisp/hexl.el index ff7c4bf480e..5cb30e53862 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el @@ -104,6 +104,8 @@ Quoting cannot be used, so the arguments cannot themselves contain spaces." (defvar ruler-mode-ruler-function) (defvar hl-line-mode) +(defvar hexl-mode-old-hl-line-range-function) +(defvar hexl-mode-old-hl-line-face) (defvar hexl-mode-old-hl-line-mode) (defvar hexl-mode-old-local-map) (defvar hexl-mode-old-mode-name) @@ -259,6 +261,11 @@ You can use \\[hexl-find-file] to visit a file in Hexl mode. (setq hexl-mode-old-hl-line-mode (and (boundp 'hl-line-mode) hl-line-mode)) + (set (make-local-variable 'hexl-mode-old-hl-line-range-function) + hl-line-range-function) + (set (make-local-variable 'hexl-mode-old-hl-line-face) + hl-line-face) + (make-local-variable 'hexl-mode-old-syntax-table) (setq hexl-mode-old-syntax-table (syntax-table)) (set-syntax-table (standard-syntax-table)) @@ -388,6 +395,10 @@ With arg, don't unhexlify buffer." (ruler-mode 0)) (if (and (boundp 'hl-line-mode) hl-line-mode (not hexl-mode-old-hl-line-mode)) (hl-line-mode 0)) + + (set 'hl-line-range-function hexl-mode-old-hl-line-range-function) + (set 'hl-line-face hexl-mode-old-hl-line-face) + (setq require-final-newline hexl-mode-old-require-final-newline) (setq mode-name hexl-mode-old-mode-name) (setq isearch-search-fun-function hexl-mode-old-isearch-search-fun-function)