From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#24706: 26.0.50;
Minor mode functions should do strict argument type checking
Date: Sun, 16 Oct 2016 17:45:58 +0200
Message-ID:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1476632968 9164 195.159.176.226 (16 Oct 2016 15:49:28 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 16 Oct 2016 15:49:28 +0000 (UTC)
To: 24706@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 16 17:49:24 2016
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bvngT-0008T7-Dk
for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Oct 2016 17:49:09 +0200
Original-Received: from localhost ([::1]:56778 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1bvngV-00014U-Jl
for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Oct 2016 11:49:11 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42578)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bvngP-00014O-5u
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:49:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bvngM-0004h9-2f
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:49:05 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:57080)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1bvngL-0004gv-Vw
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:49:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1bvngL-0003yF-Qf
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:49:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 16 Oct 2016 15:49:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 24706
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.147663292215234
(code B ref -1); Sun, 16 Oct 2016 15:49:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2016 15:48:42 +0000
Original-Received: from localhost ([127.0.0.1]:35036 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bvng2-0003xe-4B
for submit@debbugs.gnu.org; Sun, 16 Oct 2016 11:48:42 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:51556)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1bvng0-0003xN-V8
for submit@debbugs.gnu.org; Sun, 16 Oct 2016 11:48:41 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bvnfu-0004e1-Ps
for submit@debbugs.gnu.org; Sun, 16 Oct 2016 11:48:35 -0400
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46273)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1bvnfu-0004dx-Ma
for submit@debbugs.gnu.org; Sun, 16 Oct 2016 11:48:34 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42527)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bvnft-0000yN-BM
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:48:34 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bvnfq-0004dW-7m
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:48:33 -0400
Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:33691)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1bvnfp-0004dG-UN
for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 11:48:30 -0400
Original-Received: by mail-lf0-x22d.google.com with SMTP id x79so245204261lff.0
for ; Sun, 16 Oct 2016 08:48:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=upCABc9+aJxK1Nne1JCl4YXymcBn2MykgD+n/99Yw9U=;
b=C64dLjJ0nAgFoMF5gKTffonm33W/DZIhnC3qFza/VRjs0Fc1WwDuSNq2msPRmOxj4V
BWT4nK8lbt6eEEJS1lgRHNN1rSGfV7+ujJsiqhsXXvJ6lH/swfSB3EPBXsVjd9YmVy3F
wJxOHhEm3aW7nO2FeUXSZjCarkW/fukmEj+ZSGy8buW8u0b0ZWuGsCI7ZeM2+x4JXgHy
hsZURKIediHsf5Doetdekwt2j9usv8856yyrxd1pmcl6GnwnyCa6/TijvX/rIys4AwHx
lHEhUHGPBYvAB86eGKsiIKF5GXkRgk5F2abT+d9ZjBLNbxj/QPLf1YbVWLB9Gk9cTitK
KheQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=upCABc9+aJxK1Nne1JCl4YXymcBn2MykgD+n/99Yw9U=;
b=mXX1wJs9CvyRFVJ9AhKusknpND8s5jX+wNa24Zd4MWteZSLrFzL12EGfQyhufadJ6Z
xT7YLVlxQnBnw1ec6qMd6teu0vgtYzmabtJhoREAt61dZBOqC3v7b/31Epwoi0LLYlzq
y4p9Gn87k76lzia56+Sgx7paA/2Ygtw2YQUg9RtI1yMuCu2h0NQFnWyAegGi6mEmaF6G
oValkMVwZbZDYk9027AUcSW1qlbi2niJGfj5LuqdDkj/u2wk6n39FIb6nbdtGQb/jffD
ulWkfVwzqPVQ2ObKpvn36BTH7JpYxsUzF+tsrPJQkj/YKLKvk0vI17cUNvXqVJ4PpRmr
kGLw==
X-Gm-Message-State: AA6/9RnhdUVp7Ipcm9QOyq9+nGtQbhiivCKhSlDDEzPUa1G4/Rh4v4Wr22UKo1oRmvNYrw==
X-Received: by 10.28.100.139 with SMTP id y133mr1648991wmb.105.1476632907593;
Sun, 16 Oct 2016 08:48:27 -0700 (PDT)
Original-Received: from p (46.128.198.151.dynamic.cablesurf.de. [46.128.198.151])
by smtp.gmail.com with ESMTPSA id
ux6sm32120726wjb.18.2016.10.16.08.48.26 for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 16 Oct 2016 08:48:27 -0700 (PDT)
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-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
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.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.org gmane.emacs.bugs:124549
Archived-At:
After defining a minor mode with
(define-minor-mode foo-mode nil)
its docstring will be
"Toggle Foo mode on or off.
With a prefix argument ARG, enable Foo mode if ARG is
positive, and disable it otherwise. If called from Lisp, enable
the mode if ARG is omitted or nil, and toggle it if ARG is =E2=80=98toggle=
=E2=80=99."
This appears to indicate that
(foo-mode 'banana)
should disable foo-mode, but it enables it. I think minor modes should
simply not allow anything but integers and 'toggle for ARG, avoiding
this confusion.
In GNU Emacs 26.0.50.3 (x86_64-apple-darwin16.0.0, NS appkit-1504.00 Versio=
n 10.12 (Build 16A323))
of 2016-10-16 built on p
Repository revision: cf566b46a6cf85c6d54d0b0db80e32ed6ae8d1ca
Windowing system distributor 'Apple', version 10.3.1504
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Configured using:
'configure --with-modules --enable-checking
--enable-check-lisp-object-type --without-xml2'
Configured features:
RSVG IMAGEMAGICK DBUS NOTIFY ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS NS
MODULES
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-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
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize term/common-win 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 term/tty-colors 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 kqueue cocoa ns multi-tty
make-network-process emacs)
Memory information:
((conses 16 206734 11456)
(symbols 48 20333 0)
(miscs 40 50 157)
(strings 32 18351 5209)
(string-bytes 1 593891)
(vectors 16 35291)
(vector-slots 8 676180 5448)
(floats 8 183 64)
(intervals 56 219 0)
(buffers 976 12))