* bug#48779: (:documentation mydoc) not working
@ 2021-06-01 15:23 Christopher Dimech
2021-06-01 15:33 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Dimech @ 2021-06-01 15:23 UTC (permalink / raw)
To: 48779
I have the code below. Doing "C-h f aoe" gives
-------- help ---------
aoe is a Lisp function in ‘gungadin.el’.
(aoe X)
Not documented.
-------- code --------
(defvar mydoc "foobar")
(defun aoe (x)
(:documentation mydoc)
(+ x 42))
-------- code --------
----- Christopher Dimech
Society has became too quick to pass judgement and declare someone Persona Non-Grata,
the most extreme form of censure a country can bestow.
In a new era of destructive authoritarianism, I support Richard Stallman. Times of great
crisis are also times of great opportunity. I call upon you to make this struggle yours as well !
https://stallmansupport.org/ https://www.fsf.org/ https://www.gnu.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#48779: (:documentation mydoc) not working
2021-06-01 15:23 bug#48779: (:documentation mydoc) not working Christopher Dimech
@ 2021-06-01 15:33 ` Lars Ingebrigtsen
2021-06-01 15:47 ` bug#48779: [External] : " Drew Adams
2021-06-01 21:13 ` Christopher Dimech
0 siblings, 2 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-01 15:33 UTC (permalink / raw)
To: Christopher Dimech; +Cc: 48779
Christopher Dimech <dimech@gmx.com> writes:
> I have the code below. Doing "C-h f aoe" gives
>
> -------- help ---------
>
> aoe is a Lisp function in ‘gungadin.el’.
>
> (aoe X)
>
> Not documented.
>
> -------- code --------
>
> (defvar mydoc "foobar")
>
> (defun aoe (x)
> (:documentation mydoc)
> (+ x 42))
This undocumented feature only works in lexical-binding buffers.
And there's no need to post bug reports about things you're wondering
about, especially when you're also discussing this on other Emacs
mailing lists.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#48779: [External] : bug#48779: (:documentation mydoc) not working
2021-06-01 15:33 ` Lars Ingebrigtsen
@ 2021-06-01 15:47 ` Drew Adams
2021-06-01 21:13 ` Christopher Dimech
1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2021-06-01 15:47 UTC (permalink / raw)
To: Lars Ingebrigtsen, Christopher Dimech; +Cc: 48779@debbugs.gnu.org
> This undocumented feature only works in lexical-binding buffers.
My questions here would be:
1. Why is it undocumented?
2. Why does it work only for lexical-binding buffers?
___
:documentation is documented in the Elisp manual,
but only for `cl-defgeneric'.
(Grepping the Lisp source code shows there are :doc,
:doc-spec, and :documentation. :doc is documented
in the Elisp manual, in the context of defcustom.
:doc-spec seems to be documented in no manual.)
We don't document everything, of course. But should
:documentation be documented for defun, as well as
for cl-defgeneric?
Yes, the latter is an emulation of Common Lisp's
`defgeneric', which has :documentation. But defun
also has it now, apparently.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#48779: (:documentation mydoc) not working
2021-06-01 15:33 ` Lars Ingebrigtsen
2021-06-01 15:47 ` bug#48779: [External] : " Drew Adams
@ 2021-06-01 21:13 ` Christopher Dimech
1 sibling, 0 replies; 4+ messages in thread
From: Christopher Dimech @ 2021-06-01 21:13 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 48779
> Sent: Wednesday, June 02, 2021 at 3:33 AM
> From: "Lars Ingebrigtsen" <larsi@gnus.org>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: 48779@debbugs.gnu.org
> Subject: bug#48779: (:documentation mydoc) not working
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > I have the code below. Doing "C-h f aoe" gives
> >
> > -------- help ---------
> >
> > aoe is a Lisp function in ‘gungadin.el’.
> >
> > (aoe X)
> >
> > Not documented.
> >
> > -------- code --------
> >
> > (defvar mydoc "foobar")
> >
> > (defun aoe (x)
> > (:documentation mydoc)
> > (+ x 42))
>
> This undocumented feature only works in lexical-binding buffers.
>
> And there's no need to post bug reports about things you're wondering
> about, especially when you're also discussing this on other Emacs
> mailing lists.
I put it as it did seem a difficult problem that still remains unsolved.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-06-01 21:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-01 15:23 bug#48779: (:documentation mydoc) not working Christopher Dimech
2021-06-01 15:33 ` Lars Ingebrigtsen
2021-06-01 15:47 ` bug#48779: [External] : " Drew Adams
2021-06-01 21:13 ` Christopher Dimech
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.