Hi Brandon,

Brandon Craig Rhodes schrieb:
> A follow-up to my last message:
> 
> The reason that crypt++el does not ever notice file extensions is
> because its file extension function is broken:
> 
> (defun crypt-encryption-type-get (file)
>   "Determine type of encryption from file extension."
>   (let (ret
>         regexp)
>     (dolist (elt crypt-encryption-alist)
>       (setq regexp (nth 3 elt))
>       (if (and (stringp regexp)
>                (string-match regexp file))
>           (nth 0 elt)))))
> 
> Do you see the problem?  The (if ...) statement has no effect; even if
> the filename matches the regular expression, it just computes a value,
> then throws it out and lets the (dolist ...) loop continue to execute.
> To make the function actually stop with the answer about what kind of
> file I've just opened, the function's last line needs to be changed to:
> 
>           (return (nth 0 elt))))))
> 
> I've just tested this on my Debian unstable box, with emacs 22.2+2-5,
> and it makes crypt++.el start working just fine.  Or, at least, it works
> fine for everything I use it for. :-)
> 
> Please let me know anything else I can do to help get this released!
> And, thanks for maintaining the package for all of the rest of us who
> use Debian.
> 

I only no got some time to test your patch using emacs 22.
I get the following error:

crypt-encryption-type-get: Symbol's function definition is void: return

Do you know what the problem is?

Christoph

-- 
============================================================================
Christoph Martin, Zentrum für Datenverarbeitung, Uni-Mainz, Germany
 Internet-Mail:  [email protected]
  Telefon: +49-6131-3926337
      Fax: +49-6131-3922856

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to