From d22f62e9e2d0d03bf9deba8dbfa5177a514083d7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 16 Jun 2022 00:42:04 +0530 Subject: Implement prefixes in terms of the attach operator. * thogai.el (thogai-insert-translation): Implement prefixes in terms of the attach operator. --- thogai.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/thogai.el b/thogai.el index 44c1716..8a8091f 100644 --- a/thogai.el +++ b/thogai.el @@ -254,11 +254,10 @@ External callers should always pass nil as the value." ;; Prefix ((pred (lambda (str) (string-suffix-p "^}" str))) - (unless non-first-part-p - (thogai-insert-space)) - (thogai-insert-literal - (string-remove-prefix "{" (string-remove-suffix "^}" translation))) - (setq thogai-attach-next t)) + (thogai-insert-translation + (concat (string-remove-prefix "{" (string-remove-suffix "^}" translation)) + "{^}") + non-first-part-p)) ;; Glue operator ((pred (lambda (str) (and (string-prefix-p "{&" str) -- cgit v1.2.3