From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: Setting file extensions to be handled by gpg encryption problem Date: Fri, 5 Nov 2010 05:01:45 +0000 Message-ID: References: <8739rh48iz.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1288933354 14986 80.91.229.12 (5 Nov 2010 05:02:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 5 Nov 2010 05:02:34 +0000 (UTC) Cc: emacs-help To: bar tomas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 05 06:02:30 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PEERZ-0001uj-Ov for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Nov 2010 06:02:29 +0100 Original-Received: from localhost ([127.0.0.1]:39402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEERZ-0005Yv-Ct for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Nov 2010 01:02:29 -0400 Original-Received: from [140.186.70.92] (port=49280 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEEQz-0005Uz-R5 for help-gnu-emacs@gnu.org; Fri, 05 Nov 2010 01:01:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEEQy-0001Id-QI for help-gnu-emacs@gnu.org; Fri, 05 Nov 2010 01:01:53 -0400 Original-Received: from smtpauth19.prod.mesa1.secureserver.net ([64.202.165.30]:40625) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PEEQy-0001IQ-Eg for help-gnu-emacs@gnu.org; Fri, 05 Nov 2010 01:01:52 -0400 Original-Received: (qmail 13133 invoked from network); 5 Nov 2010 05:01:49 -0000 Original-Received: from unknown (74.125.82.49) by smtpauth19.prod.mesa1.secureserver.net (64.202.165.30) with ESMTP; 05 Nov 2010 05:01:49 -0000 Original-Received: by wwe15 with SMTP id 15so2880712wwe.30 for ; Thu, 04 Nov 2010 22:01:45 -0700 (PDT) Original-Received: by 10.227.135.9 with SMTP id l9mr1575950wbt.49.1288933305591; Thu, 04 Nov 2010 22:01:45 -0700 (PDT) Original-Received: by 10.227.128.141 with HTTP; Thu, 4 Nov 2010 22:01:45 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:75301 Archived-At: On Thu, Nov 4, 2010 at 3:39 PM, bar tomas wrote: > Hi, > I just realized that the problem of writing > >> (custom-set-variables >> '(epa-file-name-regexp "\\.txt$")) > > as I put in my previous post to force emacs to treat txt files with > gpg encryption is that files of extension gpg then do not trigger the > gpg mode. > I tried wrting a regular expression that would include both txt and > gpg extension files like this: > > (custom-set-variables > '(epa-file-name-regexp "\(\\.txt$\)\|\(\\.gpg$\)") > ) > But there must be an error in my regular expression, because it doesn't work. > Many thanks for any help pointing out my error I haven't actually tried it, but it looks like you mean "(\\.txt$)|(\\.gpg$)"