aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--org-maint.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/org-maint.el b/org-maint.el
index 947e3d9..8364133 100644
--- a/org-maint.el
+++ b/org-maint.el
@@ -19,6 +19,8 @@
;;; Code:
+(require 'org)
+
(defvar org-maint-emacs-dir "~/src/emacs/emacs/")
(defvar org-maint-org-dir "~/src/emacs/org-mode-devel/")
@@ -28,7 +30,8 @@ If APPLY is non-nil, use 'git apply' instead of 'git am'."
(interactive (list (or (and (use-region-p)
(buffer-substring-no-properties
(region-beginning) (region-end)))
- (magit-commit-at-point)
+ (and (fboundp 'magit-commit-at-point)
+ (magit-commit-at-point))
(read-string "Emacs commit: "))
current-prefix-arg))
(unless (and org-maint-org-dir org-maint-emacs-dir)