]> code.delx.au - gnu-emacs/blobdiff - lisp/hexl.el
Use eldoc-documentation-functions
[gnu-emacs] / lisp / hexl.el
index 5f099a5afd5e8a49d6727021f2e992c1aeb01888..61d7dd0f31075ec9fff099a2674c6aa705ff57c3 100644 (file)
@@ -395,8 +395,8 @@ You can use \\[hexl-find-file] to visit a file in Hexl mode.
     (add-hook 'change-major-mode-hook 'hexl-maybe-dehexlify-buffer nil t)
 
     ;; Set a callback function for eldoc.
-    (add-function :before-until (local 'eldoc-documentation-function)
-                  #'hexl-print-current-point-info)
+    (add-hook 'eldoc-documentation-functions
+              #'hexl-print-current-point-info nil t)
     (eldoc-add-command-completions "hexl-")
     (eldoc-remove-command "hexl-save-buffer"
                          "hexl-current-address")