From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: epa command names Date: Sat, 12 Nov 2011 10:34:46 +0800 Message-ID: <8762iq5ard.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321065304 31752 80.91.229.12 (12 Nov 2011 02:35:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 02:35:04 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 12 03:35:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RP3Qq-0002Vy-33 for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 03:35:00 +0100 Original-Received: from localhost ([::1]:57906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP3Qp-0002wi-Dm for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 21:34:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP3Qm-0002wd-Py for emacs-devel@gnu.org; Fri, 11 Nov 2011 21:34:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP3Ql-0002mZ-LB for emacs-devel@gnu.org; Fri, 11 Nov 2011 21:34:56 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:40541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP3Ql-0002mG-Is; Fri, 11 Nov 2011 21:34:55 -0500 Original-Received: by gyg10 with SMTP id 10so4168970gyg.0 for ; Fri, 11 Nov 2011 18:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=xg3ck/05Kd/zIqaMvr79JoeC+H66pLNlD68eR11JopA=; b=FxyNHngF4EZJrwEpDgu4M8nz+KX8UJ6cLYdpeRst0ZzOhQkOK+7AhNjv02YWkfkmjD eZ3y6SKEbjGlasGbQ/OVNDc1W+iX64aE2Q+vy3cpmumJ36djvoh+JMAbOdod+5fX0dUK x+rAl/yTOm0ZWHNNcuKDqFKRzG/Ae2LryiXZQ= Original-Received: by 10.68.24.1 with SMTP id q1mr22407002pbf.29.1321065293832; Fri, 11 Nov 2011 18:34:53 -0800 (PST) Original-Received: from home.jasonrumney.net ([180.75.1.0]) by mx.google.com with ESMTPS id f2sm6487736pbg.14.2011.11.11.18.34.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Nov 2011 18:34:52 -0800 (PST) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id 4918012DC; Sat, 12 Nov 2011 10:34:46 +0800 (MYT) In-Reply-To: (Stefan Monnier's message of "Fri, 11 Nov 2011 17:07:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145994 Archived-At: Stefan Monnier writes: > I'm thinking of a way for packages to say "if `mail-encrypt' is matched > by the user's input, then include `epa-mail-encrypt' in the list of > completion candidates". This would handle conflicts very > straightforwardly since if we have a second rule "if `mail-encrypt' is > matched by the user's input, then include `superduper-mail-encrypt' in > the list of completion candidates" M-x mail-encrypt TAB would simply > provide both options as valid completion candidates. Something like Android Intents perhaps? Not only accessible via completion, but any elisp package that wants encryption should be able to say "encrypt-region" and hook into whatever suitable encryption providers the user has installed. And could ELPA be enhanced to provide an index of suitable packages for when a user does not have an appropriate extension installed?