From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39902: 28.0.50; Marking in dired with active region Date: Thu, 19 Mar 2020 01:51:27 +0200 Message-ID: <87fte52pbf.fsf@mail.linkov.net> References: <87d09suras.fsf@web.de> <87h7z1jadw.fsf@web.de> <87y2sbloaa.fsf@mail.linkov.net> <877dzvgd4l.fsf@web.de> <8736aiqu3y.fsf@mail.linkov.net> <7a0a6f19-f958-4b38-beaf-3d60dc8a279f@default> <87d09lb1ts.fsf@mail.linkov.net> <87a74n4vet.fsf@web.de> <87eetzah2s.fsf@mail.linkov.net> <87zhcn9229.fsf@mail.linkov.net> <6d82d04a-db94-4df4-82cc-3ea13a78a4dd@default> <877dzqidzn.fsf@mail.linkov.net> <1e37a524-80d3-445f-8f81-a18539105ac3@default> <87pndhhyvk.fsf@mail.linkov.net> <1ce62594-cc2a-4e95-b2b3-d022fa65decd@default> <87bloybivx.fsf@mail.linkov.net> <0066d43a-5f97-4c9d-a4b7-84c6b0ecf356@default> <87bloxgp9g.fsf@mail.linkov.net> <8736a7ajn5.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22653"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 39902@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 19 00:59:15 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 1jEiag-0005m6-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Mar 2020 00:59:14 +0100 Original-Received: from localhost ([::1]:59880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEiaf-0007In-Lz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 19:59:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51410) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEiaW-0007GX-4B for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 19:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEiaU-0007x6-Sj for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 19:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEiaU-0007wx-PL for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 19:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEiaU-0005Xb-P7 for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 19:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2020 23:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39902 X-GNU-PR-Package: emacs Original-Received: via spool by 39902-submit@debbugs.gnu.org id=B39902.158457591921231 (code B ref 39902); Wed, 18 Mar 2020 23:59:02 +0000 Original-Received: (at 39902) by debbugs.gnu.org; 18 Mar 2020 23:58:39 +0000 Original-Received: from localhost ([127.0.0.1]:41578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEia7-0005WK-3O for submit@debbugs.gnu.org; Wed, 18 Mar 2020 19:58:39 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEia5-0005W6-Op for 39902@debbugs.gnu.org; Wed, 18 Mar 2020 19:58:38 -0400 X-Originating-IP: 91.129.96.173 Original-Received: from mail.gandi.net (m91-129-96-173.cust.tele2.ee [91.129.96.173]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id B4C8960005; Wed, 18 Mar 2020 23:58:29 +0000 (UTC) In-Reply-To: <8736a7ajn5.fsf@web.de> (Michael Heerdegen's message of "Tue, 17 Mar 2020 01:51:26 +0100") 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177531 Archived-At: > I see our different views as of the same right and value. And the use > case (who uses marking commands with an active region at all?) is a > corner case. I don't mind about the default as long as there is a new > option. There is nothing new here. Mathematicians have been fighting that battle for centuries until invention of the special notation to differentiate including and excluding endpoints using either a square bracket or a reversed parenthesis to indicate inclusive/exclusive intervals: https://en.wikipedia.org/wiki/Bracket_(mathematics)#Intervals https://en.wikipedia.org/wiki/Interval_(mathematics)#Including_or_excluding_endpoints The most recent development is still ongoing in new programming languages. For example, in the initial versions of Rust there were only exclusive ranges, so e.g. for i in 1..3 yields only 1 and 2, but not 3, like the region mark command in Dired now. But later Rust versions added inclusive ranges as well with special syntax: for i in 1..=3 that yields 1, 2 and 3. Please see more examples at https://doc.rust-lang.org/edition-guide/rust-2018/data-types/inclusive-ranges.html So Dired could do the same and support both range types using a new option 'dired-mark-inclusive'. > I would rather want to discuss what else should be done > (behavior of other marking commands etc, should we change > `dired-mark-if', etc. I think `dired-mark-if' should respect that option too.