changeset 86913:0ead56f6db1c

(dig-mode): Replace gnus-run-mode-hooks with equivalent expansion.
author Glenn Morris <rgm@gnu.org>
date Sat, 01 Dec 2007 20:46:06 +0000
parents 1365ab7a2093
children 444c508e6655
files lisp/net/dig.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/dig.el	Sat Dec 01 20:40:44 2007 +0000
+++ b/lisp/net/dig.el	Sat Dec 01 20:46:06 2007 +0000
@@ -151,7 +151,10 @@
 	 '(dig-font-lock-keywords t)))
   (when (featurep 'font-lock)
     (font-lock-set-defaults))
-  (gnus-run-mode-hooks 'dig-mode-hook))
+  (save-current-buffer
+    (if (fboundp 'run-mode-hooks)
+        (run-mode-hooks 'dig-mode-hook)
+      (run-hooks 'dig-mode-hook))))
 
 (defun dig-exit ()
   "Quit dig output buffer."