all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why 'file' local variable is obsolete?
@ 2015-05-02 13:18 Przemysław Wojnowski
  2015-05-04  0:07 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Przemysław Wojnowski @ 2015-05-02 13:18 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-04  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 13:18 Why 'file' local variable is obsolete? Przemysław Wojnowski
2015-05-04  0:07 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.