From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Transposing words over middle words Date: Sat, 18 Nov 2017 20:58:22 -0800 (PST) Message-ID: <2bd7cc3d-81b8-43e9-a243-620fed53ad5a@default> References: <20171115155650067497545@bob.proulx.com> <86375fytqn.fsf@zoho.com> <86h8tr2xes.fsf@zoho.com> <1ef14395-df19-9b47-b952-1328368ce689@mousecar.com> <86vai710a5.fsf@zoho.com> <86r2sv0wff.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1511067552 24627 195.159.176.226 (19 Nov 2017 04:59:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 04:59:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 05:59:04 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGHhA-0005sA-0c for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 05:59:04 +0100 Original-Received: from localhost ([::1]:51943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGHhE-0007p1-5m for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 23:59:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGHgf-0007og-6q for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:58:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGHgb-0003is-BF for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:58:33 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:32456) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eGHgb-0003iX-2G for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:58:29 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAJ4wQH3031002 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 19 Nov 2017 04:58:27 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vAJ4wPIc000946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 19 Nov 2017 04:58:26 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAJ4wOIo023927 for ; Sun, 19 Nov 2017 04:58:25 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4615.0 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114971 Archived-At: > It was introduced in Emacs 25. It is what used > to be called `save-excursion'. ;-) >=20 > Why they didn't instead leave `save-excursion' with > its longstanding behavior and create a new function > (e.g. `save-point' or whatever) to do what the > Emacs 25+ `save-excursion' does, I don't know. That > would not have been backward incompatible. >=20 > The Emacs NEWS says only this: >=20 > ** 'save-excursion' does not save&restore the mark any more. > Use 'save-mark-and-excursion' if you want the old behavior. >=20 > Of course, if you want the old behavior in both > old and new releases, now you have to call one > or the other conditionally, testing > (fboundp `save-mark-and-excursion'). This seems to be what was responsible for the change: commit 599ca626d760215b090012c69c749d391cfd6fbe Author: Stefan Monnier Date: Wed Mar 25 09:47:12 2015 -0400 `save-excursion' does not save&restore the mark any more Searching the emacs-devel mailing-list archives for `save-mark-and-excursion' I don't find any discussion about introducing it. I find only an occurrence that mentions that commit: http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg01596.html Searching the bug list I find only two occurrences, which are from the year after that 2015 commit.