From unknown Sun Jun 15 14:44:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6275 <6275@debbugs.gnu.org> To: bug#6275 <6275@debbugs.gnu.org> Subject: Status: 23.2; warning-suppress-types is void after defadvice Reply-To: bug#6275 <6275@debbugs.gnu.org> Date: Sun, 15 Jun 2025 21:44:58 +0000 retitle 6275 23.2; warning-suppress-types is void after defadvice reassign 6275 emacs submitter 6275 SAITO Takuya severity 6275 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 11:45:19 2010 Received: (at submit) by debbugs.gnu.org; 26 May 2010 15:45:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHInG-0008Nj-Gl for submit@debbugs.gnu.org; Wed, 26 May 2010 11:45:19 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHHq8-0007w6-TC for submit@debbugs.gnu.org; Wed, 26 May 2010 10:44:13 -0400 Received: from lists.gnu.org ([199.232.76.165]:58501) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OHHq3-0007Ti-Q1 for submit@debbugs.gnu.org; Wed, 26 May 2010 10:44:07 -0400 Received: from [140.186.70.92] (port=48597 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHHeo-0001TP-PL for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 10:32:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHHcG-0008Po-Ei for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 10:29:53 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:50607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHHcG-0008PT-7l for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 10:29:52 -0400 Received: by pvf33 with SMTP id 33so4904009pvf.0 for ; Wed, 26 May 2010 07:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:message-id:to :subject:from:x-mailer:mime-version:content-type :content-transfer-encoding; bh=DX6XUVa2M3Ujs6XPSRN3V0uxAE2gS6GD7NhdO/Mzkro=; b=rBZktSZ5OkOEg1REGdbW4dFJz8cP1fbgGiqY/DddPi2fmXAI68ZCP0SkMsvaKQotnu v7b2tvHwY2AnDMWB6NtUV8cOOFSPzPsEXEx6rwNdb7nO/tGi7bhVPPhgUhOVE+D+LQhP PA6Ex7KOcDQaKplaouLKNFIhxsSABmMh8b2cI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:message-id:to:subject:from:x-mailer:mime-version :content-type:content-transfer-encoding; b=RkWNNU6eLeJu1hM7kVZzFZV0FYkr6dQon5gVj0mG6qIaTSIYCXx9faG1spclUWb2s8 y7Vf9qSNP7F12nZ/8mEQThiEarOHUaX0pwhC1C2iaQSM1+3Yuz+jvE27G6UJ2ItjzTZs UwtNUpJNAN5WyN1+JMHDEWyPrKYgPqdAMsAq4= Received: by 10.141.4.17 with SMTP id g17mr6672705rvi.166.1274884190149; Wed, 26 May 2010 07:29:50 -0700 (PDT) Received: from localhost (i114-184-176-21.s04.a013.ap.plala.or.jp [114.184.176.21]) by mx.google.com with ESMTPS id k17sm117672rvh.5.2010.05.26.07.29.48 (version=SSLv3 cipher=RC4-MD5); Wed, 26 May 2010 07:29:49 -0700 (PDT) Date: Wed, 26 May 2010 23:28:50 +0900 (JST) Message-Id: <20100526.232850.112543538.tabmore@gmail.com> To: bug-gnu-emacs@gnu.org Subject: 23.2; warning-suppress-types is void after defadvice From: SAITO Takuya X-Mailer: Mew version 6.2.50 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 26 May 2010 11:45:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Start Emacs-23.2 with "emacs -Q" and evaluate below with \C-x\C-e in *scratch* buffer: (defadvice forward-line (before sample activate compile) (setq xxx zzz)) (byte-compile (lambda () (setq xxx zzz))) then, *Backtrace* buffer is displayed Debugger entered--Lisp error: (void-variable warning-suppress-types) display-warning(bytecomp "Symbol's value as variable is void: warning-suppress-types" :error "*Compile-Log*") byte-compile-log-warning("Symbol's value as variable is void: warning-suppress-types" nil :error) byte-compile-report-error((void-variable warning-suppress-types)) byte-compile((lambda nil (setq xxx zzz))) eval((byte-compile (lambda nil (setq xxx zzz)))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) ad-compile-function() binds warning-suppress-types with let. I guess warnings.el is loaded inside of that let-binding. In GNU Emacs 23.2.1 (i386-mingw-nt6.0.6002) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 6.0.6002 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: JPN value of $XMODIFIERS: nil locale-coding-system: cp932 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y C-p C-p C-e C-x C-e C-n C-x C-e q M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set forward-line Entering debugger... Back to top level. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view debug warnings byte-opt bytecomp byte-compile advice help-fns advice-preload japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 19:12:48 2010 Received: (at control) by debbugs.gnu.org; 7 Jun 2010 23:12:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLlUu-00059z-HV for submit@debbugs.gnu.org; Mon, 07 Jun 2010 19:12:48 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLlUs-00059s-Bs for control@debbugs.gnu.org; Mon, 07 Jun 2010 19:12:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLlUo-0005k5-7c; Mon, 07 Jun 2010 19:12:42 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19469.31978.205696.888092@fencepost.gnu.org> Date: Mon, 7 Jun 2010 19:12:42 -0400 From: Glenn Morris To: control Subject: merge bugs. does anyone search before reporting? :( X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: magenta X-Ran: u8qT+9\`hgwT/kvy[]!)a]|}^&HChF`NSj?_5?\x%pY%D#jB\r~{pHXgA+m List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) merge 6275 6373 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 08 21:27:25 2010 Received: (at control) by debbugs.gnu.org; 9 Jun 2010 01:27:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMA4i-0001eG-OQ for submit@debbugs.gnu.org; Tue, 08 Jun 2010 21:27:24 -0400 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 4FAE98175; Tue, 8 Jun 2010 21:22:25 -0400 (EDT) From: Stefan Monnier To: SAITO Takuya Subject: Re: bug#6275: 23.2; warning-suppress-types is void after defadvice Message-ID: References: <20100526.232850.112543538.tabmore@gmail.com> Date: Tue, 08 Jun 2010 21:22:25 -0400 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) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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. From unknown Sun Jun 15 14:44:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Jul 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 17:50:11 2011 Received: (at control) by debbugs.gnu.org; 6 Oct 2011 21:50:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBvpT-0001VF-5m for submit@debbugs.gnu.org; Thu, 06 Oct 2011 17:50:11 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBvpR-0001V9-5D for control@debbugs.gnu.org; Thu, 06 Oct 2011 17:50:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBvpG-0005ph-7O for control@debbugs.gnu.org; Thu, 06 Oct 2011 17:49:58 -0400 Date: Thu, 06 Oct 2011 17:49:58 -0400 Message-Id: Subject: control message for bug 6682 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) unarchive 6275 forcemerge 6275 6682 From unknown Sun Jun 15 14:44:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator