help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting file extensions to be handled by gpg encryption problem


From: Suvayu Ali
Subject: Re: Setting file extensions to be handled by gpg encryption problem
Date: Sat, 06 Nov 2010 10:20:53 -0700
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

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]