summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/transient.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/transient.el b/lisp/transient.el
index 94e90e2..a6c9a85 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -5314,7 +5314,8 @@ Select the help window, and make the help buffer current and return it."
(cons (lambda () (setq buffer (current-buffer)))
temp-buffer-window-setup-hook)))
(describe-function fn)
- (set-buffer buffer)))
+ (when buffer
+ (set-buffer buffer))))
(defun transient--show-manual (manual)
(info manual))