[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit ccb0de02ad 01/12: magit--disable-save-buffers:
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit ccb0de02ad 01/12: magit--disable-save-buffers: Renamed variable |
Date: |
Fri, 13 May 2022 10:58:10 -0400 (EDT) |
branch: elpa/git-commit
commit ccb0de02adf314c19bd76959d8c2d885639f0c99
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit--disable-save-buffers: Renamed variable
---
lisp/git-rebase.el | 2 +-
lisp/magit-mode.el | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lisp/git-rebase.el b/lisp/git-rebase.el
index 17f1d267e3..fa75c1903f 100644
--- a/lisp/git-rebase.el
+++ b/lisp/git-rebase.el
@@ -636,7 +636,7 @@ Like `undo' but works in read-only buffers."
(undo arg)))
(defun git-rebase--show-commit (&optional scroll)
- (let ((disable-magit-save-buffers t))
+ (let ((magit--disable-save-buffers t))
(save-excursion
(goto-char (line-beginning-position))
(--if-let (with-slots (action-type target) (git-rebase-current-line)
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 935f0ee23d..e72e425faa 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -1146,10 +1146,10 @@ Run hooks `magit-pre-refresh-hook' and
`magit-post-refresh-hook'."
;;; Save File-Visiting Buffers
-(defvar disable-magit-save-buffers nil)
+(defvar magit--disable-save-buffers nil)
(defun magit-pre-command-hook ()
- (setq disable-magit-save-buffers nil))
+ (setq magit--disable-save-buffers nil))
(add-hook 'pre-command-hook #'magit-pre-command-hook)
(defvar magit-after-save-refresh-buffers nil)
@@ -1175,7 +1175,7 @@ Note that refreshing a Magit buffer is done by
re-creating its
contents from scratch, which can be slow in large repositories.
If you are not satisfied with Magit's performance, then you
should obviously not add this function to that hook."
- (when (and (not disable-magit-save-buffers)
+ (when (and (not magit--disable-save-buffers)
(magit-inside-worktree-p t))
(--when-let (ignore-errors (magit-get-mode-buffer 'magit-status-mode))
(add-to-list 'magit-after-save-refresh-buffers it)
@@ -1187,8 +1187,8 @@ Do so if `magit-save-repository-buffers' is non-nil. You
should
not remove this from any hooks, instead set that variable to nil
if you so desire."
(when (and magit-save-repository-buffers
- (not disable-magit-save-buffers))
- (setq disable-magit-save-buffers t)
+ (not magit--disable-save-buffers))
+ (setq magit--disable-save-buffers t)
(let ((msg (current-message)))
(magit-save-repository-buffers
(eq magit-save-repository-buffers 'dontask))
- [nongnu] elpa/git-commit updated (aff4180479 -> 8269af107f), ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 466bf542b0 02/12: Remove unnecessary declare-function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 91e6698435 10/12: Avoid loading bookmark upfront, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit ccb0de02ad 01/12: magit--disable-save-buffers: Renamed variable,
ELPA Syncer <=
- [nongnu] elpa/git-commit c42b09f987 04/12: magit-section-get-relative-position: Rename and move, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 69327510e2 07/12: magit-section-goto-successor: Cosmetics, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 7c45ae83ac 08/12: Add magit-process-unset-mode-line-error-status to hook, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 67352a64b5 11/12: magit--toplevel-safe: New function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 8269af107f 12/12: magit-generate-new-buffer: Determine appropriate default-directory, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 208dbd5689 06/12: magit-section-goto-successor: Define as generic function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 8ea1df1cd0 03/12: Wrap git-commit-mode with bound-and-true-p, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit e733c8d1aa 05/12: magit-section-get-relative-position: Define as generic function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 2276f6bcce 09/12: Move core bookmark support to magit-mode.el, ELPA Syncer, 2022/05/13