# HG changeset patch # User Masatake YAMATO # Date 1164902114 0 # Node ID 47735bfd0d95622e128056878cda20d2488bfd0b # Parent 55705fba7ce01f073032f88a1ecd9fc66e4dd25e (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 -r 55705fba7ce0 -r 47735bfd0d95 lisp/ChangeLog --- a/lisp/ChangeLog Thu Nov 30 15:50:08 2006 +0000 +++ b/lisp/ChangeLog Thu Nov 30 15:55:14 2006 +0000 @@ -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 -r 55705fba7ce0 -r 47735bfd0d95 lisp/hexl.el --- a/lisp/hexl.el Thu Nov 30 15:50:08 2006 +0000 +++ b/lisp/hexl.el Thu Nov 30 15:55:14 2006 +0000 @@ -104,6 +104,8 @@ (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 @@ (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 @@ (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)