From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: alexander.pohoyda@gmx.net, emacs-devel@gnu.org
Subject: Re: Documentation style
Date: Fri, 15 Oct 2004 15:40:33 -0400 [thread overview]
Message-ID: <jwv3c0fn5ds.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200410151840.i9FIeit09642@raven.dms.auburn.edu> (Luc Teirlinck's message of "Fri, 15 Oct 2004 13:40:44 -0500 (CDT)")
> I re-read the Documentation section in the manual, but didn't
> find the answer.
> Is there a reason to document variables like this:
> (defvar abcd nil "\
> *Some variable..")
> or is it *fully* equivalent to this:
> (defvar abcd nil
> "Some variable..")
> The answer is at the end of `(elisp)Autoload':
> The backslash and newline immediately following the double-quote are a
> convention used only in the preloaded uncompiled Lisp files such as
> `loaddefs.el'; they tell `make-docfile' to put the documentation
> string in the `etc/DOC' file. *Note Building Emacs::. See also the
> commentary in `lib-src/make-docfile.c'.
Yup, and it has a corresponding piece of code in lread.c such that if we
read such a string before we've dumped Emacs, the reader returns 0 instead
of returning the string (because it assumes that this is a docstring that
will be later on filled from the DOC file by Snarf-documentation).
I've always disliked this kludge. We should probably strip make-docfile.c
of all the elisp handling and instead we should fill the DOC while dumping
Emacs (i.e. functions like `defun' and `autoload' should add the docstring
to the DOC file), so the recognition of docstrings and their replacement by
a reference to the DOC file are done at the same place and are thus known to
be correct.
Stefan
next prev parent reply other threads:[~2004-10-15 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 16:30 Documentation style Alexander Pohoyda
2004-10-15 18:40 ` Luc Teirlinck
2004-10-15 19:40 ` Stefan Monnier [this message]
2004-10-16 13:52 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv3c0fn5ds.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=alexander.pohoyda@gmx.net \
--cc=emacs-devel@gnu.org \
/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 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.