From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: Preventing accidental prefix match in input-method Date: Fri, 23 Nov 2018 15:29:31 -0500 Message-ID: <87efbbh710.fsf@md5i.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543004895 30372 195.159.176.226 (23 Nov 2018 20:28:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2018 20:28:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "K. Handa" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 23 21:28:11 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQI3f-0007mM-63 for ged-emacs-devel@m.gmane.org; Fri, 23 Nov 2018 21:28:11 +0100 Original-Received: from localhost ([::1]:54194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQI5l-0004LG-N4 for ged-emacs-devel@m.gmane.org; Fri, 23 Nov 2018 15:30:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQI56-0004LB-2h for emacs-devel@gnu.org; Fri, 23 Nov 2018 15:29:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQI51-0002hD-Mi for emacs-devel@gnu.org; Fri, 23 Nov 2018 15:29:40 -0500 Original-Received: from md5i.com ([75.151.244.229]:36116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gQI51-0002gI-I9; Fri, 23 Nov 2018 15:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+/pfhyAO7O0gk1nN3yXy/xhhF6ziBaerMp0wrYsrOuw=; b=XLbd+QHEezAQPQ3GpUNoD/EQ3r OG+HqtzzWxukGSSu/aGIklTD2jBHsUuQR+lz/xGUiV9hjxN3clXYTQJ6Rm+eQAkazKpkYfKki6mnP +h/ebyREzwuCs35Ha8Sr4ycou; Original-Received: from md5i by md5i.com with local (Exim 4.91) (envelope-from ) id 1gQI4x-00057D-4u; Fri, 23 Nov 2018 15:29:31 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 23 Nov 2018 11:40:17 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 75.151.244.229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:231319 Archived-At: Stefan Monnier writes: > I'd like to setup an input method where I have a mapping > > \b =3D> =CE=B2 > > but where I'd like it that when the user enters `\beta` > the result is `\beta` rather than `=CE=B2eta`. > > I know I can do it by adding mappings > > \ba =3D> \ba > \bb =3D> \bb > \bc =3D> \bc > \bd =3D> \bd > \be =3D> \be > ... > > but that would blow up my input method by a factor 50. > Is there a better solution? Would adding a mapping from `=CE=B2eta` to `\beta` work? --=20 Michael Welsh Duggan (md5i@md5i.com)