aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2015-08-22 15:23:03 +0200
committerJonas Bernoulli <jonas@bernoul.li>2015-08-22 15:23:03 +0200
commitfc7056445fe11ec3db3f469a86462d8ba32a640e (patch)
tree3f52a472a124a6ff71ee276269b43ac70b507cde /lisp
parente12db85d4c658df11bd60a54fc46b48d8827ef09 (diff)
magit-refresh-popup-buffer-hook: define explicitly and document
Re #2198.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/magit-popup.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/magit-popup.el b/lisp/magit-popup.el
index 3d23008..a2030d3 100644
--- a/lisp/magit-popup.el
+++ b/lisp/magit-popup.el
@@ -951,6 +951,12 @@ in the popup."
(funcall mode)
(setq magit-popup-previous-winconf winconf)))
+(defvar magit-refresh-popup-buffer-hook nil
+ "Hook run by `magit-refresh-popup-buffer'.
+The hook is run right after inserting the representation of the
+popup events but before optionally inserting the representation
+of events shared by all popups and before point is adjusted.")
+
(defun magit-refresh-popup-buffer ()
(let* ((inhibit-read-only t)
(button (button-at (point)))