GNU bug report logs - #22683
25.1.50; auto-composition-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: rms@HIDDEN; dated Mon, 15 Feb 2016 17:47:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 22683 <at> debbugs.gnu.org:


Received: (at 22683) by debbugs.gnu.org; 16 Feb 2016 22:47:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 16 17:47:16 2016
Received: from localhost ([127.0.0.1]:38578 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aVoOp-0002Wf-O2
	for submit <at> debbugs.gnu.org; Tue, 16 Feb 2016 17:47:15 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37263)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rms@HIDDEN>) id 1aVoOo-0002WQ-5P
 for 22683 <at> debbugs.gnu.org; Tue, 16 Feb 2016 17:47:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1aVoOi-0003mA-AV
 for 22683 <at> debbugs.gnu.org; Tue, 16 Feb 2016 17:47:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36419)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aVoOi-0003m6-72
 for 22683 <at> debbugs.gnu.org; Tue, 16 Feb 2016 17:47:08 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1aVoOh-0000fj-IN; Tue, 16 Feb 2016 17:47:07 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <83twl9wy6e.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 15
 Feb 2016 21:50:17 +0200)
Subject: Re: bug#22683: 25.1.50; auto-composition-mode
References: <E1aVNDr-0007Vf-Ga@HIDDEN> <83twl9wy6e.fsf@HIDDEN>
Message-Id: <E1aVoOh-0000fj-IN@HIDDEN>
Date: Tue, 16 Feb 2016 17:47:07 -0500
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22683
Cc: 22683 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

The words

  >   If called from Lisp,
  > > enable the mode if ARG is omitted or nil.

seem to mean, "If the arg is omitted or nil, enable the mode;
otherwise disable it."  I was surprised by the actual behavior.

Does that text come from a macro?


-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22683; Package emacs. Full text available.

Message received at 22683 <at> debbugs.gnu.org:


Received: (at 22683) by debbugs.gnu.org; 15 Feb 2016 19:50:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 15 14:50:32 2016
Received: from localhost ([127.0.0.1]:40470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aVPAG-0001nE-Bm
	for submit <at> debbugs.gnu.org; Mon, 15 Feb 2016 14:50:32 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48761)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aVPAF-0001mz-5n
 for 22683 <at> debbugs.gnu.org; Mon, 15 Feb 2016 14:50:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aVPA5-0001QR-8t
 for 22683 <at> debbugs.gnu.org; Mon, 15 Feb 2016 14:50:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58411)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aVPA5-0001QN-5X
 for 22683 <at> debbugs.gnu.org; Mon, 15 Feb 2016 14:50:21 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2114
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aVP9t-0006HI-Vt; Mon, 15 Feb 2016 14:50:10 -0500
Date: Mon, 15 Feb 2016 21:50:17 +0200
Message-Id: <83twl9wy6e.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rms@HIDDEN
In-reply-to: <E1aVNDr-0007Vf-Ga@HIDDEN> (message from Richard
 Stallman on Mon, 15 Feb 2016 12:46:07 -0500)
Subject: Re: bug#22683: 25.1.50; auto-composition-mode
References: <E1aVNDr-0007Vf-Ga@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22683
Cc: 22683 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Richard Stallman <rms@HIDDEN>
> Date: Mon, 15 Feb 2016 12:46:07 -0500
> 
> 
> 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.

We say these things for every mode, so this issue is not specific to
this particular mode.

I believe the fix is to add "also" to the last sentence (as in "also
enable the mode if ..."), but is this really so serious to require
changes in hundreds of doc strings?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22683; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Feb 2016 17:46:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 15 12:46:20 2016
Received: from localhost ([127.0.0.1]:40387 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aVNE4-0005QG-CD
	for submit <at> debbugs.gnu.org; Mon, 15 Feb 2016 12:46:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45046)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rms@HIDDEN>) id 1aVNE1-0005Po-B2
 for submit <at> debbugs.gnu.org; Mon, 15 Feb 2016 12:46:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1aVNDv-0004oD-1E
 for submit <at> debbugs.gnu.org; Mon, 15 Feb 2016 12:46:12 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38233)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aVNDu-0004o6-TR
 for submit <at> debbugs.gnu.org; Mon, 15 Feb 2016 12:46:10 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35980)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aVNDt-0004bh-Kl
 for bug-gnu-emacs@HIDDEN; Mon, 15 Feb 2016 12:46:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1aVNDs-0004mL-Ao
 for bug-gnu-emacs@HIDDEN; Mon, 15 Feb 2016 12:46:09 -0500
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56016)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aVNDr-0004mF-WB
 for bug-gnu-emacs@HIDDEN; Mon, 15 Feb 2016 12:46:08 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1aVNDr-0007Vf-Ga; Mon, 15 Feb 2016 12:46:07 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.1.50; auto-composition-mode
Message-Id: <E1aVNDr-0007Vf-Ga@HIDDEN>
Date: Mon, 15 Feb 2016 12:46:07 -0500
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


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.

Maybe this command is generated by a macro; the macro may
need fixing too.




In GNU Emacs 25.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23)
 of 2015-12-25
Repository revision: 608b15d59d08ff7054fdc5458d1d2ae54dd043e2
System Description:	Trisquel GNU/Linux 7.0, Belenos

Configured using:
 'configure 'CFLAGS=-g -O0''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent messages:
Type C-x 1 to delete the help window.
Mark activated
nil
Making completion list...

Mark set
t

Global-Auto-Composition mode disabled in current buffer


Load-path shadows:
None found.

Features:
(shadow emacsbug eieio-opt speedbar sb-image ezimage dframe find-func
compare-w thingatpt xref project parse-time vc-cvs sgml-mode cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs diff-mode easy-mmode diff pp wid-edit descr-text
texinfo jka-compr battery dired-aux novice two-column kmacro
iso-transl cal-move cal-menu calendar cal-loaddefs epa-mail quail
dabbrev character-fold misearch multi-isearch shell pcomplete grep
compile comint ansi-color ring ispell rmailout rmailkwd epa derived
epg rmailsum qp mailalias url-util shr dom subr-x browse-url rmailmm
message sendmail format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils dired
dired-loaddefs seq t-mouse view paren cus-start cus-load advice
finder-inf package epg-config url-handlers url-parse auth-source
cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core
cl-macs gv eieio-loaddefs gnus-util time-date mm-util help-fns
help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr password-cache
url-vars mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 8 542567 115415)
 (symbols 24 40134 5)
 (miscs 20 12330 4972)
 (strings 16 69462 28818)
 (string-bytes 1 2197955)
 (vectors 8 35255)
 (vector-slots 4 1594101 32882)
 (floats 8 333 700)
 (intervals 28 108039 6936)
 (buffers 520 408)
 (heap 1024 34295 2078))
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Acknowledgement sent to rms@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#22683; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 16 Feb 2016 23:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.