[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit ce29c373b9 08/13: magit-section.el: Move intern
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit ce29c373b9 08/13: magit-section.el: Move internal variables to beginning of file |
Date: |
Fri, 6 May 2022 15:58:12 -0400 (EDT) |
branch: elpa/git-commit
commit ce29c373b9cf43a3b2238a0545c7bfcd4962a674
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@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
- [nongnu] elpa/git-commit updated (ea1d09e0a7 -> 6c98ba3dac), ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit d176c2a278 01/13: magit-custom-initialize-reset: Improve docstring, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit ec64fa4d63 06/13: magit-refresh: No longer hardcode magit-auto-revert-buffers, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 2d679dff02 10/13: Move definition of magit-tramp-process-environment, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit e35f2b9be7 09/13: magit-blame.el: Move internal variables to beginning of file, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 42a954adb4 03/13: Remove unnecessary variable declaration, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit ce29c373b9 08/13: magit-section.el: Move internal variables to beginning of file,
ELPA Syncer <=
- [nongnu] elpa/git-commit 632536ca9c 07/13: Add magit-status-goto-initial-section to magit-create-buffer-hook, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit cc07643bb1 12/13: Use fboundp instead of declare-function for magit-blame functions, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 6c98ba3dac 13/13: Use fboundp instead of requiring magit-wip, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 16aa4340c8 02/13: Add missing section headings, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 85e169736e 05/13: magit-refresh: No longer hardcode dedicated post-command hooks, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit c3268fc69d 04/13: git-commit.el: Rearrange dependencies, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit f365aa48c4 11/13: Move shared infix argument magit:--gpg-sign to magit.el, ELPA Syncer, 2022/05/06