emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why 'file' local variable is obsolete?


From: Przemysław Wojnowski
Subject: Why 'file' local variable is obsolete?
Date: Sat, 02 May 2015 15:18:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]