From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#21997: epa--key-widget-value-create ignores signing subkeys Date: Mon, 23 Nov 2015 09:38:52 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448300429 19734 80.91.229.3 (23 Nov 2015 17:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 17:40:29 +0000 (UTC) To: 21997@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 18:40:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0v65-0003vo-Ff for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 18:40:13 +0100 Original-Received: from localhost ([::1]:33760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v66-0002qa-2K for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 12:40:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v5z-0002jp-4o for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:40:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0v5v-0007lI-Pe for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:40:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v5v-0007lE-MK for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0v5v-0006fI-DZ for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2015 17:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21997 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144830036225500 (code B ref -1); Mon, 23 Nov 2015 17:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Nov 2015 17:39:22 +0000 Original-Received: from localhost ([127.0.0.1]:49785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0v5G-0006dD-Gh for submit@debbugs.gnu.org; Mon, 23 Nov 2015 12:39:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39426) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0v4x-0006cc-0F for submit@debbugs.gnu.org; Mon, 23 Nov 2015 12:39:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0v4v-0007fK-OS for submit@debbugs.gnu.org; Mon, 23 Nov 2015 12:39:02 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v4v-0007fG-MC for submit@debbugs.gnu.org; Mon, 23 Nov 2015 12:39:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v4u-0002a8-CZ for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:39:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0v4r-0007ev-14 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:39:00 -0500 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:35130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v4q-0007er-Rk for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 12:38:56 -0500 Original-Received: by pacej9 with SMTP id ej9so197395906pac.2 for ; Mon, 23 Nov 2015 09:38:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mail-followup-to :mime-version:content-type; bh=ZeQNj0Iythffv17ea4qqkO5iUa5lr/inlR6r9bN6HVY=; b=bopYzBiidebl5p3cidENYVoH/RXi+LrRCpoiFrHRd16P6z9LHuRYWCz/eQd5d6AIA9 zgNByoK5I8aRq/LOb8vtPz/9raFMal9CiTD7Ylz/uNqyh3WKhEROgjV0WO0KLiI1PEDi n7AE7YNvCL6WlJ4Aqf3GD/as0alcedehkqsIn5h3DftqKqxlZVzccPUT2BikZYh6nKCG NhojGuM9rbdt52IIedJt2n5uH4GcBEABTCLuzz0wOUYYGUMPOHX/rNXY5fT+mKAZrikD TmPkfFrLyhRy61IxEIclbvlGnzw+0Wr04CJEL0pCRBd7LwphRniqSNIi3YW02cgcPZjg vC4g== X-Received: by 10.98.14.75 with SMTP id w72mr17610696pfi.166.1448300336395; Mon, 23 Nov 2015 09:38:56 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id vk10sm11171254pbc.66.2015.11.23.09.38.54 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 23 Nov 2015 09:38:54 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id DC55D10ABA86B; Mon, 23 Nov 2015 09:38:53 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109133 Archived-At: When listing secret keys using `M-x epa-list-secret-keys', one can press RET on the inserted widget to see a list of associated subkeys. This shows that epa.el is correctly parsing the subkeys of one's secret key. However, the :value of that widget always chooses the first subkey, as seen here: (defun epa--key-widget-value-create (widget) (let* ((key (widget-get widget :value)) --> (primary-sub-key (car (epg-key-sub-key-list key))) (primary-user-id (car (epg-key-user-id-list key)))) ...)) For people with multiple subkeys -- especially those who use dedicated subkeys for signing and/or encrypting -- it would be nice to be able to select which subkey(s) to use. The only way I can see this fitting into the current EasyPG selection architecture would be to present each subkey as if it were a separate, virtual secret key. In other words, where every subkey becomes a separate widget in the list and selection buffers. This also affects mml signing in Gnus, since it also uses the widget :value to determine which key to use for signing. John