<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/java, branch scratch/windows-98</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>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>* java/Makefile.in (emacs.apk-in): Don't compress *.gz files on SDK 8.</title>
<updated>2024-06-18T02:11:51+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-18T02:11:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3c2df93e063761ee78b25157c689b6d26210f80b'/>
<id>3c2df93e063761ee78b25157c689b6d26210f80b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>; Fix typos</title>
<updated>2024-06-16T20:38:26+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2024-06-16T19:59:42+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c0eefebabfee011f0ec7631d055e482e4965a24d'/>
<id>c0eefebabfee011f0ec7631d055e482e4965a24d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>Restore omitted dependency</title>
<updated>2024-06-12T09:03:00+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-12T09:02:07+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6d64cf5ee1bf67e84f7e338b5de5aa139193d2e7'/>
<id>6d64cf5ee1bf67e84f7e338b5de5aa139193d2e7</id>
<content type='text'>
* java/Makefile.in (install_temp): Depend on
$(libsrc)/asset-directory-tool.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/Makefile.in (install_temp): Depend on
$(libsrc)/asset-directory-tool.
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore functionality on Android 2.2</title>
<updated>2024-06-12T08:44:21+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-12T08:44:21+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=02e70821b3800a082aec215a9ab8adbfafe9ad76'/>
<id>02e70821b3800a082aec215a9ab8adbfafe9ad76</id>
<content type='text'>
* java/Makefile.in (install_temp): Do not compress
directory-tree and generate such files in a special format that
stores file sizes.

* lib-src/asset-directory-tool.c (struct directory_tree): New
field st_size.
(need_file_size): New variable.
(main_1, main_2, main): Write file sizes before sibling offsets
if `--api-8' is specified.

* src/android-asset.h (struct android_asset_manager): New field
open.
(struct android_asset): New field name.
(AAssetManager_fromJava): Load AssetManager#open.
(AAssetManager_open): If a directory tree has already been
loaded, search for a matching asset and load its size thence, to
avoid the requirement of an AssetFileDescriptor.
(AAsset_close): Don't assume asset-&gt;fd exists.  Release
asset-&gt;name.
(AAsset_getLength): Likewise.
(android_asset_create_stream): If asset-&gt;name exists, call
AssetManager#open, in order to open compressed files.

* src/androidvfs.c (OLD_ANDROID_ASSETS): Define to 1 on API 8.
(android_extract_long, android_scan_directory_tree): Mark
arguments as const.  Adjust offsets when OLD_ANDROID_ASSETS.
(android_is_directory, android_init_assets, android_afs_readdir):
Likewise.

* src/lread.c (lread_fstat): Define to sys_fstat, not fstat.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* java/Makefile.in (install_temp): Do not compress
directory-tree and generate such files in a special format that
stores file sizes.

* lib-src/asset-directory-tool.c (struct directory_tree): New
field st_size.
(need_file_size): New variable.
(main_1, main_2, main): Write file sizes before sibling offsets
if `--api-8' is specified.

* src/android-asset.h (struct android_asset_manager): New field
open.
(struct android_asset): New field name.
(AAssetManager_fromJava): Load AssetManager#open.
(AAssetManager_open): If a directory tree has already been
loaded, search for a matching asset and load its size thence, to
avoid the requirement of an AssetFileDescriptor.
(AAsset_close): Don't assume asset-&gt;fd exists.  Release
asset-&gt;name.
(AAsset_getLength): Likewise.
(android_asset_create_stream): If asset-&gt;name exists, call
AssetManager#open, in order to open compressed files.

* src/androidvfs.c (OLD_ANDROID_ASSETS): Define to 1 on API 8.
(android_extract_long, android_scan_directory_tree): Mark
arguments as const.  Adjust offsets when OLD_ANDROID_ASSETS.
(android_is_directory, android_init_assets, android_afs_readdir):
Likewise.

* src/lread.c (lread_fstat): Define to sys_fstat, not fstat.
</pre>
</div>
</content>
</entry>
<entry>
<title>; * java/Makefile.in: Fix typo.</title>
<updated>2024-06-12T05:59:08+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-06-12T05:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f543ec18f44fa64d06e1ab45e1484326f8451ebe'/>
<id>f543ec18f44fa64d06e1ab45e1484326f8451ebe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
