From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18697: 25.0.50; [PATCH] hi-lock interactive functions now default to the active region, if there is one Date: Tue, 14 Oct 2014 13:25:50 -0700 (PDT) Message-ID: <31b31698-be0a-4886-bf24-33e93fc5b611@default> References: <87zjd0digk.fsf@secretsauce.net> <87bnpe4fco.fsf@mail.jurta.org> <87iojm1kqa.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413318457 26660 80.91.229.3 (14 Oct 2014 20:27:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 20:27:37 +0000 (UTC) Cc: 18697@debbugs.gnu.org, Dima Kogan To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 22:27:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xe8gn-0003Bn-KH for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 22:27:25 +0200 Original-Received: from localhost ([::1]:40331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8gn-0002uv-6W for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 16:27:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8ga-0002oS-L4 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:27:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8gR-0003eI-Ty for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:27:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8gR-0003eC-RT for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xe8gR-0001sT-G6 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Oct 2014 20:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18697 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18697-submit@debbugs.gnu.org id=B18697.14133183647049 (code B ref 18697); Tue, 14 Oct 2014 20:27:03 +0000 Original-Received: (at 18697) by debbugs.gnu.org; 14 Oct 2014 20:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:43558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe8fT-0001pc-DG for submit@debbugs.gnu.org; Tue, 14 Oct 2014 16:26:03 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:49414) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe8fQ-0001p4-CN for 18697@debbugs.gnu.org; Tue, 14 Oct 2014 16:26:00 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s9EKPtEL027816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 14 Oct 2014 20:25:56 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9EKPqSj025568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 14 Oct 2014 20:25:53 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9EKPqOo025559; Tue, 14 Oct 2014 20:25:52 GMT In-Reply-To: <87iojm1kqa.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94499 > > What IS pointed out in that thread is that there are other ways > > to pick up text at point, besides using the active region. And > > that gives you much more flexibility than hard-wiring the region > > content as the default value. >=20 > Not *THE* default value, but a list of several default values > where the active region is its second default value > (coming after the symbol at point in that list). Ah, OK, if that's what you meant. Yes, a user should be able to choose that, by cycling - at least in some contexts (see below). No, in general it should not be the _default_ default value. ;-) That is, it should not be the first in the list. Even so, it would be good for a command for which the active region defines the command scope to be able to easily exclude that value from the defaults list, as it makes no sense in that context. IOW, my argument still holds: It is not always the case that it makes sense for a default value for `read-regexp' to be the content of the active region. Sometimes it makes a lot of sense. Sometimes it makes _no_ sense. And sometimes it can make a little sense - a nice-to-have-available choice. What `read-regexp' is used for depends on the context. That context (e.g. a particular command) determines whether and how much it makes sense for the active region to be used as a default value. Again, `read-regexp' is a utility function. Its use cases are many and varied.