浏览代码

org.el: Move definition to silence warning

* lisp/org.el (org-agenda-file-menu-enabled): Move definition upstream
of its first use.

'make single' flags this (and so would the Emacs repo's build).
Kyle Meyer 2 年之前
父节点
当前提交
6a30ef2781
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      lisp/org.el

+ 4 - 3
lisp/org.el

@@ -4721,6 +4721,10 @@ This is for getting out of special buffers like capture.")
 (defvar org-element-use-cache); Defined in org-element.el
 (defvar org-mode-loading nil
   "Non-nil during Org mode initialisation.")
+
+(defvar org-agenda-file-menu-enabled t
+  "When non-nil, refresh Agenda files in Org menu when loading Org.")
+
 ;;;###autoload
 (define-derived-mode org-mode outline-mode "Org"
   "Outline-based notes management and organizer, alias
@@ -18121,9 +18125,6 @@ Your bug report will be posted to the Org mailing list.
       (when (re-search-backward "^\\(Subject: \\)Org mode version \\(.*?\\);[ \t]*\\(.*\\)" nil t)
 	(replace-match "\\1[BUG] \\3 [\\2]")))))
 
-(defvar org-agenda-file-menu-enabled t
-  "When non-nil, refresh Agenda files in Org menu when loading Org.")
-
 (defun org-install-agenda-files-menu ()
   "Install agenda file menu."
   (let ((bl (buffer-list)))