From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#35767: 26.1; byte compiler lost warning about calling define-key with wrong number of arguments Date: Thu, 16 May 2019 16:24:21 -0500 Message-ID: <87pnoidrei.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="18530"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 27.0.50 To: 35767@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 16 23:25:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRNsF-0004g9-Q6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 23:25:11 +0200 Original-Received: from localhost ([127.0.0.1]:36882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRNsE-0001Q1-QY for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 17:25:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRNs8-0001Pq-Pu for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:25:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRNs8-0007T6-0y for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:25:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRNs7-0007Sz-TX for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRNs5-0004mR-OK for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:25:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2019 21:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35767 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155804188018341 (code B ref -1); Thu, 16 May 2019 21:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2019 21:24:40 +0000 Original-Received: from localhost ([127.0.0.1]:56638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRNrk-0004ll-92 for submit@debbugs.gnu.org; Thu, 16 May 2019 17:24:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRNri-0004lY-Nc for submit@debbugs.gnu.org; Thu, 16 May 2019 17:24:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRNrd-00070H-KN for submit@debbugs.gnu.org; Thu, 16 May 2019 17:24:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRNrc-0001LQ-N5 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:24:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRNrb-0006wn-1J for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:24:32 -0400 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:34055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRNra-0006oV-5X for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 17:24:30 -0400 Original-Received: by mail-ot1-x329.google.com with SMTP id l17so4865425otq.1 for ; Thu, 16 May 2019 14:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=ThQDaIt42oaRUI40k7u7o2cqlRUaOykDOTbA3GPHyjQ=; b=D5V+FZCOaAX4rwGMykKL/pSxgyF5OET/088inK4BTrPKWcprmo3FaLwnd83b3R1+MW Z2B/kmTAyV/VzRKyscCShivtO8giU20SqXJl2INsnHS5667BNLsAJGmAlYmZXk2P/FFu HBRYxPQxdaXDUMKm7XoZmGVEo4hp4ZafKcwmtnmBLQW78lgcru6m1w4jpSjpy4aDluvZ sRrcUdytr1eXspQGC5sHS6ySRw73SORQcZXsFizSbYv7ju4RYwfF0K3jxeYaOYmmExdL eUMpygtq6tZaMzU4wWnfjwTExfrItzF+/+KvIhpP5bY4gLOD/+oG68OARXKQ4rOjN6Fy TsOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=ThQDaIt42oaRUI40k7u7o2cqlRUaOykDOTbA3GPHyjQ=; b=IsV9u1S5Ev6jIfj7y6w8pM0dZ8xHuOFmTplnfaMlENiKpOi54kjaed9lozbZmPhY70 7uaxHXBvXQP04z7gqdZyjNky8ywyOg9niIgio+QQuWh9QQaN9u8/QBkXx+4OAyyK6GZb XLQAzXRJ6CNCTXlI8jDUchMRST3hpCrXSVoP/86iOfFsOHdxFuBEYl/QTwJm/TGHu0NO 6WsWOf2+bUqnhoVFt24T0Rd1hMQ1jcI/qF3YkTNiPmYMZnQOiT9vw1C+runWCM8TUqfH 6lwNImDFHSJMQXHwhakk/ScWCzcX5zK1Jfzmwj9fXjw1ry501AVSol2druPVoKDF2M7B cgrw== X-Gm-Message-State: APjAAAVfiRjiyzIPOKiaXRjZKVOU2vzZK8BKoPb+QIWxWlNAcrvjXuu9 ftLIXszIZWmUNLG3NROJHQROy2+H X-Google-Smtp-Source: APXvYqzepLaoyDAZ7SRpbMUsYjThMKYfMxNeYGCZPllA67otBShXG/+jr0Ue27OsVFARGcWvIUvgVA== X-Received: by 2002:a9d:6a10:: with SMTP id g16mr31233171otn.203.1558041864202; Thu, 16 May 2019 14:24:24 -0700 (PDT) Original-Received: from mars (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id m8sm2146980otl.40.2019.05.16.14.24.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 14:24:23 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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:159418 Archived-At: Save a file with this line somewhere and call it foo.el: (define-key "l" #'ignore) Then call: emacs -Q --eval "(setq byte-compile-error-on-warn t)" -batch -f batch-byte-compile foo.el it _should_ emit an error since define-key gets called with the wrong number of arguments. In Emacs 25.3, it does. In Emacs 26.1 and Emacs built recently from git master, it does not. Alex