unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Christopher Dimech <dimech@gmx.com>
Cc: 48779@debbugs.gnu.org
Subject: bug#48779: (:documentation mydoc) not working
Date: Tue, 01 Jun 2021 17:33:23 +0200	[thread overview]
Message-ID: <87wnrdbnwc.fsf@gnus.org> (raw)
In-Reply-To: <trinity-ec23a452-6d8d-4431-81e3-e8ca182a71b4-1622560992004@3c-app-mailcom-bs01> (Christopher Dimech's message of "Tue, 1 Jun 2021 17:23:12 +0200")

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





  reply	other threads:[~2021-06-01 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 15:23 bug#48779: (:documentation mydoc) not working Christopher Dimech
2021-06-01 15:33 ` Lars Ingebrigtsen [this message]
2021-06-01 15:47   ` bug#48779: [External] : " Drew Adams
2021-06-01 21:13   ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnrdbnwc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=48779@debbugs.gnu.org \
    --cc=dimech@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).