From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Emacs snapshot: free variable warning Date: 23 Nov 2012 12:11:17 GMT Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353672923 27801 80.91.229.3 (23 Nov 2012 12:15:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 12:15:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 13:15:31 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 1TbsAM-0008V5-Bh for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 13:15:30 +0100 Original-Received: from localhost ([::1]:57308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbsAB-0000WY-H6 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 07:15:19 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: individual.net t7c9p2l5m79wPu52DvhRrgyWbpXt828B7QKkFdi3oQabOOz9cON0axyT9n8tMlx0z3 Cancel-Lock: sha1:HEaWbgJpCIHo8KwZObD3K5UAQYM= User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:195536 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:87860 Archived-At: 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? TIA -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)