aboutsummaryrefslogtreecommitdiffstats
path: root/src/textconv.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/textconv.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/textconv.c')
-rw-r--r--src/textconv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textconv.c b/src/textconv.c
index 0941848dd09..9625c884e16 100644
--- a/src/textconv.c
+++ b/src/textconv.c
@@ -2318,6 +2318,7 @@ void
2318syms_of_textconv (void) 2318syms_of_textconv (void)
2319{ 2319{
2320 DEFSYM (Qaction, "action"); 2320 DEFSYM (Qaction, "action");
2321 DEFSYM (Qpassword, "password");
2321 DEFSYM (Qtext_conversion, "text-conversion"); 2322 DEFSYM (Qtext_conversion, "text-conversion");
2322 DEFSYM (Qpush_mark, "push-mark"); 2323 DEFSYM (Qpush_mark, "push-mark");
2323 DEFSYM (Qunderline, "underline"); 2324 DEFSYM (Qunderline, "underline");
@@ -2325,7 +2326,7 @@ syms_of_textconv (void)
2325 "overriding-text-conversion-style"); 2326 "overriding-text-conversion-style");
2326 2327
2327 DEFVAR_LISP ("text-conversion-edits", Vtext_conversion_edits, 2328 DEFVAR_LISP ("text-conversion-edits", Vtext_conversion_edits,
2328 doc: /* List of buffers that were last edited as result of text conversion. 2329 doc: /* List of buffers last edited as a result of text conversion.
2329 2330
2330This list can be used while handling a `text-conversion' event to 2331This list can be used while handling a `text-conversion' event to
2331determine which changes have taken place. 2332determine which changes have taken place.