From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#22683: 25.1.50; auto-composition-mode Date: Fri, 24 Sep 2021 17:06:39 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14276"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 22683@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 25 02:07:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTvDm-0003Ng-0z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 02:07:14 +0200 Original-Received: from localhost ([::1]:56648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTvDj-0001Ui-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 20:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTvDb-0001US-5S for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 20:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTvDa-0003hF-JA for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 20:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTvDa-0005Nz-E7 for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 20:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Sep 2021 00:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22683 X-GNU-PR-Package: emacs Original-Received: via spool by 22683-submit@debbugs.gnu.org id=B22683.163252840820680 (code B ref 22683); Sat, 25 Sep 2021 00:07:02 +0000 Original-Received: (at 22683) by debbugs.gnu.org; 25 Sep 2021 00:06:48 +0000 Original-Received: from localhost ([127.0.0.1]:59559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvDM-0005NU-L5 for submit@debbugs.gnu.org; Fri, 24 Sep 2021 20:06:48 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:33621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvDJ-0005N3-Fa for 22683@debbugs.gnu.org; Fri, 24 Sep 2021 20:06:47 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id y186so29575pgd.0 for <22683@debbugs.gnu.org>; Fri, 24 Sep 2021 17:06:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=6KTj5uJ3iUaFbTJnGb4YulsBTt99+Lsdw9qrJ7MPy0Q=; b=Ja4U60i3gSzP38SXYpkgZl+tyhUQGXpPjh3NQdnO5tfhNXatLeRinmtymkNFVLEkVO HIMdf99VCJK3NLCFHqgfzFwMkZItFo/TkW2pTQFCT/FXxC1UcBBUB88G9Z5gQ4s2/GmC R2oteygi+OFt6nZktD0ujjH/sfjWr71+Drh4y/LVJrB6Nbg+nUUy6WbDkKtTfBOdrhRH tWAtpb58Rzcoo7Yd0NjrCWYAyqHKNWWRTj/Snuq0gdLaUY1mnirAe03ovY1OWTJwEJrA OfLX1/dUuI0ga6j59uLMdI7dgWnGYjq7ufG0dnHTbqqwVi1PLTqe6iaifoOxYxPDrLyC h7tA== X-Gm-Message-State: AOAM530P7RT88h4dRe3nR3I0BYZLe3kLLRDGFZ5uFQW6lA7HMb3UhCFd PltLZSKS98XsO39RCv5EyBA126HHApXPFImxsis= X-Google-Smtp-Source: ABdhPJzVKj0NO8p284IH7eoc4Ia5sLfCmYeAe/6eRTTkNbTboMmnBMUl7EZVQ3tnnaO2FKdNBkLD0uNklAX1Z8g8ctU= X-Received: by 2002:aa7:9e90:0:b0:43f:2abb:a504 with SMTP id p16-20020aa79e90000000b0043f2abba504mr12559785pfq.35.1632528399887; Fri, 24 Sep 2021 17:06:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Sep 2021 17:06:39 -0700 In-Reply-To: (Richard Stallman's message of "Mon, 15 Feb 2016 12:46:07 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215355 Archived-At: Richard Stallman writes: > The doc string of auto-composition-mode says: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 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=3D49843 The text now says now says: ,---- | This is a minor mode. If called interactively, toggle the | =E2=80=98Auto-Composition mode=E2=80=99 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 =E2=80=98toggle=E2=80=99. = 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".