aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2015-08-09 18:28:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2015-08-09 18:28:00 +0200
commitdff3672b8e7e3bf706e98f21d5a1e4e29639a47d (patch)
treed7f7b7d199cd81df6b9ac26c26f9ea4629b81cd5 /lisp
parente19d1c56edf1323cdddc2907ddd4fda101205a8a (diff)
remove magit-mode-bury-buffer-hook
No longer run the undeclared, and by now unused hook `magit-mode-bury-buffer-hook' in `magit-mode-bury-buffer'. It was only used by code related to the concept of "the marked commit" which has been removed a long time ago. It is also very unlikely that some third-party code uses it.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/magit-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 757e53d..b227aea 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -526,8 +526,7 @@ the buffer."
(set-window-configuration winconf)
(when (buffer-live-p buffer)
(with-current-buffer buffer
- (setq magit-previous-window-configuration nil)))))
- (run-hook-with-args 'magit-mode-bury-buffer-hook buffer)))
+ (setq magit-previous-window-configuration nil)))))))
(defun magit-rename-buffer (&optional newname)
"Rename the current buffer, so that Magit won't reuse it.