aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/org.el10
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 120457322ef..368d5139978 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-06-07 Lute Kamstra <lute@gnu.org>
2
3 * textmodes/org.el (org-run-mode-hooks): New function.
4 (org-agenda-mode): Use it.
5
12005-06-07 David McCabe <davemccabe@gmail.com> (tiny change) 62005-06-07 David McCabe <davemccabe@gmail.com> (tiny change)
2 7
3 * emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string-elt property. 8 * emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string-elt property.
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index bbc59768aaf..d13a7514c16 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -154,8 +154,6 @@
154(require 'outline) 154(require 'outline)
155(require 'time-date) 155(require 'time-date)
156(require 'easymenu) 156(require 'easymenu)
157(or (fboundp 'run-mode-hooks)
158 (defalias 'run-mode-hooks 'run-hooks))
159 157
160;;; Customization variables 158;;; Customization variables
161 159
@@ -384,6 +382,12 @@ or contain a special line
384If the file does not specify a category, then file's base name 382If the file does not specify a category, then file's base name
385is used instead.") 383is used instead.")
386 384
385(defun org-run-mode-hooks (&rest hooks)
386 "Call `run-mode-hooks' if it is available; otherwise call `run-hooks'."
387 (if (fboundp 'run-mode-hooks)
388 (apply 'run-mode-hooks hooks)
389 (apply 'run-hooks hooks)))
390
387(defun org-set-regexps-and-options () 391(defun org-set-regexps-and-options ()
388 "Precompute regular expressions for current buffer." 392 "Precompute regular expressions for current buffer."
389 (when (eq major-mode 'org-mode) 393 (when (eq major-mode 'org-mode)
@@ -3118,7 +3122,7 @@ The following commands are available:
3118 "--") 3122 "--")
3119 (mapcar 'org-file-menu-entry org-agenda-files))) 3123 (mapcar 'org-file-menu-entry org-agenda-files)))
3120 (org-agenda-set-mode-name) 3124 (org-agenda-set-mode-name)
3121 (run-mode-hooks 'org-agenda-mode-hook)) 3125 (org-run-mode-hooks 'org-agenda-mode-hook))
3122 3126
3123(define-key org-agenda-mode-map [(tab)] 'org-agenda-goto) 3127(define-key org-agenda-mode-map [(tab)] 'org-agenda-goto)
3124(define-key org-agenda-mode-map [(return)] 'org-agenda-switch-to) 3128(define-key org-agenda-mode-map [(return)] 'org-agenda-switch-to)