<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/java/org/gnu, branch scratch/comp-branch-optim</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Correct conditions for iconification on Android</title>
<updated>2024-07-08T07:43:22+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-07-08T07:33:26+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=67f291ddae31cc4623fd93280b141ee8611f3f5a'/>
<id>67f291ddae31cc4623fd93280b141ee8611f3f5a</id>
<content type='text'>
* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity)
&lt;isPaused&gt;: Rename to &lt;isStopped&gt;.
(attachWindow): Adjust to match.
(onPause): Delete function.
(onStop): Deem frames iconified after calls to onStop instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity)
&lt;isPaused&gt;: Rename to &lt;isStopped&gt;.
(attachWindow): Adjust to match.
(onPause): Delete function.
(onStop): Deem frames iconified after calls to onStop instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent crashes and related issues if initial activity is destroyed on Android</title>
<updated>2024-06-27T03:07:38+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-27T03:06:59+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=860840621a1ebe2e4f17ba8ae78d441ea75650b2'/>
<id>860840621a1ebe2e4f17ba8ae78d441ea75650b2</id>
<content type='text'>
* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) &lt;initialWindowCreated&gt;: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.

* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity.  Catch exceptions around startActivity.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) &lt;initialWindowCreated&gt;: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.

* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity.  Catch exceptions around startActivity.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix omission of updates to child frames on Android</title>
<updated>2024-06-24T04:04:05+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-24T04:04:05+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=73a58329a6946f5abc62fee2647efba56cce236b'/>
<id>73a58329a6946f5abc62fee2647efba56cce236b</id>
<content type='text'>
* java/org/gnu/emacs/EmacsView.java (onAttachedFromWindow):
Force a layout cycle rather than report exposure immediately.
(prepareForLayout): Delete function.

* java/org/gnu/emacs/EmacsWindow.java (mapWindow): Remove
redundant calls to prepareForLayout.

* src/androidterm.c (handle_one_android_event): Do not swap
buffers when exposure is registered by a frame only partially
updated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsView.java (onAttachedFromWindow):
Force a layout cycle rather than report exposure immediately.
(prepareForLayout): Delete function.

* java/org/gnu/emacs/EmacsWindow.java (mapWindow): Remove
redundant calls to prepareForLayout.

* src/androidterm.c (handle_one_android_event): Do not swap
buffers when exposure is registered by a frame only partially
updated.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid races between the tooltip and compositor on X and Android</title>
<updated>2024-06-19T02:57:07+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-19T02:57:07+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5fceb53856583384e7adeab52494d1afc6eae666'/>
<id>5fceb53856583384e7adeab52494d1afc6eae666</id>
<content type='text'>
* java/org/gnu/emacs/EmacsView.java (onLayout): Don't send
exposure events when the window is still to be attached.

* src/androidfns.c (Fx_show_tip):

* src/xfns.c (Fx_show_tip): Block async input around initial
frame update.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsView.java (onLayout): Don't send
exposure events when the window is still to be attached.

* src/androidfns.c (Fx_show_tip):

* src/xfns.c (Fx_show_tip): Block async input around initial
frame update.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix window class of Android tooltips</title>
<updated>2024-06-18T07:53:18+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-18T07:53:18+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=fb04a51894874aba3f9981723981ca336ba5ff77'/>
<id>fb04a51894874aba3f9981723981ca336ba5ff77</id>
<content type='text'>
* java/org/gnu/emacs/EmacsWindow.java (getWindowLayoutParams):
Declare as a panel, rather than an attached dialog.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsWindow.java (getWindowLayoutParams):
Declare as a panel, rather than an attached dialog.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reinforce bitmap reconfiguration on Android</title>
<updated>2024-06-17T09:45:48+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-17T09:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=82f0014273193d27c71a1fcb9be778c85cfa5e65'/>
<id>82f0014273193d27c71a1fcb9be778c85cfa5e65</id>
<content type='text'>
* java/org/gnu/emacs/EmacsView.java (EmacsView) &lt;unswapped&gt;: New
field in which to record whether the back buffer has received
contents beyond those present at the last buffer swap.
&lt;dimensionsLock&gt;: Delete field.
(onAttachedToWindow, onLayout, handleDirtyBitmap)
(prepareForLayout): Rather, synchronize window dimensions with
the view.
(getCanvas, getBitmap): Do not reconfigure the back buffer
bitmap if such outstanding data exists.
(postSwapBuffers): New function.
(swapBuffers): If such outstanding data exists and the back
bufferis pending reconfiguration, recreate the back buffer and
report exposure.

* src/androidterm.c (handle_one_android_event): Fix indentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsView.java (EmacsView) &lt;unswapped&gt;: New
field in which to record whether the back buffer has received
contents beyond those present at the last buffer swap.
&lt;dimensionsLock&gt;: Delete field.
(onAttachedToWindow, onLayout, handleDirtyBitmap)
(prepareForLayout): Rather, synchronize window dimensions with
the view.
(getCanvas, getBitmap): Do not reconfigure the back buffer
bitmap if such outstanding data exists.
(postSwapBuffers): New function.
(swapBuffers): If such outstanding data exists and the back
bufferis pending reconfiguration, recreate the back buffer and
report exposure.

* src/androidterm.c (handle_one_android_event): Fix indentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor adjustments to battery.el on Android</title>
<updated>2024-06-16T07:28:54+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-16T07:27:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=a39f6480ea5b6d3f81db90808123cdeb54790787'/>
<id>a39f6480ea5b6d3f81db90808123cdeb54790787</id>
<content type='text'>
* src/android.c (android_query_battery):

* java/org/gnu/emacs/EmacsService.java (queryBattery19)
(queryBattery): Reorder items in value for consistency with
Fandroid_query_battery.

* lisp/battery.el (battery-status-function): Select
battery-android only when android-query-battery is present.
(battery-android): Return temperature and correct values of
power source constants.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/android.c (android_query_battery):

* java/org/gnu/emacs/EmacsService.java (queryBattery19)
(queryBattery): Reorder items in value for consistency with
Fandroid_query_battery.

* lisp/battery.el (battery-status-function): Select
battery-android only when android-query-battery is present.
(battery-android): Return temperature and correct values of
power source constants.
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify bitmap reallocation on Android</title>
<updated>2024-06-16T03:35:44+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-16T03:35:44+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8d60b6bab8b95e4f3b350a8b093e8f60e3f83f69'/>
<id>8d60b6bab8b95e4f3b350a8b093e8f60e3f83f69</id>
<content type='text'>
* java/org/gnu/emacs/EmacsView.java: Update outdated commentary.
(handleDirtyBitmap): Don't copy contents of the previous bitmap
to the new.
(onLayout): Unconditionally expose upon layout changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsView.java: Update outdated commentary.
(handleDirtyBitmap): Don't copy contents of the previous bitmap
to the new.
(onLayout): Unconditionally expose upon layout changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Eliminate some redundant synchronization on Android</title>
<updated>2024-06-11T06:40:55+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-11T06:39:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=677f082b0feda295e6a710b5dac6040f57cfad8b'/>
<id>677f082b0feda295e6a710b5dac6040f57cfad8b</id>
<content type='text'>
* java/org/gnu/emacs/EmacsService.java (resetIC): Return on all
versions of Android if the connection need not be reset.

* java/org/gnu/emacs/EmacsView.java (getICMode, setICMode):
Remove needless synchronization.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/org/gnu/emacs/EmacsService.java (resetIC): Return on all
versions of Android if the connection need not be reset.

* java/org/gnu/emacs/EmacsView.java (getICMode, setICMode):
Remove needless synchronization.
</pre>
</div>
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2024-06-05T05:16:28+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2024-06-05T05:13:47+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3dcac22dd4225fdec0b97408da38f74de2a77bef'/>
<id>3dcac22dd4225fdec0b97408da38f74de2a77bef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
