diff options
author | Arun Isaac | 2022-06-16 00:42:04 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-16 00:43:20 +0530 |
commit | d22f62e9e2d0d03bf9deba8dbfa5177a514083d7 (patch) | |
tree | 644b2b7805931348df817894a3c87c489e55e800 | |
parent | daa980d1e2becc6907998290503cc768f6aa8fcc (diff) | |
download | thogai-d22f62e9e2d0d03bf9deba8dbfa5177a514083d7.tar.gz thogai-d22f62e9e2d0d03bf9deba8dbfa5177a514083d7.tar.lz thogai-d22f62e9e2d0d03bf9deba8dbfa5177a514083d7.zip |
Implement prefixes in terms of the attach operator.
* thogai.el (thogai-insert-translation): Implement prefixes in terms
of the attach operator.
-rw-r--r-- | thogai.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) |