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: Sun, 8 Mar 2020 10:04:56 -0700 (PDT) Message-ID: 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> 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="85531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39902@debbugs.gnu.org To: Michael Heerdegen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 08 18:06:12 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 1jAzNS-000M8Q-OA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Mar 2020 18:06:10 +0100 Original-Received: from localhost ([::1]:59748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAzNR-00076e-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Mar 2020 13:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48529) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAzNL-00076V-5E for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2020 13:06:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAzNK-0002VT-3D for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2020 13:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAzNJ-0002VM-VZ for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2020 13:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAzNJ-0008Ai-RK for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2020 13:06: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: Sun, 08 Mar 2020 17:06: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.158368710931331 (code B ref 39902); Sun, 08 Mar 2020 17:06:01 +0000 Original-Received: (at 39902) by debbugs.gnu.org; 8 Mar 2020 17:05:09 +0000 Original-Received: from localhost ([127.0.0.1]:49239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzMT-00089G-BT for submit@debbugs.gnu.org; Sun, 08 Mar 2020 13:05:09 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:34686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzMR-00088y-OI for 39902@debbugs.gnu.org; Sun, 08 Mar 2020 13:05:08 -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 028H4jvR033169; Sun, 8 Mar 2020 17:05:00 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=TcAsFRCVgeCXhONVtvu7Dhvnhl47os5npJ2nWMVuv58=; b=TRMLv3XdAqK5v5qb168/3tfR3U9Y0GCv1nTgtWozFLn9AzBN7XuC+oJG7RmEPduET9xO pJfpL0XLmoSDk3Y1NhG3V93Z58z3StDPIebhvj7uAYyYGTYKTKztW/3D61hjLQdupyyC WmKdRSCEZHo+BcjvhsdM6kF3CF6GHWSMSZghGg9yzL+iiMX4kc6PrNE25hscQpUm69/0 C1WIOA+Ypq7zxCU5/UK/t943mA68bUEwzOjnr8Z3+wXyzPg7vPkLPtSdP0A17IsBEXmK St7j0Z1UxWsy1VcaxPYEuwvKVBOXdTNTqVmiOz19LJf0flvpvGf5//Gzqc1fSZKj9DG1 dA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2ym31u3nvu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 08 Mar 2020 17:05:00 +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 028H34Af039885; Sun, 8 Mar 2020 17:05:00 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2ymn3e4e0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 08 Mar 2020 17:04:59 +0000 Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 028H4vgB020627; Sun, 8 Mar 2020 17:04:57 GMT In-Reply-To: <877dzvgd4l.fsf@web.de> 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=9554 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003080127 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9554 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003080127 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:177059 Archived-At: Hi Michael, Just so I can understand better, what's the=20 reason you prefer to use the keyboard to establish an active region that selects the lines you want to mark, and then invoke a command to mark the lines captured by the region, rather than just using `m' (e.g. with a prefix arg)? E.g., Rather than `C-SPC', navigate to the desired region-end position, and then `m', why not just use a prefix arg with `m'? A guess is that you might use something like `M->' to go to the region-end position. But even then, a large prefix arg should do the job: `C-u 99999 m' versus `C-SPC M-> m'. Could you give a recipe/example of your use of keyboard keys for this, or otherwise explain the rationale for it? (NB: I'm not arguing that this bug should not be fixed. And as mentioned, the fix should be trivial.) In Dired+, though I define command `diredp-mark-region-files' (which, as has been pointed out, DTRT wrt this bug), I don't bind it to a key, by default. I haven't thought such a binding would be very useful, which is why I ask for an example use case. Instead, I just provide mouse and menu bindings for it when the region's active: `S-mouse-1', `Mark Region' in a menu-bar menu, and `Mark' in a `mouse-3' popup menu. Similarly, for region commands to unmark, flag, and toggle marks: `diredp-unmark-region-files', `diredp-flag-region-files-for-deletion', `diredp-toggle-marks-in-region'.