]> git.eshelyaron.com Git - emacs.git/commit
Allow starting Emacs --debug-init on Android
authorPo Lu <luangruo@yahoo.com>
Fri, 26 May 2023 07:20:39 +0000 (15:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 26 May 2023 07:20:39 +0000 (15:20 +0800)
commit0eb1f4e57125117006f109a5549082008fc9fbb1
tree12fdeab1893c34654b31cb3ad5efae188d08e405
parentddaca337e3a81e811de6e0f61ed78c414a1986be
Allow starting Emacs --debug-init on Android

* doc/emacs/android.texi (Android Troubleshooting): Document
`debug-init' option.
* java/AndroidManifest.xml.in
(EmacsLauncherPreferencesActivity): New activity.  Export on
systems older than Android 7.0.
* java/org/gnu/emacs/EmacsActivity.java (onCreate): Adjust for
string startup argument.
* java/org/gnu/emacs/EmacsLauncherPreferencesActivity.java: New
file.
* java/org/gnu/emacs/EmacsPreferencesActivity.java
(EmacsPreferencesActivity): Don't make final.
(startEmacsQ): Give start-up argument as an argument, not as a
boolean.
(startEmacsDebugInit): New function.
(onCreate): Register new listener; make final.
* java/org/gnu/emacs/EmacsService.java (onCreate): Pass
extraStartupArgument.
* java/org/gnu/emacs/EmacsThread.java (EmacsThread): Rename
startDashQ to extraStartupArgument.
(run): Adjust accordingly.
* java/res/values-v24/bool.xml:
* java/res/values/bool.xml:
* java/res/values/strings.xml: New files.
* java/res/xml/preferences.xml: Add new option.  Move string
resources around.
12 files changed:
doc/emacs/android.texi
java/AndroidManifest.xml.in
java/org/gnu/emacs/EmacsActivity.java
java/org/gnu/emacs/EmacsLauncherPreferencesActivity.java [new file with mode: 0644]
java/org/gnu/emacs/EmacsPreferencesActivity.java
java/org/gnu/emacs/EmacsService.java
java/org/gnu/emacs/EmacsThread.java
java/res/drawable/emacs_wrench.png [new file with mode: 0644]
java/res/values-v24/bool.xml [new file with mode: 0644]
java/res/values/bool.xml
java/res/values/strings.xml [new file with mode: 0644]
java/res/xml/preferences.xml