From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bar tomas Newsgroups: gmane.emacs.help Subject: Re: Setting file extensions to be handled by gpg encryption problem Date: Sat, 6 Nov 2010 14:15:05 +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 1289053916 630 80.91.229.12 (6 Nov 2010 14:31:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2010 14:31:56 +0000 (UTC) Cc: emacs-help To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 06 15:31:52 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 1PEjo1-00005k-OT for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Nov 2010 15:31:51 +0100 Original-Received: from localhost ([127.0.0.1]:56529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEjYV-00053Y-Jd for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Nov 2010 10:15:43 -0400 Original-Received: from [140.186.70.92] (port=47039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEjY1-0004yl-Rm for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 10:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEjXv-0006CO-A8 for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 10:15:08 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:57909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEjXv-0006CI-6W for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 10:15:07 -0400 Original-Received: by iwn9 with SMTP id 9so4195123iwn.0 for ; Sat, 06 Nov 2010 07:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=PWweDqzSO9qt/vt+zAr0Fes3mVK7KpehM1tFuBkqGLY=; b=qSgAWM+8d4RkxeR8XvKy+10MKVfcLKIeog5Mj05r5FPxbnGgdUJfj4Q/B5r1u2IK3A 5R762h3D6IRYzG2siS1bg/ucpoziQXt7YZiJdQRQeCgCB0r9vplT91L9iRUsglssL6AL JZjEgt+MLK4WAi3Cx7YEF31bHsEdkXliM2B54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=m9gZkMiasGG09chuKQLO79ljAVSNUycKHPfs4jTWRjm7H9haEyr0pUkv6dXNdChbJP PWiP5InqbDiaqufmS2dLwxQEhNMub0aQYgwSVh6SVVFQdDFCocbd6sr2FL0nobdafBs5 6xwnU2eW/WqRcrTX/JDv53WVDGmVUK80jb59Y= Original-Received: by 10.42.219.69 with SMTP id ht5mr1941132icb.354.1289052905798; Sat, 06 Nov 2010 07:15:05 -0700 (PDT) Original-Received: by 10.42.171.136 with HTTP; Sat, 6 Nov 2010 07:15:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:75305 Archived-At: Many thanks for your help, but the regular expression you suggest doesn't seem to capture file names with extension txt or gpg. I've tried to test it in an emacs buffer and tried both (\\.txt$)|(\\.gpg$) and (\.txt$)|(\.gpg$) but it doesn't seem to work either. Many thanks for any help Tomas Bar On Fri, Nov 5, 2010 at 5:01 AM, PJ Weisberg wrote: > 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$)" >