+2005-06-07 Lute Kamstra <lute@gnu.org>
+
+ * textmodes/org.el (org-run-mode-hooks): New function.
+ (org-agenda-mode): Use it.
+
2005-06-07 David McCabe <davemccabe@gmail.com> (tiny change)
* emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string-elt property.
(require 'outline)
(require 'time-date)
(require 'easymenu)
-(or (fboundp 'run-mode-hooks)
- (defalias 'run-mode-hooks 'run-hooks))
;;; Customization variables
If the file does not specify a category, then file's base name
is used instead.")
+(defun org-run-mode-hooks (&rest hooks)
+ "Call `run-mode-hooks' if it is available; otherwise call `run-hooks'."
+ (if (fboundp 'run-mode-hooks)
+ (apply 'run-mode-hooks hooks)
+ (apply 'run-hooks hooks)))
+
(defun org-set-regexps-and-options ()
"Precompute regular expressions for current buffer."
(when (eq major-mode 'org-mode)
"--")
(mapcar 'org-file-menu-entry org-agenda-files)))
(org-agenda-set-mode-name)
- (run-mode-hooks 'org-agenda-mode-hook))
+ (org-run-mode-hooks 'org-agenda-mode-hook))
(define-key org-agenda-mode-map [(tab)] 'org-agenda-goto)
(define-key org-agenda-mode-map [(return)] 'org-agenda-switch-to)