From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#8554: 24.0.50; compiler warning after make-local-variable Date: Tue, 26 Apr 2011 08:15:37 +0200 Message-ID: <4DB66309.8020003@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303798064 27310 80.91.229.12 (26 Apr 2011 06:07:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2011 06:07:44 +0000 (UTC) To: 8554@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 26 08:07:40 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 1QEbQx-00024f-Os for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Apr 2011 08:07:40 +0200 Original-Received: from localhost ([::1]:41788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbQw-0008Po-VM for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Apr 2011 02:07:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbQt-0008Pi-Mv for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:07:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbQs-000694-Mh for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:07:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbQs-00068w-LE for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:07:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QEbQM-0004lH-Ln; Tue, 26 Apr 2011 02:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Apr 2011 06:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130379798418254 (code B ref -1); Tue, 26 Apr 2011 06:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 06:06:24 +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 1QEbPk-0004kN-27 for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:06:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEbPi-0004kA-1U for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbPb-0005vi-Hc for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:06:16 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:53876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbPb-0005ve-GJ for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:06:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbPa-0008Nr-89 for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:06:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbPY-0005vK-Jg for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:06:14 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:60446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbPY-0005v4-7J for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2011 02:06:12 -0400 Original-Received: from [192.168.178.29] (brln-4dbc4741.pool.mediaWays.net [77.188.71.65]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MN728-1QCQcE3A08-007Jrs; Tue, 26 Apr 2011 08:06:11 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-Provags-ID: V02:K0:08Icq9j/NCDYEcIADNwUl8HFj9ycGNm8eGgNwB3SI5Z gWp9mHWwi7KpCs9A1h8+bJs1ZEESmlqyBZncjY+ZVcBxAHP5dZ jyCFq9Lobqqsce6Kvwvtz9V7+DhvUoMlW4BvvdelIPztdKDPAw vNKRUdIGcvbykpoqCP45fdLcHEjvVZDxXmeCp1n3HhQtjnqxmM PDGVkza7o6XS22l3hOUC8ImMG6PL6KJRjHaT5gbhIQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 26 Apr 2011 02:07: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:46008 Archived-At: emacs -q: When `M-x byte-compile-file' the following form, (defun highlight-indentation-on () "Make sure `highlight-indentation' is on. " (interactive) (set (make-local-variable 'highlight-indent-active) nil) (highlight-indentation) (when (called-interactively-p 'any) (message "highlight-indentation ON"))) receive a warning saying: In highlight-indentation-on: highlight-indentation.el:47:55:Warning: assignment to free variable `highlight-indent-active' That's not useful IMHO, as `make-local-variable' is explicit already. Thanks Andreas -- https://code.launchpad.net/~a-roehler/python-mode/components-python-mode https://code.launchpad.net/s-x-emacs-werkstatt/ In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2011-03-04 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.10605000 configured using `configure '--without-makeinfo' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls'' 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: de_DE.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp 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-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x d C-x d C-x d M-> M-> C-x C-f a r b e m / p y h t t M-> C-r c o m p o C-r C-r d d x y e s y e s M-> C-r h i g h l C-r C-r M-x b y t e - c o m p i C-x o C-x 1 M-x r e p o r t - e m a c s - b u < return> Recent messages: Mark set [2 times] Making completion list... Mark set Mark saved where search started Deleting...done Mark set Mark saved where search started Compiling /MY_PATH../highlight-indentation.el...done Wrote /MY_PATH../highlight-indentation.elc Mark set Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse auth-source eieio assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr warnings byte-opt compile comint ring bytecomp byte-compile vc-rcs multi-isearch dired-aux help-mode easymenu view dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)