From 2fe6538fe509b6972be987bf4cd0575e9a031417 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 9 Nov 2020 21:11:00 -0500 Subject: org-maint: Do proper loading/guarding of dependencies --- org-maint.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3