diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-11-09 21:11:00 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-11-09 21:39:07 -0500 |
commit | 2fe6538fe509b6972be987bf4cd0575e9a031417 (patch) | |
tree | 2dc837aa27b28b85cc5d373b139dd129730c8691 | |
parent | 5d08d4e24b8c9c569a82e4540135b3a0fe5a093e (diff) | |
download | orgmode-backport-notes-2fe6538fe509b6972be987bf4cd0575e9a031417.tar.gz |
org-maint: Do proper loading/guarding of dependencies
-rw-r--r-- | org-maint.el | 5 |
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) |