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#8646: byte-compile-initial-macro-environment confuses byte-compile-arglist-warn Date: Wed, 11 May 2011 22:00:03 -0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305162073 2245 80.91.229.12 (12 May 2011 01:01:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 May 2011 01:01:13 +0000 (UTC) Cc: 8646@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 12 03:01:09 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QKKH5-0003Gi-Uh for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2011 03:01:08 +0200 Original-Received: from localhost ([::1]:38679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKKH5-00017q-De for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 May 2011 21:01:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKKH1-00017i-Qv for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 21:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKKH0-0001rw-Rf for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 21:01:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKKH0-0001rs-Mz for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 21:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QKKH0-0000Py-7D; Wed, 11 May 2011 21:01:02 -0400 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, 12 May 2011 01:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8646 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8646-submit@debbugs.gnu.org id=B8646.13051620141548 (code B ref 8646); Thu, 12 May 2011 01:01:02 +0000 Original-Received: (at 8646) by debbugs.gnu.org; 12 May 2011 01:00:14 +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 1QKKGD-0000Ov-SK for submit@debbugs.gnu.org; Wed, 11 May 2011 21:00:14 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKKGD-0000Ol-63 for 8646@debbugs.gnu.org; Wed, 11 May 2011 21:00:13 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:45621 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QKKG7-0005Nb-4D; Wed, 11 May 2011 21:00:07 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4767966152; Wed, 11 May 2011 22:00:03 -0300 (ART) In-Reply-To: (Glenn Morris's message of "Wed, 11 May 2011 13:39:15 -0400") 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: Wed, 11 May 2011 21:01:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46405 Archived-At: >> The "2+" vs "2-4" can be fixed by changing either the macro definition >> of its override so that their arglist matches. > No, really? ;) > I don't see how to change the override definition to not use &rest, > since it is a function that needs to distinguish "no argument" from > "argument nil". And changing the macro to match the override seems like > putting the cart before the horse. > How about the following, based on the idea that it is the override that > should be congruent with the real macro definition, even though the > former gets defined first? It's the reason that > byte-compile-macroexpand-declare-function can work. It makes some sense, indeed. But I'm not thrilled about this solution. I'd rather change the defmacro to match the override. Stefan