read-char-from-minibuffer-map))
;; Protect this-command when called from pre-command-hook (bug#45029)
(this-command this-command)
- (result (read-from-minibuffer prompt nil map nil (or history t)))
+ (result (progn
+ ;; Disable text conversion if it is enabled.
+ ;; (bug#65370)
+ (when (fboundp 'set-text-conversion-style)
+ (set-text-conversion-style text-conversion-style))
+ (read-from-minibuffer prompt nil map nil (or history t))))
(char
(if (> (length result) 0)
;; We have a string (with one character), so return the first one.
(while
(let* ((scroll-actions '(recenter scroll-up scroll-down
scroll-other-window scroll-other-window-down))
- ;; Disable text conversion so that real key events
- ;; are sent.
- (overriding-text-conversion-style nil)
(key
(let ((cursor-in-echo-area t))
(when minibuffer-auto-raise
if (WINDOW_LIVE_P (f->old_selected_window)
&& FRAME_WINDOW_P (f)
&& EQ (XWINDOW (f->old_selected_window)->contents,
- buffer))
+ buffer)
+ /* Always reset the text conversion style of the
+ selected frame. */
+ || (f == SELECTED_FRAME ()))
{
block_input ();
reset_frame_state (f);