From: Eli Zaretskii <eliz@gnu.org>
To: Jason Lewis <jason@dickson.st>
Cc: 16679@debbugs.gnu.org
Subject: bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs
Date: Tue, 11 Feb 2014 18:05:18 +0200 [thread overview]
Message-ID: <83a9dxtz29.fsf@gnu.org> (raw)
In-Reply-To: <52F9B1DC.9090008@dickson.st>
> Date: Tue, 11 Feb 2014 16:15:08 +1100
> From: Jason Lewis <jason@dickson.st>
> CC: rgm@gnu.org, 16679@debbugs.gnu.org
>
> > Please step in Edebug through epa-file-write-region, and tell which
> > part of the condition-case fails with file-error, and why. I see
> > nothing telltale in the backtrace which would suggest any ideas. Thanks.
>
> I think it fails on:
>
>
> line: 250
> (epa-select-keys
> context
> "Select recipients for encryption.
> If no one is selected, symmetric encryption will be performed. "
> recipients)
>
>
> That call seems to take quite a few seconds and then execution jumps to
> the error part on line 257.
>
> Digging deeper with edebug, I have found the error happens in the
> epa-list-keys call and I can make the error happen just by calling
> epa-list-keys directly.
>
> I stepped through a whole lot but I couldn't work out where it happens
> exactly. it seems to be while its stepping through the gpg keys to
> produce the list.
>
> Backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> string-match("\"" nil 0)
> (while (string-match "\"" string index) (setq string (replace-match
> "\\\"" t t string) index (1+ (match-end 0))))
> (cond ((member (aref (car lines) 0) (quote ("pub" "sec" "crt" "crs")))
> (setq cert (member (aref (car lines) 0) (quote ("crt" "crs"))) keys
Thanks. Please show the values of 'string' and '(car lines)' right
before the while loop indicated below (which is part of epg-list-keys):
((equal (aref (car lines) 0) "uid")
;; Decode the UID name as a backslash escaped UTF-8 string,
;; generated by GnuPG/GpgSM.
(setq string (copy-sequence (aref (car lines) 9))
index 0)
(while (string-match "\"" string index) <<<<<<<<<<<<<<<<<<
(setq string (replace-match "\\\"" t t string)
index (1+ (match-end 0))))
next prev parent reply other threads:[~2014-02-11 16:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 4:45 bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs Jason Lewis
2014-02-08 1:42 ` Glenn Morris
2014-02-08 8:54 ` Eli Zaretskii
2014-02-08 10:05 ` Jason Lewis
2014-02-08 14:18 ` Eli Zaretskii
2014-02-10 23:04 ` Jason Lewis
2014-02-11 3:46 ` Eli Zaretskii
2014-02-11 5:15 ` Jason Lewis
2014-02-11 16:05 ` Eli Zaretskii [this message]
2014-02-12 2:38 ` Jason Lewis
2019-08-30 10:59 ` Lars Ingebrigtsen
2019-08-30 11:44 ` Jason Lewis
2019-09-04 13:00 ` Lars Ingebrigtsen
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=83a9dxtz29.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=16679@debbugs.gnu.org \
--cc=jason@dickson.st \
/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.