]> git.eshelyaron.com Git - emacs.git/commit
Avoid caching file status when they are about to change
authorPo Lu <luangruo@yahoo.com>
Tue, 8 Aug 2023 08:17:10 +0000 (16:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 8 Aug 2023 08:17:10 +0000 (16:17 +0800)
commit440f017658aabe90668c9f6afbd38c1d892c1f6d
tree751f4e601a18a6141d69b7bf547f4813440919eb
parent27113c22f77b7a409c33b956a1a8d8be2d5bc673
Avoid caching file status when they are about to change

* java/org/gnu/emacs/EmacsSafThread.java (EmacsSafThread)
(cacheFileStatus): New argument NO_CACHE.
(cacheDirectoryFromCursor, statDocument1):
* java/org/gnu/emacs/EmacsService.java (EmacsService)
(statDocument): Plumb that argument through each of these wrapper
functions.
* src/android.c (android_init_emacs_service): Adjust JNI
function signatures to agree with statDocument1.
* src/androidvfs.c (android_saf_stat): Plumb that argument
through here.
(android_saf_tree_stat, android_saf_file_open): And don't cache
file status if a write is imminent.
java/org/gnu/emacs/EmacsSafThread.java
java/org/gnu/emacs/EmacsService.java
src/android.c
src/androidvfs.c