aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2023-02-18 23:09:30 +0800
committerPo Lu2023-02-18 23:09:30 +0800
commita61f9cb77ced0607e4607bc5d82ae06165e6138d (patch)
tree36de4bab015344008d8bdbe122840cf6e53ec131 /java
parentfa1b27930ea5f61d92880c3c252774f2f97f529d (diff)
downloademacs-a61f9cb77ced0607e4607bc5d82ae06165e6138d.tar.gz
emacs-a61f9cb77ced0607e4607bc5d82ae06165e6138d.zip
Update Android port
* doc/emacs/input.texi (On-Screen Keyboards): Document `touch-screen-always-display'. * doc/lispref/commands.texi (Misc Events): Improve documentation of text conversion events. * java/org/gnu/emacs/EmacsDialog.java (toAlertDialog, display1): Reorder buttons to make more sense. * lisp/elec-pair.el (electric-pair-analyze-conversion): New function. * lisp/simple.el (analyze-text-conversion): Improve integration with electric pair modes. * lisp/term.el (term-mode): Always display the onscreen keyboard. * lisp/touch-screen.el (touch-screen-display-keyboard) (touch-screen-handle-point-up): Respect new options. * src/textconv.c (really_set_composing_text): Stop widenining unnecessarily. (really_delete_surrounding_text): Really delete surrounding text. Give text conversion analyzers the buffer text. (syms_of_textconv): Update doc string.
Diffstat (limited to 'java')
-rw-r--r--java/org/gnu/emacs/EmacsDialog.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/java/org/gnu/emacs/EmacsDialog.java b/java/org/gnu/emacs/EmacsDialog.java
index bc0333e99b9..9f9124ce99c 100644
--- a/java/org/gnu/emacs/EmacsDialog.java
+++ b/java/org/gnu/emacs/EmacsDialog.java
@@ -166,14 +166,14 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
166 if (size >= 2) 166 if (size >= 2)
167 { 167 {
168 button = buttons.get (1); 168 button = buttons.get (1);
169 dialog.setButton (DialogInterface.BUTTON_NEUTRAL, 169 dialog.setButton (DialogInterface.BUTTON_NEGATIVE,
170 button.name, button); 170 button.name, button);
171 } 171 }
172 172
173 if (size >= 3) 173 if (size >= 3)
174 { 174 {
175 button = buttons.get (2); 175 button = buttons.get (2);
176 dialog.setButton (DialogInterface.BUTTON_NEGATIVE, 176 dialog.setButton (DialogInterface.BUTTON_NEUTRAL,
177 button.name, button); 177 button.name, button);
178 } 178 }
179 } 179 }
@@ -274,10 +274,8 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
274 if (size >= 2) 274 if (size >= 2)
275 { 275 {
276 button = buttons.get (1); 276 button = buttons.get (1);
277 dialog.setButton (DialogInterface.BUTTON_NEUTRAL,
278 button.name, button);
279 buttonView 277 buttonView
280 = dialog.getButton (DialogInterface.BUTTON_NEUTRAL); 278 = dialog.getButton (DialogInterface.BUTTON_NEGATIVE);
281 buttonView.setEnabled (button.enabled); 279 buttonView.setEnabled (button.enabled);
282 } 280 }
283 281
@@ -285,7 +283,7 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
285 { 283 {
286 button = buttons.get (2); 284 button = buttons.get (2);
287 buttonView 285 buttonView
288 = dialog.getButton (DialogInterface.BUTTON_NEGATIVE); 286 = dialog.getButton (DialogInterface.BUTTON_NEUTRAL);
289 buttonView.setEnabled (button.enabled); 287 buttonView.setEnabled (button.enabled);
290 } 288 }
291 } 289 }