From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#39902: 28.0.50; Marking in dired with active region Date: Thu, 05 Mar 2020 14:58:12 +0100 Message-ID: <87eeu6hpjf.fsf@web.de> References: <87d09suras.fsf@web.de> <87tv33r8e2.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="27039"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39902@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 05 14:59:35 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 1j9r2E-0006uB-Fi for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 14:59:34 +0100 Original-Received: from localhost ([::1]:49584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9r2D-0001y9-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 08:59:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57232) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9r1j-0001vh-Lh for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 08:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9r1i-0002I7-J3 for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 08:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9r1i-0002Hm-AZ for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 08:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9r1i-0003wf-7s for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 08:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Mar 2020 13: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.158341669915111 (code B ref 39902); Thu, 05 Mar 2020 13:59:02 +0000 Original-Received: (at 39902) by debbugs.gnu.org; 5 Mar 2020 13:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:42362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9r10-0003vf-QZ for submit@debbugs.gnu.org; Thu, 05 Mar 2020 08:58:19 -0500 Original-Received: from mout.web.de ([212.227.15.4]:53427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9r0z-0003vR-It for 39902@debbugs.gnu.org; Thu, 05 Mar 2020 08:58:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1583416686; bh=aLJ9gt4b4CbQ2Wynb05wJIk4ijW2KcISiGGHwFwQj6k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=RJbyvmavd7zztAwProuxYwwv+maIhtHG7p9We207Ywb5ujJxY5baX97aWXOWZZx4s W7b5fxpl55JxRbZz5PVWbWZUaTxragFgopz0TsPaBeTomiMjcV+uRFkhBzBOSDZ5TQ cgq1R5T9QQbB3NZ+M7iop2piIIQe+LZ8mVYVL1og= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.89.41]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MVtmK-1iqBSY2uAy-00X2wP; Thu, 05 Mar 2020 14:58:06 +0100 In-Reply-To: <87tv33r8e2.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 05 Mar 2020 01:46:13 +0200") X-Provags-ID: V03:K1:jYD3/TzRcMrzGCcVc0H4ACFVJumNBoKB2ucHZcRMl7FkqGw71HA 6Z9xycTuoazAn3qZ1Vm/3KXjh2SnryJhdeCvG1RdluHmPKMTDn+rQKCO1KoQxKEdhrkakZx AkceanIQjzn7F2QmI1X5PJJM+dwQ/wF4XUScY1QOJo0DeJt3yyvubPR+OyUJydYh/YFwUOY 9v/PZCL54lLL1WALy5Gog== X-UI-Out-Filterresults: notjunk:1;V03:K0:pKX+YZhT0o0=:CUSbBzubZwtVKuaz957Sbo OzIw6DSpb12ySvPMyi/JoUeFTPJmg7wyF6eGzqId3Kb6Eu8kViEHXtpQb/ugUHfcyuqqJe3Ht Gn9UnyLfZQnT7q9WbH0QQ5pon5O+GIIX7qmyho8HwKVE9wBilY3wZgf7inpCovRapQJ+30KI4 yN1rOr5IAJaNhMD5d+ahF/QEmngxbIpToyH3d9UDc/KfTT12m1jFLjjLvjIsyetLnXF3QdPEM /kn7Kx5r4HJPEQbXax7XWjMIzjSUutEVWpLmr7ODVqs7yySlCdkG8qJJlcPqnmiEu57IHSVHL br+nKFratRpvNKvnXyLc94SZka2QkVDmZff5IH6vlR4/aFi8P+WzspKFYmeQ8jYouCyN/HtSk osOeibMBIEYVjCKrEj1+ohlZ5vU44+YCnvQ8k4drP+RotjOgZ+up8A01ajojvN0KBhDFwIoSy 4V+mVkHsVP0NE3HX9p2pO5MKZJkV+S90HJLb7jg3GdHFa+WGi5sH6XCfyqbbzhIHQCd8FlEgW eDu9FTIVNtmlEiHR/dDRfZOeD78zb49Gg10n/RrtejKTc6KoycX1PzAaAp3VGyMd95equZKV0 rAH6GVgYPudLyC9v8d/WpeYB0CDYKEBbceFuKSGgHDUmsClRM/FfJ8cdLvzluqo2qsXNj1ery O0FJv33UvjFDIbCGhE9VJ/qAqLtfjO0He5ANl2K9XQbh1MnUX1/rVHKiN/LwbtruXyxf9xxp9 5Du8qt3KuvdeRkwhHVcPMHuO5PKiMLqTABlM+vfA87xwnzXKopiVpntSL8rx4nFrwFgUGzCH 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:176905 Archived-At: Juri Linkov writes: > 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. But this does not describe what we currently have: you can mark N complete lines, from the beginning to the end of the lines. The file in line N is always not marked. > 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. This is a bit philosophical. You can find an argument like this for any behavior. Personally, in my mind I identify the whole line as associated to a certain file. Whatever choice we take we should document how an an active region is interpreted since different kinds of behavior might be natural for different users. > > (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 > ... Yes. I think I would vote pro such a change. It could also be made optional by introducing a new user option. Michael.