; Update Android port

* lisp/subr.el (y-or-n-p): Don't call set-text-conversion-style when
not present.
This commit is contained in:
Po Lu 2023-08-05 17:16:16 +08:00
parent a5bbc51f47
commit 8a955727cf

View file

@ -3799,7 +3799,8 @@ like) while `y-or-n-p' is running)."
;; If the minibuffer is already active, the
;; selected window might not change. Disable
;; text conversion by hand.
(set-text-conversion-style text-conversion-style)
(when (fboundp 'set-text-conversion-style)
(set-text-conversion-style text-conversion-style))
(read-from-minibuffer
prompt nil keymap nil
(or y-or-n-p-history-variable t)))))