all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Przemysław Wojnowski" <esperanto@cumego.com>
Cc: emacs-devel@gnu.org
Subject: Re: Why 'file' local variable is obsolete?
Date: Sun, 03 May 2015 20:07:57 -0400	[thread overview]
Message-ID: <jwvpp6h6wa8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <5544CE8E.4030006@cumego.com> ("Przemysław Wojnowski"'s message of "Sat, 02 May 2015 15:18:06 +0200")

> (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	other threads:[~2015-05-04  0:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-02 13:18 Why 'file' local variable is obsolete? Przemysław Wojnowski
2015-05-04  0:07 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpp6h6wa8.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=esperanto@cumego.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.