From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Preventing accidental prefix match in input-method Date: Fri, 23 Nov 2018 18:03:10 -0500 Message-ID: References: <87efbbh710.fsf@md5i.com> <87y39j9zsq.fsf@fastmail.fm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1543014164 22965 195.159.176.226 (23 Nov 2018 23:02:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2018 23:02:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 24 00:02:40 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 1gQKT9-0005oH-NB for ged-emacs-devel@m.gmane.org; Sat, 24 Nov 2018 00:02:39 +0100 Original-Received: from localhost ([::1]:54527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQKVF-0001bc-TI for ged-emacs-devel@m.gmane.org; Fri, 23 Nov 2018 18:04:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQKTq-0000qA-60 for emacs-devel@gnu.org; Fri, 23 Nov 2018 18:03:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQKTm-0003j8-U0 for emacs-devel@gnu.org; Fri, 23 Nov 2018 18:03:22 -0500 Original-Received: from [195.159.176.226] (port=34412 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQKTm-0003h8-KV for emacs-devel@gnu.org; Fri, 23 Nov 2018 18:03:18 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gQKRd-0003ln-HD for emacs-devel@gnu.org; Sat, 24 Nov 2018 00:01:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:F5g4OZPYXqi9OtfPPlwwAoKl8AY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:231323 Archived-At: >> IOW I'd like to be able to say something like "\b is rewritten to β but >> only if immediately followed by a word boundary". [...] > The way to deal with this, AFAICT, is to add a binding that effectively > cancels the "special" character. For example, latin-9-prefix uses space for > this: typing ' followed by a gives «á», but ' + space + a gives «'a». The > TeX input method allows you to type backslash twice to get > a single backslash. Yes, that's what I do now. Doubling backslash works well in cases where it's only needed in unusual circumstances. But I find it very inconvenient in latex-mode because I very frequently need to type a normal \. Stefan