From 4b5625220ad4a48c619a07274e543c2b8f727e37 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 1 Dec 2007 20:46:06 +0000 Subject: [PATCH] (dig-mode): Replace gnus-run-mode-hooks with equivalent expansion. --- lisp/net/dig.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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." -- 2.39.2