]> git.eshelyaron.com Git - emacs.git/commit
Use text properties to save search parameters. (Bug#22479)
authorJuri Linkov <juri@linkov.net>
Thu, 19 Apr 2018 20:30:46 +0000 (23:30 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 19 Apr 2018 20:30:46 +0000 (23:30 +0300)
commit99de04e6a84dbc93aab479666af126c8fb109b95
tree20ceee48fe073cdc4713017b64025975df5bf879
parent54f60fcad198be5f39fead6f4d453cea0942322a
Use text properties to save search parameters.  (Bug#22479)

* lisp/isearch.el (isearch-update-ring): Call isearch-string-propertize.
Delete duplicates with possibly different text properties.
(isearch-string-propertize)
(isearch-update-from-string-properties): New functions.
(with-isearch-suspended, isearch-ring-adjust1):
Call isearch-update-from-string-properties.
(isearch-edit-string): Let-bind minibuffer-allow-text-properties to t.
(isearch-query-replace): Use propertized isearch-string.
(isearch--lax-regexp-function-p): Simplify.

* lisp/replace.el (query-replace-descr): Rewrite to keep text properties
non-destructively in the replacement string.
(query-replace--split-string): Don't remove text properties
by substring-no-properties.
(query-replace-read-args): Try to get isearch-regexp-function
from text-properties.
(perform-replace): Display parameters in the replacement message.

* lisp/desktop.el (desktop--v2s): Check if text properties are unreadable.
(Bug#30786)
lisp/desktop.el
lisp/isearch.el
lisp/replace.el