From: Po Lu Date: Fri, 24 Feb 2023 13:22:47 +0000 (+0800) Subject: Enable normal-erase-is-backspace on Android X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ff3904e3c2767b2840624db68b5cf9db2246d3b;p=emacs.git Enable normal-erase-is-backspace on Android * lisp/frame.el (display-symbol-keys-p): * lisp/simple.el (normal-erase-is-backspace-setup-frame): Return appropriate values on Android. --- diff --git a/lisp/frame.el b/lisp/frame.el index 3fd8dbbdc36..3e28a22d469 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -2217,7 +2217,7 @@ frame's display)." This means that, for example, DISPLAY can differentiate between the keybinding RET and [return]." (let ((frame-type (framep-on-display display))) - (or (memq frame-type '(x w32 ns pc pgtk haiku)) + (or (memq frame-type '(x w32 ns pc pgtk haiku android)) ;; MS-DOS and MS-Windows terminals have built-in support for ;; function (symbol) keys (memq system-type '(ms-dos windows-nt))))) diff --git a/lisp/simple.el b/lisp/simple.el index 1194c368ba1..b265113048a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -10454,7 +10454,7 @@ call `normal-erase-is-backspace-mode' (which see) instead." (if (if (eq normal-erase-is-backspace 'maybe) (and (not noninteractive) (or (memq system-type '(ms-dos windows-nt)) - (memq window-system '(w32 ns pgtk haiku)) + (memq window-system '(w32 ns pgtk haiku android)) (and (eq window-system 'x) (fboundp 'x-backspace-delete-keys-p) (x-backspace-delete-keys-p))