aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2008-04-26 17:09:02 +0000
committerJohn Paul Wallington2008-04-26 17:09:02 +0000
commitcfea581fe4fca032280814c0b08a937d64cf1af2 (patch)
treed4c92f173c0be09d33a6fca87fb43d725a208668
parent713a5a472965ab143979cdce861e80e57042a324 (diff)
downloademacs-cfea581fe4fca032280814c0b08a937d64cf1af2.tar.gz
emacs-cfea581fe4fca032280814c0b08a937d64cf1af2.zip
(hexl-mode): Stash `eldoc-documentation-function' in
`hexl-mode-old-eldoc-documentation-function'. (hexl-mode-exit): Restore it. (hexl-mode-old-eldoc-documentation-function): Declare for compiler.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/hexl.el9
2 files changed, 18 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3aa45317ffb..453341a89b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12008-04-26 John Paul Wallington <jpw@pobox.com>
2
3 * hexl.el (hexl-mode): Stash `eldoc-documentation-function' in
4 `hexl-mode-old-eldoc-documentation-function'.
5 (hexl-mode-exit): Restore it.
6 (hexl-mode-old-eldoc-documentation-function): Declare for compiler.
7
8 * w32-fns.el (top-level): Don't set `completion-ignore-case' to t.
9
12008-04-26 Juanma Barranquero <lekktu@gmail.com> 102008-04-26 Juanma Barranquero <lekktu@gmail.com>
2 11
3 * minibuffer.el (completion-pcm-word-delimiters): Add :group. 12 * minibuffer.el (completion-pcm-word-delimiters): Add :group.
diff --git a/lisp/hexl.el b/lisp/hexl.el
index c0ec9aa6ed8..245f895837e 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -120,6 +120,7 @@ Quoting cannot be used, so the arguments cannot themselves contain spaces."
120(defvar hexl-mode-old-require-final-newline) 120(defvar hexl-mode-old-require-final-newline)
121(defvar hexl-mode-old-syntax-table) 121(defvar hexl-mode-old-syntax-table)
122(defvar hexl-mode-old-font-lock-keywords) 122(defvar hexl-mode-old-font-lock-keywords)
123(defvar hexl-mode-old-eldoc-documentation-function)
123 124
124(defvar hexl-ascii-overlay nil 125(defvar hexl-ascii-overlay nil
125 "Overlay used to highlight ASCII element corresponding to current point.") 126 "Overlay used to highlight ASCII element corresponding to current point.")
@@ -288,6 +289,10 @@ You can use \\[hexl-find-file] to visit a file in Hexl mode.
288 (add-hook 'change-major-mode-hook 'hexl-maybe-dehexlify-buffer nil t) 289 (add-hook 'change-major-mode-hook 'hexl-maybe-dehexlify-buffer nil t)
289 290
290 ;; Set a callback function for eldoc. 291 ;; Set a callback function for eldoc.
292 (make-local-variable 'hexl-mode-old-eldoc-documentation-function)
293 (setq hexl-mode-old-eldoc-documentation-function
294 (bound-and-true-p eldoc-documentation-function))
295
291 (set (make-local-variable 'eldoc-documentation-function) 296 (set (make-local-variable 'eldoc-documentation-function)
292 'hexl-print-current-point-info) 297 'hexl-print-current-point-info)
293 (eldoc-add-command-completions "hexl-") 298 (eldoc-add-command-completions "hexl-")
@@ -405,6 +410,10 @@ With arg, don't unhexlify buffer."
405 (when (boundp 'hexl-mode-old-hl-line-face) 410 (when (boundp 'hexl-mode-old-hl-line-face)
406 (setq hl-line-face hexl-mode-old-hl-line-face)) 411 (setq hl-line-face hexl-mode-old-hl-line-face))
407 412
413 (when (boundp 'hexl-mode-old-eldoc-documentation-function)
414 (setq eldoc-documentation-function
415 hexl-mode-old-eldoc-documentation-function))
416
408 (setq require-final-newline hexl-mode-old-require-final-newline) 417 (setq require-final-newline hexl-mode-old-require-final-newline)
409 (setq mode-name hexl-mode-old-mode-name) 418 (setq mode-name hexl-mode-old-mode-name)
410 (setq isearch-search-fun-function hexl-mode-old-isearch-search-fun-function) 419 (setq isearch-search-fun-function hexl-mode-old-isearch-search-fun-function)