[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20457: compiler does not warn about arglist mismatch with obsolete a
From: |
Glenn Morris |
Subject: |
bug#20457: compiler does not warn about arglist mismatch with obsolete alias |
Date: |
Wed, 29 Apr 2015 03:08:15 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#20457: compiler does not warn about arglist mismatch with obsolete alias,
Glenn Morris <=