|
From: | Michael Heerdegen |
Subject: | Re: Supplying DOC string in a `defun' using `defvar' |
Date: | Tue, 01 Jun 2021 02:40:01 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jean Louis <bugs@gnu.support> writes: > (defvar my-doc "Hello there") > > (defmacro my-fun () > `(defun my-fun () > ,my-doc > (ignore))) Would you want the body to be stored in another defvar? Then your code would be even smaller. I'm only partially joking, actually, not at all - is the function's documentation for your code's readers really that much less important than its code? Maybe it's even the other way round? Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |