jka-compr-ccrypt-buffer-password is nil after opening an encrypted file
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

 Up
jka-compr-ccrypt-buffer-password is nil after opening an encrypted file         

Group: gnu.emacs.help · Group Profile
Author: Andre Kuehne
Date: Nov 13, 2006 12:14

Hello everybody

I am having some trouble with the jka-compr-ccrypt extension:
When opening an encrypted file with jka-compr-ccrypt i get
prompted for the password and after entering the correct one
the file opens normaly.

When i want to save any changes i get asked for the password
again. Looking at the "jka-compr-ccrypt-buffer-password" variable
(which is buffer-local and should hold the entered password) turns
out it is nil. But if you explicitly set the variable with
M-x ccrypt-set-buffer-password you can later save the file
without additional prompting.

I did some debugging and found that the variable gets correctly
set after prompting for the password when opening the file, but
it seems that some other part of emacs then resets it again to nil.
However i was not able to identify the exact location
where the reset happens. All i can say that the variable still holds
the password when jka-compr-ccrypt-insert-file-contents returns.
> emacs --version
GNU Emacs 22.0.50.1

Can anyone help with this?

Best regards
Andre
no comments
diggit! del.icio.us! reddit!