From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16513: 24.3.50; doc string of `use-empty-active-region' Date: Fri, 29 Apr 2016 17:54:18 +0200 Message-ID: <87inz01kd1.fsf@gnus.org> References: <8da28f3d-e5ec-48d4-9407-377ec2afbc6c@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461945349 1804 80.91.229.3 (29 Apr 2016 15:55:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 15:55:49 +0000 (UTC) Cc: 16513@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 17:55:33 2016 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 1awAlQ-0006Ep-Ks for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 17:55:32 +0200 Original-Received: from localhost ([::1]:55309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awAlM-0005bz-Px for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 11:55:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awAlB-0005LB-E1 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 11:55:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awAkz-0003Oc-JW for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 11:55:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awAkz-0003Nb-G0 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 11:55:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awAkv-0000cn-UH for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16513-submit@debbugs.gnu.org id=B16513.14619452632338 (code B ref 16513); Fri, 29 Apr 2016 15:55:01 +0000 Original-Received: (at 16513) by debbugs.gnu.org; 29 Apr 2016 15:54:23 +0000 Original-Received: from localhost ([127.0.0.1]:55535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awAkJ-0000be-GG for submit@debbugs.gnu.org; Fri, 29 Apr 2016 11:54:23 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awAkI-0000bW-0K for 16513@debbugs.gnu.org; Fri, 29 Apr 2016 11:54:22 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awAkF-0007Ww-23; Fri, 29 Apr 2016 17:54:21 +0200 In-Reply-To: <8da28f3d-e5ec-48d4-9407-377ec2afbc6c@default> (Drew Adams's message of "Mon, 20 Jan 2014 20:20:18 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117200 Archived-At: Drew Adams writes: > 1. Remove the last part: ", and on the text near point otherwise." It > is inappropriate and wrong. (This is the reason I filed this bug.) > > This is about commands that act differently depending on whether or > not the region is active. Do not say anything about what the behavior > must be in either case: active or inactive. Certainly, do not claim > that when the region is inactive such commands act on the text near > point. That is pure fantasy. I think I understand what Chong was trying to express here now. --- Region-aware commands are those that act on the region if it is active and Transient Mark mode is enabled, and on the text near point otherwise. --- This explains the concept of "region-aware" commands -- they typically switch between acting on the stuff around point and the stuff in the region. Like `DEL', which deletes the region if it is active, and the previous character if not. So I don't think it's wrong... > 2. Simplify the following, which suggests that having an active region > is somehow different from having an active mark: > > "If non-nil, region-aware commands treat the region as active as long as > the mark is active, even if the region is empty." Just say: "If > non-nil, region-aware commands treat an active region as such, even if > it is empty." No, I like the mention of the mark, which helps my understanding of what it's saying. > 3. Do not speak of "regions", as it can confuse people. In any given > buffer at any moment there is only one region. "The region" makes > sense; "regions" does not, unless you are talking about multiple > buffers. I've fixed that now. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no