From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Emacs snapshot: free variable warning Date: Fri, 23 Nov 2012 17:41:50 +0400 Message-ID: <878v9s4esh.fsf@yandex.ru> References: <87d2z44ezc.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353678132 7905 80.91.229.3 (23 Nov 2012 13:42:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 13:42:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 14:42:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbtWO-0006Ud-HG for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 14:42:20 +0100 Original-Received: from localhost ([::1]:60835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbtWD-0004hX-Tz for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 08:42:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbtW3-0004Qc-Rq for help-gnu-emacs@gnu.org; Fri, 23 Nov 2012 08:42:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbtVz-0002G2-Cj for help-gnu-emacs@gnu.org; Fri, 23 Nov 2012 08:41:59 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:37407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbtVz-0002Fs-5k for help-gnu-emacs@gnu.org; Fri, 23 Nov 2012 08:41:55 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so7902574lbb.0 for ; Fri, 23 Nov 2012 05:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=YyB8zPJ8R1HaBXNGK5rNJFUjSh7tIx1q4H2aFWWirp8=; b=qZtlZb1zSIcTDLSX46qsgIbfDzHyxFhvspke68ZhgPmvkbUnh786mYlRDGLr4PdDIQ h1jRo4pTQ6KQAEV8Xyh41iNe3yCW7+8dfWlUI71jATDVVCvy1WK+lLi67yKcTiQx6p1F JcTYWBsjyLPpi16PYCFzK4JvaKQ7d+7pa/SLgyStLPj2aE7TN5ULOq83b4FvPmmkTHt+ vJ4As1cPx1bg6jQVV3nrRYyhn98y1N35wjWwNA0gdp9NnKMHIE+btvvE/CJ6KSpuc9Nl EGpXaoj4tpCx3UhiNREzCGbc65EUt/76mFEdfb670YAAcULi6LLvrMyMWfZbe/BzPx0K QwDQ== Original-Received: by 10.152.147.100 with SMTP id tj4mr3448550lab.42.1353678113814; Fri, 23 Nov 2012 05:41:53 -0800 (PST) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id eo4sm2615400lbb.5.2012.11.23.05.41.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 05:41:52 -0800 (PST) In-Reply-To: <87d2z44ezc.fsf@yandex.ru> (Dmitry Gutov's message of "Fri, 23 Nov 2012 17:37:43 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87865 Archived-At: Dmitry Gutov writes: > Joost Kremers writes: > >> Hi all, >> >> After a recent Emacs update (I'm following Damien Cassou's Emacs >> snapshot packages at ) one >> of my init files started giving me a free variable warning that I never >> got before: >> >> ``` >> .emacs.d/mu4e-settings.el:Warning: reference to free variable >> `offlineimap-buffer-name' >> ``` >> >> The warning results from a defadvice: >> >> ``` >> (defadvice mu4e-quit (around jk-quit-offlineimap () activate) >> "Quit OfflineIMAP when quitting mu4e." >> (interactive) >> ad-do-it >> (signal-process (get-buffer-process (get-buffer offlineimap-buffer-name)) 'SIGUSR2)) >> ``` >> >> If I comment out this defadvice, the warning goes away. >> >> Anyone know why I'm suddenly getting this warning? It's true that the >> variable hasn't been defined yet when the code is loaded, but I have a >> defun in the same file which also references this variable but doesn't >> produce any warning. Besides, I'm used to getting warnings like this >> when compiling code, but not when it's simply loaded... >> >> If it is intentional (and not some bug introduced with a recent change >> to Emacs) is there a way to code the defadvice so that I don't get the >> warning? > > Same here with autopair on Emacs trunk, compiled by myself: > > ``` > .emacs.d/elpa/autopair-20121120.2012/autopair.elc:Warning: reference to free > variable `autopair-mode' > ``` > > in *Compile-Log* on startup. > > Doesn't look like expected behavior. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12965 seems to be it.