diff options
| author | Lars Ingebrigtsen | 2022-04-04 12:48:47 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-04 12:48:47 +0200 |
| commit | 773d4104a592fda4366d8db27d0307ee23de8bfe (patch) | |
| tree | 68c2c41f37749ff81d9f18cd9fd53d7a1f46ece4 | |
| parent | f365607bc059169e5aa9f98c8418661d6fc6477d (diff) | |
| download | emacs-773d4104a592fda4366d8db27d0307ee23de8bfe.tar.gz emacs-773d4104a592fda4366d8db27d0307ee23de8bfe.zip | |
Further fixes for cl--generic-describe and (function ...)
* lisp/emacs-lisp/cl-generic.el (cl--generic-describe): Fix the #'
problem for defmethods, too (bug#54628).
| -rw-r--r-- | lisp/emacs-lisp/cl-generic.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index 2ca84b019fc..179310c145b 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el | |||
| @@ -1096,13 +1096,12 @@ MET-NAME is as returned by `cl--generic-load-hist-format'." | |||
| 1096 | (dolist (method (cl--generic-method-table generic)) | 1096 | (dolist (method (cl--generic-method-table generic)) |
| 1097 | (let* ((info (cl--generic-method-info method))) | 1097 | (let* ((info (cl--generic-method-info method))) |
| 1098 | ;; FIXME: Add hyperlinks for the types as well. | 1098 | ;; FIXME: Add hyperlinks for the types as well. |
| 1099 | (if (length> (nth 0 info) 0) | 1099 | (let ((print-quoted nil)) |
| 1100 | (insert (format "%s%S" (nth 0 info) | 1100 | (if (length> (nth 0 info) 0) |
| 1101 | (let ((print-quoted nil)) | 1101 | (insert (format "%s%S" (nth 0 info) (nth 1 info))) |
| 1102 | (nth 1 info)))) | 1102 | ;; Make the non-":extra" bits look more like `C-h f' |
| 1103 | ;; Make the non-":extra" bits look more like `C-h f' | 1103 | ;; output. |
| 1104 | ;; output. | 1104 | (insert (format "%S" (cons function (nth 1 info)))))) |
| 1105 | (insert (format "%S" (cons function (nth 1 info))))) | ||
| 1106 | (let* ((met-name (cl--generic-load-hist-format | 1105 | (let* ((met-name (cl--generic-load-hist-format |
| 1107 | function | 1106 | function |
| 1108 | (cl--generic-method-qualifiers method) | 1107 | (cl--generic-method-qualifiers method) |