]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the Android port
authorPo Lu <luangruo@yahoo.com>
Fri, 20 Dec 2024 00:39:29 +0000 (08:39 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:17:28 +0000 (16:17 +0100)
* src/dispnew.c (terminal_cursor_magic)
(combine_updates_for_frame): Disable unused code on Android.

* src/frame.c (tty_child_frame_rect): Define out on Android.

(cherry picked from commit e166803f8c1f1870cefb4f5b7828422a145cd3d4)

src/dispnew.c
src/frame.c

index a1b3c3ae1012281bf63b7715f67a7d45cd37b083..3c4b20c23b766a629fde0b9d7c9304a5bc9b6a2e 100644 (file)
@@ -3900,6 +3900,8 @@ is_cursor_obscured (void)
   return cursor_glyph->frame != SELECTED_FRAME ();
 }
 
+#ifndef HAVE_ANDROID
+
 /* Decide where to show the cursor, and whether to hide it.
 
    This works very well for Vertico-Posframe, Transient-Posframe and
@@ -3939,9 +3941,12 @@ terminal_cursor_magic (struct frame *root, struct frame *topmost_child)
     }
 }
 
+#endif /* !HAVE_ANDROID */
+
 void
 combine_updates_for_frame (struct frame *f, bool inhibit_scrolling)
 {
+#ifndef HAVE_ANDROID
   struct frame *root = root_frame (f);
   eassert (FRAME_VISIBLE_P (root));
 
@@ -3978,6 +3983,7 @@ combine_updates_for_frame (struct frame *f, bool inhibit_scrolling)
       add_frame_display_history (f, false);
 #endif
     }
+#endif /* HAVE_ANDROID */
 }
 
 /* Update on the screen all root frames ROOTS.  Called from
index 26a28575cc4ccbe0d871655613fb564b43df011d..8423836a80f8e465919a46603ad29cbcf71020db 100644 (file)
@@ -1442,6 +1442,8 @@ tty_child_size_param (struct frame *child, Lisp_Object key,
   return dflt;
 }
 
+#ifndef HAVE_ANDROID
+
 static void
 tty_child_frame_rect (struct frame *f, Lisp_Object params,
                      int *x, int *y, int *w, int *h)
@@ -1452,6 +1454,8 @@ tty_child_frame_rect (struct frame *f, Lisp_Object params,
   *h = tty_child_size_param (f, Qheight, params, FRAME_TOTAL_LINES (f));
 }
 
+#endif /* !HAVE_ANDROID */
+
 DEFUN ("make-terminal-frame", Fmake_terminal_frame, Smake_terminal_frame,
        1, 1, 0,
        doc: /* Create an additional terminal frame, possibly on another terminal.