# HG changeset patch # User Glenn Morris # Date 1196541966 0 # Node ID 0ead56f6db1ca036f529c34dd3cb892c515c0fdd # Parent 1365ab7a209332d74b574f0d01290da6b615ec84 (dig-mode): Replace gnus-run-mode-hooks with equivalent expansion. diff -r 1365ab7a2093 -r 0ead56f6db1c lisp/net/dig.el --- 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."