diff options
author | Glenn Morris <rgm@gnu.org> | 2007-12-01 20:46:06 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-12-01 20:46:06 +0000 |
commit | 4b5625220ad4a48c619a07274e543c2b8f727e37 (patch) | |
tree | 0316290cbf70c10703a42666108c419853beed4a /lisp/net | |
parent | 4c1d59228460dfe7a42ee0b61699846c79863aa0 (diff) | |
download | emacs-4b5625220ad4a48c619a07274e543c2b8f727e37.tar.gz |
(dig-mode): Replace gnus-run-mode-hooks with equivalent expansion.
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/dig.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." |