diff options
author | Juri Linkov <juri@linkov.net> | 2018-04-19 23:30:46 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2018-04-19 23:30:46 +0300 |
commit | 99de04e6a84dbc93aab479666af126c8fb109b95 (patch) | |
tree | 20ceee48fe073cdc4713017b64025975df5bf879 /lisp/emacs-lisp/thunk.el | |
parent | 54f60fcad198be5f39fead6f4d453cea0942322a (diff) | |
download | emacs-99de04e6a84dbc93aab479666af126c8fb109b95.tar.gz emacs-99de04e6a84dbc93aab479666af126c8fb109b95.tar.bz2 emacs-99de04e6a84dbc93aab479666af126c8fb109b95.zip |
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)
Diffstat (limited to 'lisp/emacs-lisp/thunk.el')
0 files changed, 0 insertions, 0 deletions