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#39902: 28.0.50; Marking in dired with active region Date: Sat, 14 Mar 2020 10:56:29 -0700 (PDT) Message-ID: <1ce62594-cc2a-4e95-b2b3-d022fa65decd@default> References: <87d09suras.fsf@web.de> <87tv33r8e2.fsf@mail.linkov.net> <87eeu6hpjf.fsf@web.de> <875zfixuoy.fsf@mail.linkov.net> <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> 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="90333"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , 39902@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 14 18:57:11 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 1jDB27-000NN9-B1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 18:57:11 +0100 Original-Received: from localhost ([::1]:47022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDB26-0005VY-DJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 13:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55141) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDB1z-0005VR-DA for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 13:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDB1y-0001fR-4V for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 13:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDB1x-0001fN-W6 for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDB1x-0008Lm-UY for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 13:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Mar 2020 17:57:01 +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.158420860432076 (code B ref 39902); Sat, 14 Mar 2020 17:57:01 +0000 Original-Received: (at 39902) by debbugs.gnu.org; 14 Mar 2020 17:56:44 +0000 Original-Received: from localhost ([127.0.0.1]:33954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDB1g-0008LI-1T for submit@debbugs.gnu.org; Sat, 14 Mar 2020 13:56:44 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:55686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDB1e-0008L5-9T for 39902@debbugs.gnu.org; Sat, 14 Mar 2020 13:56:42 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02EHmgUL074585; Sat, 14 Mar 2020 17:56:35 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=tL/6LYjmy2uSDrJkGRXoy3IpWGhwaXYY1pm1hIFJIrA=; b=ksUvQlSQuS+OpV4M4srMDSbRsfsMWtqodxdZDdE3a7TV2JIVXCIJFTrdF1fCTn/pbVPB 4H1OfkFhuyD4A5uQ84RyARGnj8/ngTMyJbp2NJ3vZFnUOS65ljqsu1FXf8TqYpQrOJdn ypimiNNNjsUKcasPLTORwCQyuTllbPW+rieK2uSPMxddUz16vfVu2KenlY+FpSOOWvp6 0LO27NsDwC7nxmCFWyAUKD4Oi8nUI5PAv7KIDhCpY+WIFzwCw4R8CmhcuZIF/IFwD5t2 n//CdYQfCXq2kzrogNnEDCUF61T71kBEx37i6n1A8WjhN7UVO1awcIAWfXSLqr5MhqMQ 4w== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2yrq7khckq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 14 Mar 2020 17:56:35 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02EHos2R164852; Sat, 14 Mar 2020 17:56:35 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2yrmcs290m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 14 Mar 2020 17:56:34 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 02EHuUg2031696; Sat, 14 Mar 2020 17:56:31 GMT In-Reply-To: <87pndhhyvk.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9560 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003140097 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9560 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 malwarescore=0 mlxscore=0 phishscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003140097 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:177358 Archived-At: >>>> I see no reason for such an option. And no reason >>>> for the broken default behavior that the original >>>> complaint was about. >>> >>> In 2012 you asked me to implement this feature, >>> and after implementing it you confirmed that it has >>> the right implementation. Changing its long-standing >>> default behavior now will cause backward-incompatibility >>> in users' habits. >> >> Really? What feature is that? Could you please >> point me to my request for it? >=20 > bug#10624 Sorry, I see nowhere at all in that (long) bug thread where I asked you to implement such an option or the broken behavior cited, or where confirmed that such behavior is correct. And if you find somewhere where I did say such things then I'd say now that I was wrong then. (My reading of that thread doesn't find anything I disagree with now or that contradicts what I've said here - but that's not important.) To me, that (open) enhancement request is anyway about more important things than what you implemented or what we're discussing now. > > Could you also please describe the user habit in > > question, and the change that would break it? >=20 > The most obvious way for users to mark e.g. next 2 files > is to type S-down 2 times, then type 'm', especially > convenient when arrow keys are located near the 'm' key. I think that's what we're talking about. I don't have a problem with users doing that. What's the problem with that? What habit would be broken? What we're talking about, I thought, is that, IF you use `m' (or other mark-changing keys) AFTER you do that (or after something else that selects parts of contiguous file lines as the active region), THEN that marking command acts on each file that has ANY part of its line selected. That's what the behavior should be, IMO. You pointed out the corner case of a region that ends at bol. A fix for that corner case was provided. > For example, here is the screenshot where you agreed > that only 2 files should be marked: > > But this is not much different from this screenshot > because 'file3' still is not inside the region: That second image, where point is not at bol, _should_ result in the 3rd file being marked, IMO - and it does. I don't see a problem with the bolp fix provided. For me, it's about whether ANY (non-empty, hence the bolp fix) part of a file's line is selected. It's not about whether the _file name_ is selected. Actions in Dired are generally (maybe even only) apply to a file line, not to its file-name portion. (An action, such as renaming, might affect only the file-name portion as its _result_. But it takes effect on the file designated by that line. And other actions (e.g. chmod, touch) can affect other parts of the line (e.g. permissions, date). We've been around and around about the question now. I think those who have spoken up in this thread, including OP Michael - with you as the exception, feel the same way: Act on each file when any non-empty part of its line is in the active region.