all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: emacs-devel@gnu.org
Cc: Aurelien Aptel <aaptel@suse.com>
Subject: Quoting t and nil in docstrings (was: [Emacs-diffs] master b952385: Revert "Fix typo in add-hook doc string")
Date: Thu, 07 Feb 2019 08:12:04 -0500	[thread overview]
Message-ID: <jwvzhr76959.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20190207085734.B17CF2047A@vcs0.savannah.gnu.org> ("Aurélien Aptel"'s message of "Thu,  7 Feb 2019 03:57:34 -0500 (EST)")

>     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.


        Stefan



       reply	other threads:[~2019-02-07 13:12 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   ` Stefan Monnier [this message]
2019-02-07 13:30     ` Quoting t and nil in docstrings Robert Pluim
2019-02-07 14:52     ` Quoting t and nil in docstrings (was: [Emacs-diffs] master b952385: Revert "Fix typo in add-hook doc string") 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=jwvzhr76959.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=aaptel@suse.com \
    --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.