X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=pgg-parse.el;h=f3aec73200cbab8d8e3026732b393eb3fb99c9c7;hb=dfd925a11b8f90d7af2a66631d198aee9eedd78c;hp=910b0fffaea37028caa86532f36bfa3b7e21401d;hpb=17cacd9ff91f19bac96c1b6f9db2c414a53d2b68;p=elisp%2Fsemi.git diff --git a/pgg-parse.el b/pgg-parse.el index 910b0ff..f3aec73 100644 --- a/pgg-parse.el +++ b/pgg-parse.el @@ -39,9 +39,8 @@ (eval-when-compile (require 'static)) -(require 'poem) (require 'pccl) -(require 'pcustom) +(require 'custom) (require 'mel) (defgroup pgg-parse () @@ -105,8 +104,11 @@ "Armor headers.") (defmacro pgg-format-key-identifier (string) - `(upcase (apply #'format "%02x%02x%02x%02x%02x%02x%02x%02x" - (string-to-int-list ,string)))) + `(mapconcat (lambda (c) (format "%02X" (char-int c))) + ,string "") + ;; `(upcase (apply #'format "%02x%02x%02x%02x%02x%02x%02x%02x" + ;; (string-to-int-list ,string))) + ) (defmacro pgg-parse-time-field (bytes) `(list (logior (lsh (car ,bytes) 8) @@ -127,7 +129,9 @@ (forward-char ,nbytes)))) (defmacro pgg-read-bytes (nbytes) - `(string-to-int-list (pgg-read-bytes-string ,nbytes))) + `(mapcar #'char-int (pgg-read-bytes-string ,nbytes)) + ;; `(string-to-int-list (pgg-read-bytes-string ,nbytes)) + ) (defmacro pgg-read-body-string (ptag) `(if (nth 1 ,ptag) @@ -135,7 +139,9 @@ (pgg-read-bytes-string (- (point-max) (point))))) (defmacro pgg-read-body (ptag) - `(string-to-int-list (pgg-read-body-string ,ptag))) + `(mapcar #'char-int (pgg-read-body-string ,ptag)) + ;; `(string-to-int-list (pgg-read-body-string ,ptag)) + ) (defalias 'pgg-skip-bytes 'forward-char)