From 65f0f2fa251a7b18c15698460c499394b931d09d Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Thu, 4 Apr 2024 23:54:42 -0400 Subject: [PATCH] Include lambda type in describe-key output * lisp/help-fns.el (help-fns-function-description-header): Add case to describe lambda forms (Bug#70209). --- lisp/help-fns.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/help-fns.el b/lisp/help-fns.el index a291893e9a2..3a5984d5b84 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1102,6 +1102,8 @@ help-fns-function-description-header elts nil)) (setq elts (cdr-safe elts))) (concat beg (if is-full "keymap" "sparse keymap")))) + ((eq (car-safe def) 'lambda) + (concat beg "anonymous Lisp function")) (t "")))) (with-current-buffer standard-output (insert description)) -- 2.44.0