From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22296: 25.1.50; Document changes to `delete-selection-mode' Date: Sun, 3 Jan 2016 08:24:35 -0800 (PST) Message-ID: <940d59ef-c3d6-42df-ba0c-602cc154d431@default> References: <<660d1a46-fd5a-460f-8f26-50ba9a52cc60@default>> <<83mvsmadhv.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451838323 21495 80.91.229.3 (3 Jan 2016 16:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 16:25:23 +0000 (UTC) Cc: 22296@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 03 17:25:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aFlSv-0001hI-E1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jan 2016 17:25:09 +0100 Original-Received: from localhost ([::1]:42132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFlSu-0003VD-QE for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jan 2016 11:25:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFlSr-0003V3-Rp for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2016 11:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFlSo-000637-JV for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2016 11:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFlSo-000633-Fu for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2016 11:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aFlSo-0007t3-DU for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2016 11:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jan 2016 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22296-submit@debbugs.gnu.org id=B22296.145183828730294 (code B ref 22296); Sun, 03 Jan 2016 16:25:02 +0000 Original-Received: (at 22296) by debbugs.gnu.org; 3 Jan 2016 16:24:47 +0000 Original-Received: from localhost ([127.0.0.1]:36813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFlSY-0007sY-Vg for submit@debbugs.gnu.org; Sun, 03 Jan 2016 11:24:47 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:47160) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFlSW-0007sJ-Er for 22296@debbugs.gnu.org; Sun, 03 Jan 2016 11:24:44 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u03GObsO007775 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 3 Jan 2016 16:24:38 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u03GObDd013411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 3 Jan 2016 16:24:37 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u03GOaV1030839; Sun, 3 Jan 2016 16:24:37 GMT In-Reply-To: <<83mvsmadhv.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] 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: 208.118.235.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111153 Archived-At: > I looked at delsel.el, and the only user-visible change in behavior > since v24.3 is the one that was already announced in NEWS.24: >=20 > ** Delete Selection mode can now be used without Transient Mark mode. Somehow I didn't notice that mention. > If you know about other changes (that are not bugfixes), please name > them. Frankly, I do not understand all of the changes I see in the code since 24.3. There are a boatload of them. `diff' the Emacs 25 version against the 24.3 version. 1. It "can now be used without transient mark mode" is misleading. You could always turn off t-m-mode (after turning d-s-mode on) and still use d-s-mode. (But you might have been surprised to see stuff disappear because you didn't notice what was in the region.) The changes for this seem to be: (1) d-s-mode does not automatically turn on t-m-mode now, and (2) d-s-mode does NOT have any effect unless you turn on t-m-mode temporarily. IOW, d-s-mode works now only with temporary t-m-mode; it no longer works with a non-active region. (And yes, this is a good change.) 2. d-s-mode now supports rectangular regions (?). Not clear to me what this is about, from a quick glance at the code. Maybe you will characterize this as a bug fix, but the behavior seems to be changed, in any case. 3. Command `delete-selection-repeat-replace-region' was added. It seems to be bound, so far, only in CUA mode (to `M-v'). Not real clear to me what this is about/for. 4. Apparently you can no longer specify `kill' as the d-s behavior: (put 'some-command 'delete-selection 'kill). Well, it's still supported for now, but `kill' has been removed from the file-header Commentary, and the code comments say that it is deprecated. Why is this? Where is this deprecation documented? Why shouldn't a user or a library still be able to override a `delete-selection' setting for a given command, to specify it as `kill'? Not clear to me what this is about. 5. There is an additional, undocumented (why?) possible value for `delete-selection', which you can apparently put on a command's symbol: `delete-selection-uses-region-p'. Please consider documenting this (e.g., not just mentioning it in NEWS). 6. The default delete-selection behavior for multiple commands has apparently changed. For example, `open-line' now has the default behavior and not the `kill' behavior. Likewise, unloading (`delsel-unload-function') deals with a different command list. Those are a start - things I see that I wonder about. You may others, or you may understand these things better or differently.