mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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:
parent
6e52f715f3
commit
8256bd3810
2 changed files with 15 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue