From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why 'file' local variable is obsolete? Date: Sun, 03 May 2015 20:07:57 -0400 Message-ID: References: <5544CE8E.4030006@cumego.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430698096 7647 80.91.229.3 (4 May 2015 00:08:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2015 00:08:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Przemys=C5=82aw?= Wojnowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 04 02:08:08 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Yp3vb-00039e-6w for ged-emacs-devel@m.gmane.org; Mon, 04 May 2015 02:08:07 +0200 Original-Received: from localhost ([::1]:60532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp3va-00049g-CJ for ged-emacs-devel@m.gmane.org; Sun, 03 May 2015 20:08:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp3vW-00049X-RO for emacs-devel@gnu.org; Sun, 03 May 2015 20:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yp3vS-0001Pf-Mt for emacs-devel@gnu.org; Sun, 03 May 2015 20:08:02 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp3vS-0001P2-KC for emacs-devel@gnu.org; Sun, 03 May 2015 20:07:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRjClEAwECgz4DA4NtBKNjhFg X-IPAS-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRjClEAwECgz4DA4NtBKNjhFg X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="118159842" Original-Received: from 69-165-139-108.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 May 2015 20:07:58 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D72EDAE12D; Sun, 3 May 2015 20:07:57 -0400 (EDT) In-Reply-To: <5544CE8E.4030006@cumego.com> (=?utf-8?Q?=22Przemys=C5=82aw?= Wojnowski"'s message of "Sat, 02 May 2015 15:18:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186166 Archived-At: > (defun file-processor (filename) > (let ((file (expand-file-name filename))) > (message "Processing a file..."))) > Compiling the file gives warning: > In file-processor: > aoeu.el:2:10:Warning: `file' is an obsolete variable (as of 25.1); use 'file > instead I put the above three lines of code into ~/tmp/foo.el, then did emacs -Q ~/tmp/foo.el M-x byte-compile RET RET but did not see this warning about `file' being obsolete. Please make it a bug report where you provide all details necessary to try and reproduce your problem. Stefan