aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2022-05-13 16:29:01 +0200
committerJonas Bernoulli <jonas@bernoul.li>2022-05-13 16:29:01 +0200
commitccb0de02adf314c19bd76959d8c2d885639f0c99 (patch)
treeaddbc83b70f1b62b61f3a89ab5e191891eb5188b /lisp
parentaff4180479092b38fae0401f043b119bb2ea7d9f (diff)
magit--disable-save-buffers: Renamed variable
Diffstat (limited to 'lisp')
-rw-r--r--lisp/git-rebase.el2
-rw-r--r--lisp/magit-mode.el10
2 files changed, 6 insertions, 6 deletions
diff --git a/lisp/git-rebase.el b/lisp/git-rebase.el
index 17f1d26..fa75c19 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 935f0ee..e72e425 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))