all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruno Tavernier <tavernier.bruno@gmail.com>
To: bar tomas <bartomas@gmail.com>
Cc: emacs-help <help-gnu-emacs@gnu.org>
Subject: Re: Setting file extensions to be handled by gpg encryption problem
Date: Thu, 04 Nov 2010 20:45:24 +0900	[thread overview]
Message-ID: <8739rh48iz.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTikgroKCb5TVA_9OmjGHQVSmf4zVXmONxG06w8M6@mail.gmail.com> (bar tomas's message of "Thu, 4 Nov 2010 10:36:57 +0000")

Hi Tomas,

> I'm using gpg to encrypt files and I would like that files with 'txt'
> extension be treated like 'gpg' files.
> I read in the doc that this can be controlled with the variable
> epa-file-name-regexp
> So I added the following line at the end of my .emacs file
>
> (setq epa-file-name-regexp "\\.txt$")
>
> But this has absolutely no effect. I mean, if I create a txt file with
> emacs, when I save it I would like for emacs to ask for an encryption
> paraphrase, but it does not.

I just tried, it indeed does not work with that line only.
You have then to call `epa-file-name-regexp-update' to make it works.

cf describe-variable epa-file-name-regexp
,----
| epa-file-name-regexp is a variable defined in `epa-hook.el'.
| Its value is 
| "\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'"
| 
| Documentation:
| Regexp which matches filenames to be encrypted with GnuPG.
| 
| If you set this outside Custom while epa-file is already enabled, you
| have to call `epa-file-name-regexp-update' after setting it to
| properly update file-name-handler-alist.  Setting this through Custom
| does that automatically.
`----

-- 
Bruno



  reply	other threads:[~2010-11-04 11:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 10:36 Setting file extensions to be handled by gpg encryption problem bar tomas
2010-11-04 11:45 ` Bruno Tavernier [this message]
2010-11-04 12:24   ` bar tomas
2010-11-04 15:39     ` bar tomas
2010-11-05  5:01       ` PJ Weisberg
2010-11-06 14:15         ` bar tomas
2010-11-06 17:20           ` Suvayu Ali
2010-11-06 18:03           ` Thierry Volpiatto
2010-11-06 21:11           ` Steve Revilak
2010-11-08  9:40             ` bar tomas
     [not found]     ` <mailman.2.1288886101.27623.help-gnu-emacs@gnu.org>
2010-11-04 19:42       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739rh48iz.fsf@gmail.com \
    --to=tavernier.bruno@gmail.com \
    --cc=bartomas@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.