Mercurial > emacs
comparison lisp/international/isearch-x.el @ 76379:67cd2867fe17
Fix read-only prompt problem in isearch
`isearch-process-search-multibyte-characters' would signal an error if
minibuffer-prompt-properties contained a `read-only t' property.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-666
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 07 Mar 2007 18:48:33 +0000 |
parents | e3694f1cb928 |
children | 0ccf5ac2795e 91bf6e05918b |
comparison
equal
deleted
inserted
replaced
76378:7722d7feb5cc | 76379:67cd2867fe17 |
---|---|
101 (if (eq this-command 'isearch-printing-char) | 101 (if (eq this-command 'isearch-printing-char) |
102 (let ((overriding-terminal-local-map nil) | 102 (let ((overriding-terminal-local-map nil) |
103 (prompt (isearch-message-prefix)) | 103 (prompt (isearch-message-prefix)) |
104 (minibuffer-local-map isearch-minibuffer-local-map) | 104 (minibuffer-local-map isearch-minibuffer-local-map) |
105 str junk-hist) | 105 str junk-hist) |
106 | |
107 ;; PROMPT contains text-properties from | |
108 ;; `minibuffer-prompt-properties', and some of these can screw up | |
109 ;; its use in `read-string' below (specifically, a read-only | |
110 ;; property will cause it to signal an error), so strip them here; | |
111 ;; read-string will add the same properties itself anyway. | |
112 ;; | |
113 (set-text-properties 0 (length prompt) nil prompt) | |
114 | |
106 (if isearch-input-method-function | 115 (if isearch-input-method-function |
107 (let (;; Let input method work rather tersely. | 116 (let (;; Let input method work rather tersely. |
108 (input-method-verbose-flag nil)) | 117 (input-method-verbose-flag nil)) |
109 (setq unread-command-events | 118 (setq unread-command-events |
110 (cons 'with-input-method | 119 (cons 'with-input-method |