From: Eli Zaretskii Date: Wed, 2 Feb 2022 17:23:07 +0000 (+0200) Subject: ; * etc/NEWS: Fix wording of a recently-added entry. X-Git-Tag: emacs-29.0.90~2580 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8fa8d5310b524c08bfd70ac0ce531db58985e302;p=emacs.git ; * etc/NEWS: Fix wording of a recently-added entry. --- diff --git a/etc/NEWS b/etc/NEWS index c2975b783d1..cb9f855a9cc 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1238,15 +1238,18 @@ inhibits 'isearch' matching the STRING parameter. It can be used to implement own regexp syntax for search/replace. --- -** New variable 'query-replace-read-from-default'. -It can be set to a function that returns the default value (such as -'find-tag-default') when 'query-replace' reads a string to replace. -Another new variable 'query-replace-read-from-regexp-default' -can be set to a function that returns the default value (such as -'find-tag-default-as-regexp') when 'query-replace-regexp' -reads a regexp to replace. When these variables are nil -(which is the default) then 'query-replace' uses the previous -replacement from-to pair as the default value. +** New variables to customize defaults of FROM for query-replace commands. +The new variable 'query-replace-read-from-default' can be set to a +function that returns the default value of FROM when 'query-replace' +prompts for a string to be replaced. An example of such a function is +'find-tag-default'. + +The new variable 'query-replace-read-from-regexp-default' can be set +to a function (such as 'find-tag-default-as-regexp') that returns the +default value of FROM when 'query-replace-regexp' prompts for a regexp +whose matches are to be replaced. If these variables are nil (which +is the default), 'query-replace' and 'query-replace-regexp' take the +default value from the previous FROM-TO pair. --- ** New user option 'pp-use-max-width'.