From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: epa command names Date: Fri, 11 Nov 2011 14:28:24 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321050526 13109 80.91.229.12 (11 Nov 2011 22:28:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 22:28:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 11 23:28:42 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 1ROzaR-0003p5-MK for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 23:28:39 +0100 Original-Received: from localhost ([::1]:55091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROzaQ-0003JN-Tb for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 17:28:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROzaO-0003J6-Ga for emacs-devel@gnu.org; Fri, 11 Nov 2011 17:28:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROzaN-0005Pr-9Q for emacs-devel@gnu.org; Fri, 11 Nov 2011 17:28:36 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:42580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROzaN-0005Ph-4G; Fri, 11 Nov 2011 17:28:35 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pABMSVna030632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Nov 2011 22:28:32 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pABMSU7R028172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Nov 2011 22:28:30 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pABMSPfD002740; Fri, 11 Nov 2011 16:28:25 -0600 Original-Received: from dradamslap1 (/10.159.61.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 Nov 2011 14:28:24 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcygvkuhyqBNtraHTgukn/fkEfA29gAAd86A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090203.4EBDA190.003F,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:145991 Archived-At: > I'd much rather make M-x a bit more permissive > such that M-x mail-encrypt falls back to epa-mail-encrypt > (probably via completion). > > One way is something along the lines of the `substring' > completion-style (which we could restrict to substrings > that start after a word boundary), but I think we'd want > something less general. > > 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. You had one problem. And now you have two... (No, I will say no more. Just going on record.)