From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Setting file extensions to be handled by gpg encryption problem Date: Sat, 06 Nov 2010 10:20:53 -0700 Message-ID: <4CD58E75.8070107@gmail.com> References: <8739rh48iz.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289064091 9486 80.91.229.12 (6 Nov 2010 17:21:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2010 17:21:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 06 18:21:25 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 1PEmSC-0000Bp-Ed for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Nov 2010 18:21:24 +0100 Original-Received: from localhost ([127.0.0.1]:56291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmSB-0005LY-JP for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Nov 2010 13:21:23 -0400 Original-Received: from [140.186.70.92] (port=60196 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmRn-0005Ko-L4 for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 13:21:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEmRm-0002eK-Mt for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 13:20:59 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:39879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEmRm-0002eF-IH for help-gnu-emacs@gnu.org; Sat, 06 Nov 2010 13:20:58 -0400 Original-Received: by pwi1 with SMTP id 1so1432279pwi.0 for ; Sat, 06 Nov 2010 10:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3cpUinfDqdEF1dh9nZKxosOVx7lzViE9bMLrrmNNQG4=; b=dK/2Q9Gn+Kzu3AcVp2OFVXen8PWm7jaCZRuQ+CHCuGvrNzvx1MXRvl5zjPFxzcpmHG VVwpAB/1rwpIntW2kkBFouIFjZR1aECI9D6AKJNgPAI4Du7qruHAv5MDX0xy0Gh9h0Gh NJCfL6unLXpo34f5MdiIBtJY3y3kLuwV3MAjs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KDDaNzS344dOpbjVrus85J7WTcwVKqxJ8W986wqAnieDZFIDElx7Pz5nIUYBu8Ml7u qjsFeSt8EuAvwiaQcwJDO3p/ekvvix3KNrPZ55YS2jVPYU/IdjCadSFGkyFvOWgNxFjP rAITyjBHL8o0LLsDR1ss5Qf5TrR6h5ajhCJZI= Original-Received: by 10.142.157.7 with SMTP id f7mr3103807wfe.335.1289064056722; Sat, 06 Nov 2010 10:20:56 -0700 (PDT) Original-Received: from bhishma.homelinux.net (d207-6-164-233.bchsia.telus.net [207.6.164.233]) by mx.google.com with ESMTPS id w42sm4136991wfh.15.2010.11.06.10.20.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Nov 2010 10:20:55 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.6 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:75306 Archived-At: On Saturday 06 November 2010 07:15 AM, bar tomas wrote: > 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. I think you need to escape the parentheses too. Try, \\(\\.txt$\\)\\|\\(\\.gpg$\\) > Many thanks for any help > > Tomas Bar -- Suvayu Open source is the future. It sets us free.