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, 05 Mar 2020 01:46:13 +0200 Organization: LINKOV.NET Message-ID: <87tv33r8e2.fsf@mail.linkov.net> References: <87d09suras.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="9651"; 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 05 01:22: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 1j9eHF-0002Lt-6r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 01:22:13 +0100 Original-Received: from localhost ([::1]:41626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9eHE-0003Ee-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 19:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59439) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9eH5-0003E3-G7 for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:22:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9eH4-0000ze-Hd for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:22:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9eH4-0000zZ-Ei for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9eH4-0005VP-Az for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Mar 2020 00:22: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.158336772021155 (code B ref 39902); Thu, 05 Mar 2020 00:22:02 +0000 Original-Received: (at 39902) by debbugs.gnu.org; 5 Mar 2020 00:22:00 +0000 Original-Received: from localhost ([127.0.0.1]:42004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9eH1-0005V9-SU for submit@debbugs.gnu.org; Wed, 04 Mar 2020 19:22:00 -0500 Original-Received: from chocolate.birch.relay.mailchannels.net ([23.83.209.35]:62722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9eGz-0005Uz-V0 for 39902@debbugs.gnu.org; Wed, 04 Mar 2020 19:21:58 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id EDBCB120F53; Thu, 5 Mar 2020 00:21:56 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (100-96-54-11.trex.outbound.svc.cluster.local [100.96.54.11]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 886CF120F74; Thu, 5 Mar 2020 00:21:56 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Thu, 05 Mar 2020 00:21:56 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Bitter-Company: 666ff9c1371d13f7_1583367716778_794119090 X-MC-Loop-Signature: 1583367716778:1781602361 X-MC-Ingress-Time: 1583367716778 Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id 437FF7F7A9; Wed, 4 Mar 2020 16:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=u4VvyGtQ+fGzGeh+XixjByGq8+M=; b= JhmHC5BHb3pypGeg+zNdeJFZ9QzlQrhfx/tS/JCJq9E96Vuf5mkSf0t1IO7i80IF Zx3MXZqcbRl3cqGaTHUmTsLA7avkgi209n0zVQ07zGyrifZeX+UhqIzEDmQdbQ2Z hrGVySotKCCSJRT3oorwRQuUKy7rktapY+DqgoWHi78= Original-Received: from mail.jurta.org (m91-129-103-27.cust.tele2.ee [91.129.103.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTPSA id 9CA117F7A8; Wed, 4 Mar 2020 16:21:49 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <87d09suras.fsf@web.de> (Michael Heerdegen's message of "Wed, 04 Mar 2020 15:29:31 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddtledgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigvsgdruggv 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:176871 Archived-At: > (1) Docstring of `dired-mark' says > > "If the region is active, mark all files in the region." > > However, the file in the last line of the region is never marked, even > if the region spans the whole line of this file. I find that behavior > wrong and contradicting the docstring. But it seems it has been like > that for a long time (forever?). Nevertheless, I'm always confused by > that behavior. The peculiarity of dired mode is that it puts point in front of file name. So when the region doesn't cover the file name visually, it should not take the file name outside the region into consideration for marking. Exactly like kill-region should not kill text outside of the active region, dired-mark should not mark files outside of the active region. Especially more dangerous command dired-flag-file-deletion should not delete files outside of the active region. > (2) Most of the time I rather want `dired-mark-files-regexp' to respect > an active region - but that isn't implemented (though it would not be > hard to do). I think that would be useful. The problem is that this feature should be implemented in the macro dired-mark-if, but then it will affect many other commands: dired-mark-files-containing-regexp dired-mark-symlinks dired-mark-directories dired-mark-executables dired-flag-auto-save-files dired-flag-backup-files dired-compare-directories dired-mark-unmarked-files dired-mark-sexp ...