[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to reject visiting a file
From: |
Eli Zaretskii |
Subject: |
Re: How to reject visiting a file |
Date: |
Fri, 12 Dec 2014 10:01:47 +0200 |
> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Fri, 12 Dec 2014 02:46:23 +0100
>
> Is there a way to error-out when Emacs tries to visit certain file
> before the file is loaded? I'll like to use a hook that receives the
> file name and be able to throw an error from there that aborts the
> operation.
You could define a file-handler for these files.