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#6275: 23.2; warning-suppress-types is void after defadvice Date: Tue, 08 Jun 2010 21:22:25 -0400 Message-ID: References: <20100526.232850.112543538.tabmore@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276046910 18134 80.91.229.12 (9 Jun 2010 01:28:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 01:28:30 +0000 (UTC) To: SAITO Takuya Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 09 03:28:28 2010 connect(): No such file or directory 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 1OMA5h-0005rR-KD for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jun 2010 03:28:25 +0200 Original-Received: from localhost ([127.0.0.1]:54710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMA5g-0003mF-T4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jun 2010 21:28:24 -0400 Original-Received: from [140.186.70.92] (port=35414 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMA5W-0003lG-UL for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 21:28:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMA5V-0000eZ-Ds for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 21:28:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49440) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMA5V-0000eT-Cf for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 21:28:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMA5L-0001eg-1B for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 21:28:03 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jun 2010 01:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6275 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6275@debbugs.gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by 6275-done@debbugs.gnu.org id=D6275.12760468456346 (code D ref 6275); Wed, 09 Jun 2010 01:28:02 +0000 Original-Received: (at 6275-done) by debbugs.gnu.org; 9 Jun 2010 01:27:25 +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 1OMA4i-0001eE-HW for submit@debbugs.gnu.org; Tue, 08 Jun 2010 21:27:24 -0400 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 1OM9zx-0001bp-F1; Tue, 08 Jun 2010 21:22:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJeJDkxFxIwr/2dsb2JhbACeQ3K/aoUWBIxs X-IronPort-AV: E=Sophos;i="4.53,387,1272859200"; d="scan'208";a="67639807" Original-Received: from 69-196-140-43.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.43]) by ironport2-out.pppoe.ca with ESMTP; 08 Jun 2010 21:22:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4FAE98175; Tue, 8 Jun 2010 21:22:25 -0400 (EDT) In-Reply-To: <20100526.232850.112543538.tabmore@gmail.com> (SAITO Takuya's message of "Wed, 26 May 2010 23:28:50 +0900 (JST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Mailman-Approved-At: Tue, 08 Jun 2010 21:27:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 08 Jun 2010 21:28:03 -0400 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:37617 Archived-At: forcemerge 6275 6373 thanks > Debugger entered--Lisp error: (void-variable warning-suppress-types) [...] > ad-compile-function() binds warning-suppress-types with let. > I guess warnings.el is loaded inside of that let-binding. Indeed, thank you. I've installed the patch below which should fix it. Stefan === modified file 'lisp/emacs-lisp/advice.el' --- lisp/emacs-lisp/advice.el 2010-02-15 20:03:22 +0000 +++ lisp/emacs-lisp/advice.el 2010-06-09 01:16:08 +0000 @@ -2684,6 +2684,8 @@ ;; because `byte-compile' uses `fset': (ad-with-auto-activation-disabled (require 'bytecomp) + (require 'warnings) ;To define warning-suppress-types + ;before we let-bind it. (let ((symbol (make-symbol "advice-compilation")) (byte-compile-warnings byte-compile-warnings) ;; Don't pop up windows showing byte-compiler warnings.