summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-28 17:21:14 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-28 17:21:14 -0500
commitc974467fe543466c37b5100005b170059ca508b3 (patch)
tree5d1f02e71b5062ca240707e0112d836cc9434e58
parentf7e286ab964a16dc30214a5d77602d77d4cdeeeb (diff)
downloadorg-mode-c974467fe543466c37b5100005b170059ca508b3.tar.gz
org-goto: Explicitly load org.el and org-refile.el
* lisp/org-goto.el: Require org.el and org-refile.el. org-goto.el depends on org.el and org-refile.el being loaded, and the autoloaded org-goto command may be called before org.el and org-refile.el are loaded (and an org-refile.el load won't be triggered just by visiting an Org file). Reported-by: Omar AntolĂ­n Camarena <omar@matem.unam.mx> Ref: https://orgmode.org/list/87h7pil2v5.fsf@matem.unam.mx
-rw-r--r--lisp/org-goto.el23
1 files changed, 2 insertions, 21 deletions
diff --git a/lisp/org-goto.el b/lisp/org-goto.el
index 5678669..93e6f94 100644
--- a/lisp/org-goto.el
+++ b/lisp/org-goto.el
@@ -22,27 +22,8 @@
;;; Code:
-(require 'org-macs)
-(require 'org-compat)
-
-(declare-function org-at-heading-p "org" (&optional ignored))
-(declare-function org-beginning-of-line "org" (&optional n))
-(declare-function org-defkey "org" (keymap key def))
-(declare-function org-mark-ring-push "org" (&optional pos buffer))
-(declare-function org-overview "org" ())
-(declare-function org-refile-check-position "org" (refile-pointer))
-(declare-function org-refile-get-location "org" (&optional prompt default-buffer new-nodes))
-(declare-function org-show-context "org" (&optional key))
-(declare-function org-show-set-visibility "org" (detail))
-
-(defvar org-complex-heading-regexp)
-(defvar org-startup-align-all-tables)
-(defvar org-startup-folded)
-(defvar org-startup-truncated)
-(defvar org-special-ctrl-a/e)
-(defvar org-refile-target-verify-function)
-(defvar org-refile-use-outline-path)
-(defvar org-refile-targets)
+(require 'org)
+(require 'org-refile)
(defvar org-goto-exit-command nil)
(defvar org-goto-map nil)