|
From: | Michael Heerdegen |
Subject: | Re: Supplying DOC string in a `defun' using `defvar' |
Date: | Tue, 01 Jun 2021 16:31:12 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Christopher Dimech <dimech@gmx.com> writes: > > Try: > > > > (defvar my-doc "foobar") > > (defun (x) > > (:documentation my-doc) > > (+ x 42)) > > Have tried this but emacs is still saying "Not documented." Stefan typed too quickly, he forgot the function name in the defun - so it probably should be (defun my-fun (x) (:documentation my-doc) (+ x 42)) Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |