# HG changeset patch # User Juri Linkov # Date 1105484656 0 # Node ID fea2bcedb7bfe377bc99eeefbe47d20a27460cb8 # Parent f71796591aa0e1314c398ffb9923bc6032278ec1 (query-replace-lazy-highlight): Add lazy-highlight group. (query-replace-highlight, query-replace-lazy-highlight) (query-replace): Move definitions to the beginning of the file. diff -r f71796591aa0 -r fea2bcedb7bf lisp/replace.el --- a/lisp/replace.el Tue Jan 11 23:03:01 2005 +0000 +++ b/lisp/replace.el Tue Jan 11 23:04:16 2005 +0000 @@ -64,6 +64,27 @@ :group 'matching :version "21.4") +(defcustom query-replace-highlight t + "*Non-nil means to highlight matches during query replacement." + :type 'boolean + :group 'matching) + +(defcustom query-replace-lazy-highlight t + "*Controls the lazy-highlighting during query replacements. +When non-nil, all text in the buffer matching the current match +is highlighted lazily using isearch lazy highlighting (see +`lazy-highlight-initial-delay' and `lazy-highlight-interval')." + :type 'boolean + :group 'lazy-highlight + :group 'matching + :version "21.4") + +(defface query-replace + '((t (:inherit isearch))) + "Face for highlighting query replacement matches." + :group 'matching + :version "21.4") + (defun query-replace-descr (string) (mapconcat 'isearch-text-char-description string "")) @@ -1258,27 +1279,6 @@ (replace-match newtext fixedcase literal) noedit) -(defcustom query-replace-highlight t - "*Non-nil means to highlight matches during query replacement." - :type 'boolean - :group 'matching) - -(defcustom query-replace-lazy-highlight t - "*Controls the lazy-highlighting during query replacements. -When non-nil, all text in the buffer matching the current match -is highlighted lazily using isearch lazy highlighting (see -`lazy-highlight-initial-delay' and -`lazy-highlight-interval')." - :type 'boolean - :group 'matching - :version "21.4") - -(defface query-replace - '((t (:inherit isearch))) - "Face for highlighting query replacement matches." - :group 'matching - :version "21.4") - (defun perform-replace (from-string replacements query-flag regexp-flag delimited-flag &optional repeat-count map start end)