help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Supplying DOC string in a `defun' using `defvar'


From: Drew Adams
Subject: RE: [External] : Supplying DOC string in a `defun' using `defvar'
Date: Mon, 31 May 2021 23:20:40 +0000

> Can the DOC string in a `defun' be supplied using a `defvar'?

In a `defun'?  No.  But you can do it this way:

(let ((toto "WHAT?!!!!"))
  (put 'bar 'function-documentation toto))

(describe-function 'bar)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]