unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Glenn Morris <rgm@gnu.org>
Cc: 20457@debbugs.gnu.org
Subject: bug#20457: compiler does not warn about arglist mismatch with obsolete alias
Date: Fri, 08 Apr 2016 06:56:01 +0200	[thread overview]
Message-ID: <87vb3spula.fsf@mbork.pl> (raw)
In-Reply-To: <i48udbxvhc.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 29 Apr 2015 03:08:15 -0400")

On 2015-04-29, at 03:08, Glenn Morris <rgm@gnu.org> wrote:

> 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.

Confirmed on GNU Emacs 25.1.50.8 (1e8cd05).

Best,

-- 
Marcin





  reply	other threads:[~2016-04-08  4:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-29  7:08 bug#20457: compiler does not warn about arglist mismatch with obsolete alias Glenn Morris
2016-04-08  4:56 ` Marcin Borkowski [this message]
2021-05-28  0:30 ` Lars Ingebrigtsen
2021-05-28  6:26   ` Eli Zaretskii
2021-06-05 15:54     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vb3spula.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=20457@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).