Skip to content

Commit 6a30ef2

Browse files
committed
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).
1 parent b196a05 commit 6a30ef2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lisp/org.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4721,6 +4721,10 @@ This is for getting out of special buffers like capture.")
47214721
(defvar org-element-use-cache); Defined in org-element.el
47224722
(defvar org-mode-loading nil
47234723
"Non-nil during Org mode initialisation.")
4724+
4725+
(defvar org-agenda-file-menu-enabled t
4726+
"When non-nil, refresh Agenda files in Org menu when loading Org.")
4727+
47244728
;;;###autoload
47254729
(define-derived-mode org-mode outline-mode "Org"
47264730
"Outline-based notes management and organizer, alias
@@ -18121,9 +18125,6 @@ Your bug report will be posted to the Org mailing list.
1812118125
(when (re-search-backward "^\\(Subject: \\)Org mode version \\(.*?\\);[ \t]*\\(.*\\)" nil t)
1812218126
(replace-match "\\1[BUG] \\3 [\\2]")))))
1812318127

18124-
(defvar org-agenda-file-menu-enabled t
18125-
"When non-nil, refresh Agenda files in Org menu when loading Org.")
18126-
1812718128
(defun org-install-agenda-files-menu ()
1812818129
"Install agenda file menu."
1812918130
(let ((bl (buffer-list)))

0 commit comments

Comments
 (0)