[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Supplying DOC string in a `defun' using `defvar'
From: |
Christopher Dimech |
Subject: |
Supplying DOC string in a `defun' using `defvar' |
Date: |
Tue, 1 Jun 2021 16:41:39 +0200 |
> Sent: Wednesday, June 02, 2021 at 2:31 AM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Supplying DOC string in a `defun' using `defvar'
>
> 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.
Had noticed what happened, but (:documentation my-doc) is not taking effect and
get "function not documented".
>
- Supplying DOC string in a `defun' using `defvar', Christopher Dimech, 2021/06/01
- Re: Supplying DOC string in a `defun' using `defvar', Michael Heerdegen, 2021/06/01
- Supplying DOC string in a `defun' using `defvar',
Christopher Dimech <=
- RE: [External] : Supplying DOC string in a `defun' using `defvar', Drew Adams, 2021/06/01
- [External] : Supplying DOC string in a `defun' using `defvar', Christopher Dimech, 2021/06/01
- Re: [External] : Supplying DOC string in a `defun' using `defvar', Stefan Monnier, 2021/06/01
- [External] : Supplying DOC string in a `defun' using `defvar', Christopher Dimech, 2021/06/01
- Re: [External] : Supplying DOC string in a `defun' using `defvar', Eli Zaretskii, 2021/06/01
- [External] : Supplying DOC string in a `defun' using `defvar', Christopher Dimech, 2021/06/01
- Re: [External] : Supplying DOC string in a `defun' using `defvar', Stefan Monnier, 2021/06/01
- Re: [External] : Supplying DOC string in a `defun' using `defvar', Michael Heerdegen, 2021/06/02
- [External] : Supplying DOC string in a `defun' using `defvar', Christopher Dimech, 2021/06/02
- Re: [External] : Supplying DOC string in a `defun' using `defvar', Jean Louis, 2021/06/03