Package: crypt++el
Version: 2.94-1
Severity: normal

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.  :-) 




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to