]> git.eshelyaron.com Git - emacs.git/commit
Improve docstring of cl-defstruct accessors
authorStefan Kangas <stefankangas@gmail.com>
Sun, 23 Mar 2025 23:33:37 +0000 (00:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 25 Mar 2025 18:17:41 +0000 (19:17 +0100)
commitb73230e8bd2a66f2a340583201c534b8097a6a31
tree58e836fcaef6a93ac76c91f13d7924d2800aa79d
parente9f45bb3a304ac389d394e88a229dbd34aadc535
Improve docstring of cl-defstruct accessors

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Improve generated
docstring by not leaking the internal CL-X argument name, preferring X
instead.  Set property 'document-generalized-variable', used below.
* lisp/help-fns.el (help-fns--generalized-variable): When function has
non-nil property 'document-generalized-variable', document it as a
generalized variable.

(cherry picked from commit 1b56e0f1694650c3c567b90e1ae3caa0bfea209e)
lisp/emacs-lisp/cl-macs.el
lisp/help-fns.el