From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#20457: compiler does not warn about arglist mismatch with obsolete alias Date: Wed, 29 Apr 2015 03:08:15 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1430291384 31346 80.91.229.3 (29 Apr 2015 07:09:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 07:09:44 +0000 (UTC) To: 20457@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 09:09:34 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YnM7h-0005OD-2n for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 09:09:33 +0200 Original-Received: from localhost ([::1]:37319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnM7g-0003EV-5n for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 03:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnM7D-0002eP-9k for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:09:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnM7C-0000zt-J8 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:09:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnM7C-0000zo-FY for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YnM7C-0007yw-33 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2015 07:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143029129830598 (code B ref -1); Wed, 29 Apr 2015 07:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2015 07:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:55483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnM6U-0007xS-9W for submit@debbugs.gnu.org; Wed, 29 Apr 2015 03:08:18 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35277 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnM6S-0007xK-Df for submit@debbugs.gnu.org; Wed, 29 Apr 2015 03:08:16 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YnM6R-0002Z4-Co; Wed, 29 Apr 2015 03:08:15 -0400 X-Spook: bootleg NWO arrangements SP4 fissionable AK-47 Echelon RSA X-Ran: 7[XUc)>HCGmrj+pR#zb(m{6}4K)9b^.]Aj*J#%jpH~YE\p6y(YX)Kr04~+LtSr5?SM|fc^ X-Hue: magenta X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102205 Archived-At: Package: emacs Version: 24.5 Byte-compiling the following: (defun newfunc () t) (eval-and-compile (define-obsolete-function-alias 'oldfunc 'newfunc "25.1")) (defun blah () (oldfunc t)) warns about oldfunc being obsolete: In blah: foo.el:6:8:Warning: `oldfunc' is an obsolete function (as of 25.1); use `newfunc' instead. however, it says nothing about blah calling oldfunc with the wrong number of arguments, which leads to a runtime error.