Substitute some customization etc. doc strings
These changes apply substitute-command-keys to some doc strings that were going through untranslated when creating customization or other widgets. * lisp/cus-edit.el (custom-group-value-create): * lisp/wid-edit.el (widget-default-create): (widget-push-button-value-create): Treat the widget tag as a doc string. * lisp/emacs-lisp/cl-extra.el (cl--describe-class-slot): Treat the :documentation value as a doc string. * lisp/wid-edit.el (widget-choose): Treat the choice names as doc strings. (widget-default-create): Treat the :doc value as a doc string. (widget-toggle-value-create): Treat the :on and :off values as doc strings. (widget-documentation-string-value-create): Substitute the doc string.
This commit is contained in:
parent
543bb9bc20
commit
bd3b426ebb
3 changed files with 12 additions and 8 deletions
|
@ -831,7 +831,9 @@ including `cl-block' and `cl-eval-when'."
|
|||
(prin1-to-string
|
||||
(alist-get :printer (cl--slot-descriptor-props slot)))))
|
||||
(when (alist-get :documentation (cl--slot-descriptor-props slot))
|
||||
(concat "\n " (alist-get :documentation (cl--slot-descriptor-props slot))
|
||||
(concat "\n "
|
||||
(substitute-command-keys
|
||||
(alist-get :documentation (cl--slot-descriptor-props slot)))
|
||||
"\n")))
|
||||
"\n"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue