From: Lars Ingebrigtsen Date: Sat, 2 Apr 2022 13:19:05 +0000 (+0200) Subject: Further tweaks to cl--generic-describe X-Git-Tag: emacs-29.0.90~1931^2~818 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=338f5667f46282f9b40c25bbf9704566069ec950;p=emacs.git Further tweaks to cl--generic-describe * lisp/emacs-lisp/cl-generic.el (cl--generic-describe): Further tweak the look of the implementation output. --- diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index 1e820adaff6..2ca84b019fc 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -1096,7 +1096,13 @@ MET-NAME is as returned by `cl--generic-load-hist-format'." (dolist (method (cl--generic-method-table generic)) (let* ((info (cl--generic-method-info method))) ;; FIXME: Add hyperlinks for the types as well. - (insert (format "%s%S" (nth 0 info) (cons function (nth 1 info)))) + (if (length> (nth 0 info) 0) + (insert (format "%s%S" (nth 0 info) + (let ((print-quoted nil)) + (nth 1 info)))) + ;; Make the non-":extra" bits look more like `C-h f' + ;; output. + (insert (format "%S" (cons function (nth 1 info))))) (let* ((met-name (cl--generic-load-hist-format function (cl--generic-method-qualifiers method)