unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Richard Stallman <rms@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 22683@debbugs.gnu.org
Subject: bug#22683: 25.1.50; auto-composition-mode
Date: Fri, 24 Sep 2021 17:06:39 -0700	[thread overview]
Message-ID: <CADwFkmnD+RjiBaQD1sHg8bZTfvHheGPdR_-FA_yPxq9L36WBnw@mail.gmail.com> (raw)
In-Reply-To: <E1aVNDr-0007Vf-Ga@fencepost.gnu.org> (Richard Stallman's message of "Mon, 15 Feb 2016 12:46:07 -0500")

Richard Stallman <rms@gnu.org> writes:

> The doc string of auto-composition-mode says:
>
> ======================================================================
> With a prefix argument ARG, enable Auto Composition mode if ARG
> is positive, and disable it otherwise.  If called from Lisp,
> enable the mode if ARG is omitted or nil.
> ======================================================================
>
> The doc string suggests (but does not clearly say) that ARG present
> and non-nil disables the mode.
>
> In fact, using M-:, (auto-composition-mode t) enables the mode.
> (auto-composition-mode 0) disables the mode.
> (auto-composition-mode 1) enables it.
>
> It seems this calls for a doc string fix, or a code fix.

This text was recently changed in response to Bug#49843:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49843

The text now says now says:

,----
| This is a minor mode.  If called interactively, toggle the
| ‘Auto-Composition mode’ mode.  If the prefix argument is positive,
| enable the mode, and if it is zero or negative, disable the mode.
|
| If called from Lisp, toggle the mode if ARG is ‘toggle’.  Enable the
| mode if ARG is nil, omitted, or is a positive number.  Disable the
| mode if ARG is a negative number.
`----

Is that sufficiently clear?

It doesn't say what happens if ARG is zero, so perhaps the last sentence
above should be amended to say "negative number or zero".





  parent reply	other threads:[~2021-09-25  0:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15 17:46 bug#22683: 25.1.50; auto-composition-mode Richard Stallman
2016-02-15 19:50 ` Eli Zaretskii
2016-02-16 22:47   ` Richard Stallman
2016-02-17 19:54     ` Eli Zaretskii
2016-02-19 12:34       ` Richard Stallman
2016-02-19 15:25         ` Eli Zaretskii
2016-02-20 14:28           ` Richard Stallman
2016-02-20 14:44             ` Eli Zaretskii
2016-02-21 12:44               ` Richard Stallman
2021-09-25  0:06 ` Stefan Kangas [this message]
2021-09-25  1:11   ` Lars Ingebrigtsen
2021-09-25  1:35     ` bug#22683: [External] : " Drew Adams
2021-09-25  1:54     ` Stefan Kangas
2021-09-25  2:04       ` Lars Ingebrigtsen
2021-09-25  2:43         ` Stefan Kangas
2021-09-26 11:53   ` Richard Stallman
2021-09-26 12:46     ` Stefan Kangas
2021-09-26 20:27   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27  4:42     ` Eli Zaretskii
2021-09-27 14:09       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 14:34         ` Stefan Kangas

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=CADwFkmnD+RjiBaQD1sHg8bZTfvHheGPdR_-FA_yPxq9L36WBnw@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=22683@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rms@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 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).