aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2007-03-07 18:48:33 +0000
committerMiles Bader2007-03-07 18:48:33 +0000
commit8256bd38106db3a24c67c9e68a792d94c5484664 (patch)
tree578ff78d05951eed3862da130c3622414520fbfb /lisp
parent6e52f715f3c389100a2a6450ee91081046d2460d (diff)
downloademacs-8256bd38106db3a24c67c9e68a792d94c5484664.tar.gz
emacs-8256bd38106db3a24c67c9e68a792d94c5484664.zip
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
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/international/isearch-x.el9
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6c24f6579ba..d3cb2fb94c2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-03-07 Miles Bader <miles@gnu.org>
2
3 * international/isearch-x.el
4 (isearch-process-search-multibyte-characters): Strip
5 text-properties from PROMPT to avoid an error from read-string.
6
12007-03-07 Kim F. Storm <storm@cua.dk> 72007-03-07 Kim F. Storm <storm@cua.dk>
2 8
3 * complete.el (PC-bindings): Remap lisp-complete-symbol to 9 * complete.el (PC-bindings): Remap lisp-complete-symbol to
diff --git a/lisp/international/isearch-x.el b/lisp/international/isearch-x.el
index 76a33d2569e..b75a7cdaab3 100644
--- a/lisp/international/isearch-x.el
+++ b/lisp/international/isearch-x.el
@@ -103,6 +103,15 @@
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))