]> git.eshelyaron.com Git - emacs.git/commit
Implement cross-directory SAF rename operations
authorPo Lu <luangruo@yahoo.com>
Mon, 31 Jul 2023 02:50:12 +0000 (10:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 31 Jul 2023 02:50:12 +0000 (10:50 +0800)
commit5a8130ab967cb296d028539d10c749ee35f62e6a
tree65095973fc4084f628f205f99857280e6d18b83f
parent2ad50c7ff5093e7a1d3a5a06f042430e7d46c117
Implement cross-directory SAF rename operations

* java/org/gnu/emacs/EmacsService.java (renameDocument): Don't
catch UnsupportedOperationException; handle ENOSYS in
android_saf_rename_document instead.
(moveDocument): New function.
* lisp/subr.el (y-or-n-p): Always change the text conversion
style.
* src/android.c (android_init_emacs_service)
(android_exception_check_4): New function.
* src/android.h: Update Java function table.
* src/androidvfs.c (android_saf_rename_document): Handle ENOSYS
here by setting errno to EXDEV.
(android_saf_move_document): New function.
(android_document_id_from_name): Take const `dir_name'.
(android_saf_tree_rename): Use delete-move-rename to implement
cross-directory renames.
java/org/gnu/emacs/EmacsService.java
lisp/subr.el
src/android.c
src/android.h
src/androidvfs.c