From 8fa8d5310b524c08bfd70ac0ce531db58985e302 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 2 Feb 2022 19:23:07 +0200 Subject: [PATCH] ; * etc/NEWS: Fix wording of a recently-added entry. --- etc/NEWS | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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'. -- 2.39.5