all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Aurelien Aptel <aaptel@suse.com>, emacs-devel@gnu.org
Subject: Re: Quoting t and nil in docstrings
Date: Thu, 07 Feb 2019 14:30:16 +0100	[thread overview]
Message-ID: <m2zhr7ohef.fsf@gmail.com> (raw)
In-Reply-To: <jwvzhr76959.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 07 Feb 2019 08:12:04 -0500")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>>     Revert "Fix typo in add-hook doc string"
> [...]
>> -This makes the hook buffer-local, and it makes it a member of the
>> +This makes the hook buffer-local, and it makes t a member of the
>
> This is as good an opportunity as any to question our long-standing
> convention that the symbols `nil` and `t` are treated specially in
> docstrings in the sense that we don't surround them with the customary
> `...'.
>
> FWIW, I don't find this exception to be beneficial here, nor in cases
> like:
>
>     `foo' means ...
>     `bar' means ...
>     nil   means ...
>     t     means ...
>
> Or when a sentence starts with "nil" (where the lack of capital letter
> looks like a typo).
>
> I think we could at least change our convention to say that nil and
> t don't have to be quoted rather than to say that they should not
> be quoted.

Aren't you supposed to say @code{t} in texinfo? That seems
inconsistent with not quoting in docstrings.

Robert



  reply	other threads:[~2019-02-07 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190207085733.4723.6852@vcs0.savannah.gnu.org>
     [not found] ` <20190207085734.B17CF2047A@vcs0.savannah.gnu.org>
2019-02-07 13:12   ` Quoting t and nil in docstrings (was: [Emacs-diffs] master b952385: Revert "Fix typo in add-hook doc string") Stefan Monnier
2019-02-07 13:30     ` Robert Pluim [this message]
2019-02-07 14:52     ` Drew Adams
2019-02-08  3:19     ` 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=m2zhr7ohef.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=aaptel@suse.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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.