From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?UHJ6ZW15c8WCYXcgV29qbm93c2tp?= Newsgroups: gmane.emacs.devel Subject: Why 'file' local variable is obsolete? Date: Sat, 02 May 2015 15:18:06 +0200 Message-ID: <5544CE8E.4030006@cumego.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1430572723 12813 80.91.229.3 (2 May 2015 13:18:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2015 13:18:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 02 15:18:29 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 1YoXJM-0001bv-67 for ged-emacs-devel@m.gmane.org; Sat, 02 May 2015 15:18:28 +0200 Original-Received: from localhost ([::1]:56989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoXJL-00078a-8l for ged-emacs-devel@m.gmane.org; Sat, 02 May 2015 09:18:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoXJ9-00078T-Ca for emacs-devel@gnu.org; Sat, 02 May 2015 09:18:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoXJ4-0008GS-CO for emacs-devel@gnu.org; Sat, 02 May 2015 09:18:15 -0400 Original-Received: from smtp12.iq.pl ([86.111.240.243]:45408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoXJ4-0008GH-5J for emacs-devel@gnu.org; Sat, 02 May 2015 09:18:10 -0400 Original-Received: (qmail 8049 invoked from network); 2 May 2015 13:18:07 -0000 Original-Received: from unknown (HELO [192.168.1.106]) (esperanto@cumego.com@[159.205.25.146]) (envelope-sender ) by smtp71.iq.pl with AES128-SHA encrypted SMTP for ; 2 May 2015 13:18:07 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.111.240.243 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:186137 Archived-At: Hello everybody, Having the following code with 'file' as local var: (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 do not read every single email on the list, so maybe I missed something, but why there are byte compilation warnings for some variable names? For example it is for 'file', 'tree', 'status', which are quite common local names. Moreover the message is not too helpful. Thanks, Przemysław