From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ismael Valladolid Torres Newsgroups: gmane.emacs.help Subject: Inhibit backup on special directories Date: Sat, 23 Apr 2005 18:20:09 +0200 Message-ID: <1114273209.7061.8.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114273293 19072 80.91.229.2 (23 Apr 2005 16:21:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2005 16:21:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 23 18:21:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DPNNE-00080k-6D for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Apr 2005 18:20:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPNSN-0006zr-EZ for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Apr 2005 12:26:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DPNR6-0006eo-Fk for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 12:24:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DPNR4-0006e9-G9 for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 12:24:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPNR4-0006bi-CF for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 12:24:50 -0400 Original-Received: from [213.4.129.135] (helo=tnetsmtp1.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DPNPi-0000sg-VA for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 12:23:27 -0400 Original-Received: from [192.168.200.3] ([80.38.119.13]) by tnetsmtp1.mail.isp (terra.es) with ESMTP id IFEQPX00.LJ5 for ; Sat, 23 Apr 2005 18:20:21 +0200 Original-To: help-gnu-emacs@gnu.org X-Mailer: Evolution 2.2.1.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25995 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25995 My USB disk mounts on /media/usbdisk. I'd like that, when editing files located on that unit, backups are never created, at least on that location. I've come to this snippet: (setq backup-directory-alist '(("^/media/usbdisk/" . "/tmp"))) This works, it moves backups of all files there to /tmp, but I wonder if I could simply inhibit backup file creation at all. I see there's a variable called backup-inhibited, but I don't see how to make it work for files in a given directory. Well, sorry I am not an elisp expert by now! Any ideas useful. Cordially, Ismael