emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e6e818f6cf: Fix re-composition under 'composition-break-at-point'


From: Eli Zaretskii
Subject: master e6e818f6cf: Fix re-composition under 'composition-break-at-point'
Date: Sun, 26 Jun 2022 12:56:06 -0400 (EDT)

branch: master
commit e6e818f6cfff580461d59e93402291892a731a15
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix re-composition under 'composition-break-at-point'
    
    * src/xdisp.c (try_window_id): Disable this optimization if
    'composition-break-at-point' is non-nil.
---
 src/xdisp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xdisp.c b/src/xdisp.c
index cbe6feeae4..dec3176047 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21192,6 +21192,12 @@ try_window_id (struct window *w)
                                                w->frame))))
     GIVE_UP (24);
 
+  /* composition-break-at-point is incompatible with the optimizations
+     in this function, because we need to recompose characters when
+     point moves off their positions.  */
+  if (composition_break_at_point)
+    GIVE_UP (27);
+
   /* Make sure beg_unchanged and end_unchanged are up to date.  Do it
      only if buffer has really changed.  The reason is that the gap is
      initially at Z for freshly visited files.  The code below would



reply via email to

[Prev in Thread] Current Thread [Next in Thread]