From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7693: 24.0.50, 23.2.91; advice to kill-new causes warning Date: Thu, 23 Dec 2010 10:37:38 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293119680 19278 80.91.229.12 (23 Dec 2010 15:54:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 15:54:40 +0000 (UTC) Cc: "Herbert J. Skuhra" , 7693@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 23 16:54:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVnUv-00006n-MY for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Dec 2010 16:54:33 +0100 Original-Received: from localhost ([127.0.0.1]:49195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVnUv-0004IV-BG for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Dec 2010 10:54:33 -0500 Original-Received: from [140.186.70.92] (port=43847 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVnTb-0003dh-2a for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 10:53:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVnTZ-0003X7-LJ for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 10:53:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVnTZ-0003X2-IX for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 10:53:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PVn98-0008Rm-OD; Thu, 23 Dec 2010 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Dec 2010 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7693 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7693-submit@debbugs.gnu.org id=B7693.129311826832406 (code B ref 7693); Thu, 23 Dec 2010 15:32:02 +0000 Original-Received: (at 7693) by debbugs.gnu.org; 23 Dec 2010 15:31:08 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVn8F-0008Qc-2N for submit@debbugs.gnu.org; Thu, 23 Dec 2010 10:31:07 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVn8B-0008Q0-JL; Thu, 23 Dec 2010 10:31:03 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAOP7Ek3O+ILX/2dsb2JhbACkJ3TBMYVKBIRljhs X-IronPort-AV: E=Sophos;i="4.60,219,1291611600"; d="scan'208";a="86386005" Original-Received: from 206-248-130-215.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.215]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Dec 2010 10:37:39 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 44E726610E; Thu, 23 Dec 2010 10:37:38 -0500 (EST) In-Reply-To: (Katsumi Yamaoka's message of "Tue, 21 Dec 2010 09:44:31 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 23 Dec 2010 10:32:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42747 Archived-At: severity 7693 minor thanks > Maybe it's harmless but surprises me a bit. Indeed, it's harmless, and it's admittedly unjustified. > (require 'bytecomp) > (defadvice kill-new (before nop activate)) > This causes a warning in the "*Compile-Log*" buffer as follows: > Warning: ad-Orig-kill-new called with 3 arguments, but accepts only 1-2 > It is because the arglist of `kill-new' is still > (string &optional replace yank-handler), that `advice' recognizes > by using `symbol-function'. Any idea? I think it's right for the advice to use the obsolete (string &optional replace yank-handler) rather than the advertised arglist, so what we'd need to do here is just silence the warning (rather than change the code generated by defadvice). We already have a few other cases where we emit warnings for obsolete vars and functions that aren't justified (typically in the code that implements those obsolete objects). It would be good to figure out how to cleanly silence such warnings. Stefan