branch: elpa/git-commit commit ce29c373b9cf43a3b2238a0545c7bfcd4962a674 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-section.el: Move internal variables to beginning of file This avoids a function declaration. --- lisp/magit-section.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lisp/magit-section.el b/lisp/magit-section.el index 239b3f4637..318a774301 100644 --- a/lisp/magit-section.el +++ b/lisp/magit-section.el @@ -50,8 +50,6 @@ (eval-when-compile (require 'benchmark)) -(defvar magit-section-highlight-force-update) - ;;; Hooks (defvar magit-section-movement-hook nil @@ -264,6 +262,15 @@ no effect. This also has no effect for Emacs >= 28, where :group 'magit-section :type 'boolean) +;;; Variables + +(defvar-local magit-section-pre-command-region-p nil) +(defvar-local magit-section-pre-command-section nil) +(defvar-local magit-section-highlight-force-update nil) +(defvar-local magit-section-highlight-overlays nil) +(defvar-local magit-section-highlighted-sections nil) +(defvar-local magit-section-unhighlight-sections nil) + ;;; Faces (defgroup magit-section-faces nil @@ -1571,13 +1578,6 @@ evaluated its BODY. Admittedly that's a bit of a hack." ;;; Highlight -(defvar-local magit-section-pre-command-region-p nil) -(defvar-local magit-section-pre-command-section nil) -(defvar-local magit-section-highlight-force-update nil) -(defvar-local magit-section-highlight-overlays nil) -(defvar-local magit-section-highlighted-sections nil) -(defvar-local magit-section-unhighlight-sections nil) - (defun magit-section-pre-command-hook () (when (and (not (bound-and-true-p transient--prefix)) (or magit--context-menu-buffer