From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to reject visiting a file Date: Fri, 12 Dec 2014 10:01:47 +0200 Message-ID: <83k31xs3dg.fsf@gnu.org> References: <87oar9abdc.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1418371383 27595 80.91.229.3 (12 Dec 2014 08:03:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 08:03:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 09:02:57 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XzLBe-0000tN-Pv for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 09:02:54 +0100 Original-Received: from localhost ([::1]:55904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLBe-00080L-CM for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 03:02:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLAf-0006if-TU for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:02:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzLAZ-00039K-I0 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:01:53 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:40409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLAZ-00039D-88 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:01:47 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NGG00H00LVDSY00@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 09:59:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGG00FMKM71JU30@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 09:59:25 +0200 (IST) In-reply-to: <87oar9abdc.fsf@wanadoo.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101538 Archived-At: > From: =D3scar Fuentes > Date: Fri, 12 Dec 2014 02:46:23 +0100 >=20 > 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 th= e > file name and be able to throw an error from there that aborts the > operation. You could define a file-handler for these files.