aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPo Lu2024-03-26 10:11:26 +0800
committerPo Lu2024-03-26 10:11:26 +0800
commit728bf2c9e5353e68b16808ae455223549c16efc6 (patch)
treece2a4aaf1081bab52fb7b4f2e6b7a312ce9da5ba /src/buffer.c
parent7fba25cf5344f5c3507aedf59e6ae099e7662508 (diff)
downloademacs-728bf2c9e5353e68b16808ae455223549c16efc6.tar.gz
emacs-728bf2c9e5353e68b16808ae455223549c16efc6.zip
Prevent passwords from being recorded during text conversion
* doc/lispref/commands.texi (Misc Events): Document new value of text-conversion-style. * java/org/gnu/emacs/EmacsService.java (EmacsService) <IC_MODE_PASSWORD>: New constant. * java/org/gnu/emacs/EmacsView.java (onCreateInputConnection): Set TYPE_TEXT_VARIATION_PASSWORD and IME_FLAG_FORCE_ASII if mode is IC_MODE_PASSWORD. * lisp/subr.el (read-passwd): Set text-conversion-style to `password'. * src/androidgui.h (enum android_ic_mode): New value ANDROID_IC_MODE_PASSWORD. * src/androidterm.c (android_reset_conversion): Handle `password'. * src/buffer.c (syms_of_buffer) <&BVAR (current_buffer, text_conversion_style)>: Update doc string. * src/textconv.c (syms_of_textconv) <Qpassword>: New DEFSYM. <Vtext_conversion_edits>: Fix typos in doc string.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 07d19dfc078..9f954e1aba9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5900,12 +5900,19 @@ Use Custom to set this variable and update the display. */);
5900 text_conversion_style), 5900 text_conversion_style),
5901 Qnil, 5901 Qnil,
5902 doc: /* How the on screen keyboard's input method should insert in this buffer. 5902 doc: /* How the on screen keyboard's input method should insert in this buffer.
5903
5903When nil, the input method will be disabled and an ordinary keyboard 5904When nil, the input method will be disabled and an ordinary keyboard
5904will be displayed in its place. 5905will be displayed in its place.
5906
5905When the symbol `action', the input method will insert text directly, but 5907When the symbol `action', the input method will insert text directly, but
5906will send `return' key events instead of inserting new line characters. 5908will send `return' key events instead of inserting new line characters.
5907Any other value means that the input method will insert text directly. 5909Any other value means that the input method will insert text directly.
5908 5910
5911When the symbol `password', an input method capable of ASCII input will
5912be enabled, and will not save entered text where it will be retrieved
5913for text suggestions or other features not suited to handling sensitive
5914information, in addition to reporting `return' as when `action'.
5915
5909If you need to make non-buffer local changes to this variable, use 5916If you need to make non-buffer local changes to this variable, use
5910`overriding-text-conversion-style', which see. 5917`overriding-text-conversion-style', which see.
5911 5918