]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix read-only prompt problem in isearch
authorMiles Bader <miles@gnu.org>
Wed, 7 Mar 2007 18:48:33 +0000 (18:48 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 7 Mar 2007 18:48:33 +0000 (18:48 +0000)
`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

lisp/ChangeLog
lisp/international/isearch-x.el

index 6c24f6579baab0c2ec5da781a507f43c71cd950f..d3cb2fb94c2375770e5f0be8a541caac7501e1fc 100644 (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
index 76a33d2569e8efc6e2c0461c30212bb837244b69..b75a7cdaab3cd7a4e8442025be9125d37f88d648 100644 (file)
            (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))