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
This commit is contained in:
Miles Bader 2007-03-07 18:48:33 +00:00
parent 6e52f715f3
commit 8256bd3810
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-03-07 Miles Bader <miles@gnu.org>
* international/isearch-x.el
(isearch-process-search-multibyte-characters): Strip
text-properties from PROMPT to avoid an error from read-string.
2007-03-07 Kim F. Storm <storm@cua.dk>
* complete.el (PC-bindings): Remap lisp-complete-symbol to

View file

@ -103,6 +103,15 @@
(prompt (isearch-message-prefix))
(minibuffer-local-map isearch-minibuffer-local-map)
str junk-hist)
;; PROMPT contains text-properties from
;; `minibuffer-prompt-properties', and some of these can screw up
;; its use in `read-string' below (specifically, a read-only
;; property will cause it to signal an error), so strip them here;
;; read-string will add the same properties itself anyway.
;;
(set-text-properties 0 (length prompt) nil prompt)
(if isearch-input-method-function
(let (;; Let input method work rather tersely.
(input-method-verbose-flag nil))