From: Glenn Morris Date: Sat, 1 Dec 2007 20:46:06 +0000 (+0000) Subject: (dig-mode): Replace gnus-run-mode-hooks with equivalent expansion. X-Git-Tag: emacs-pretest-23.0.90~9193 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b5625220ad4a48c619a07274e543c2b8f727e37;p=emacs.git (dig-mode): Replace gnus-run-mode-hooks with equivalent expansion. --- diff --git a/lisp/net/dig.el b/lisp/net/dig.el index 9d62fdc9919..cee3a5c17cc 100644 --- a/lisp/net/dig.el +++ b/lisp/net/dig.el @@ -151,7 +151,10 @@ Buffer should contain output generated by `dig-invoke'." '(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."