From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: epa command names Date: Sat, 12 Nov 2011 07:36:07 +0100 Message-ID: <87vcqpzw2w.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321079802 1695 80.91.229.12 (12 Nov 2011 06:36:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 06:36:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 12 07:36:34 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 1RP7Ca-0007CZ-Mk for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 07:36:32 +0100 Original-Received: from localhost ([::1]:49717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP7CZ-0008RP-Jn for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 01:36:31 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP7CW-0008Q6-7c for emacs-devel@gnu.org; Sat, 12 Nov 2011 01:36:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP7CU-0004Dg-Ug for emacs-devel@gnu.org; Sat, 12 Nov 2011 01:36:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:51893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP7CU-0004Db-Mo for emacs-devel@gnu.org; Sat, 12 Nov 2011 01:36:26 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RP7CS-0007AE-Mv for emacs-devel@gnu.org; Sat, 12 Nov 2011 07:36:24 +0100 Original-Received: from 56.78.88.79.rev.sfr.net ([79.88.78.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Nov 2011 07:36:24 +0100 Original-Received: from thierry.volpiatto by 56.78.88.79.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Nov 2011 07:36:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 56.78.88.79.rev.sfr.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:El/ydU57wzY23CKtrBGSIfDB7q4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:145999 Archived-At: Stefan Monnier writes: >> I have switched to using epa instead of mailcrypt. The only drawback >> I see is that the command names are not natural; thus, remembering >> them is extra work. >> Shall we give them aliases without `epa-'? For instance, define >> `mail-encrypt' or `encrypt-mail' as an alias for `epa-mail-encrypt'? > > I don't much like this option because of the inability to handle > conflicts. 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. anything does that actually. http://tinyurl.com/cxwq73g -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997