emacs-devel
[Top][All Lists]
Advanced

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

Re: Why 'file' local variable is obsolete?


From: Stefan Monnier
Subject: Re: Why 'file' local variable is obsolete?
Date: Sun, 03 May 2015 20:07:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> (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



reply via email to

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