From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41692: 26.3; Enhancement request, `query-replace': let user use text at point as default Date: Thu, 11 Jun 2020 17:46:16 -0700 (PDT) Message-ID: References: <3705c67a-f3a1-4667-8c3f-67b41752f355@default> <87a71jwyiw.fsf@mail.linkov.net> <878sh2lctc.fsf@mail.linkov.net> <39e06665-8ab7-4b81-a481-9a8ccf3a15e1@default> <87a719yztv.fsf@mail.linkov.net> <355c8fb7-2113-44c4-acdd-cbbf02d3828b@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30820"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41692@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 12 02:47:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjXqj-0007vE-Dk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jun 2020 02:47:13 +0200 Original-Received: from localhost ([::1]:44362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjXqh-0004aR-VG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 20:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjXqb-0004aL-2H for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 20:47:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjXqY-0006nX-3M for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 20:47:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjXqY-0007Yz-1l for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 20:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jun 2020 00:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41692 X-GNU-PR-Package: emacs Original-Received: via spool by 41692-submit@debbugs.gnu.org id=B41692.159192278629031 (code B ref 41692); Fri, 12 Jun 2020 00:47:01 +0000 Original-Received: (at 41692) by debbugs.gnu.org; 12 Jun 2020 00:46:26 +0000 Original-Received: from localhost ([127.0.0.1]:38461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjXpy-0007YB-Jz for submit@debbugs.gnu.org; Thu, 11 Jun 2020 20:46:26 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:41574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjXpw-0007Xx-ST for 41692@debbugs.gnu.org; Thu, 11 Jun 2020 20:46:25 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05C0j36e068256; Fri, 12 Jun 2020 00:46:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=lzrLeqL5xCpHIxvBsHp+83c3p/P8qzuMT0vvsNKjmj0=; b=n1FIz+BUBDCXgTl1nk8g9kOCDEbiOUmoQYFHXporJ4NAQQX9XHFR+8JoLCtAKMTkKq4S PcCaqkDCcycO0IYg/NY375bczpoV5+Ce7HEeoHvkIwnkNyasVsJ5N8wxjHOUPurM1YFU 46/p/S8CsL0m1eFK23tbw2Pis1QbzPJfz2YubWfMdU4nvkCVjb+YkbWr2hbzGl6AKK/a im1W1+DWzQQ1ESNCUM7hDEgH8J/13ip7/vdRuxcIUl9mRJj3VMJYECuN2Ga+Tea5xXsg Bbk7rlFtegm02/K2xSa4oYQ3Tkewvo/i9vM5ALtPWUTsUjRxU4xbI6sglYat2F9aiozJ CA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 31g2jrjneb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Jun 2020 00:46:18 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05C0gVmO159916; Fri, 12 Jun 2020 00:46:18 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 31ky6y99k3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Jun 2020 00:46:17 +0000 Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 05C0kH3T006717; Fri, 12 Jun 2020 00:46:17 GMT In-Reply-To: <355c8fb7-2113-44c4-acdd-cbbf02d3828b@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5005.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9649 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006120002 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9649 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 impostorscore=0 cotscore=-2147483648 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006120002 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181881 Archived-At: Sorry, the defvar I suggested is not good, at least for picking up the car of `search-ring' or `regexp-search-ring'. Wasn't thinking straight. Maybe either another function-valued variable (to be called) or a sexp-valued variable (to be evalled). The main suggestion is more user control over (1) the list of default sources and (2) some of the choices (e.g. one or two function-valued vars).