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:37:17 -0800 (PST) Message-ID: 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 1511066283 2714 195.159.176.226 (19 Nov 2017 04:38:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 04:38:03 +0000 (UTC) To: Emanuel Berg , 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:37:58 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 1eGHMh-0000Ec-5p for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 05:37:55 +0100 Original-Received: from localhost ([::1]:51909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGHMo-0005v6-DS for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 23:38:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGHMI-0005um-Hm for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:37:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGHMD-0007v5-Lh for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:37:30 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30002) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eGHMD-0007ur-Dp for help-gnu-emacs@gnu.org; Sat, 18 Nov 2017 23:37:25 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAJ4bKKp019856 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Nov 2017 04:37:20 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAJ4bKTB002706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Nov 2017 04:37:20 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 vAJ4bJSK017924; Sun, 19 Nov 2017 04:37:19 GMT In-Reply-To: <86r2sv0wff.fsf@zoho.com> 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: userv0022.oracle.com [156.151.31.74] 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:114970 Archived-At: > > There is `save-mark-and-excursion', if > > that helps. >=20 > Not here it isn't :) GNU Emacs 24.4.1 > Where do you have it? It was introduced in Emacs 25. It is what used to be called `save-excursion'. ;-) 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. The Emacs NEWS says only this: ** 'save-excursion' does not save&restore the mark any more. Use 'save-mark-and-excursion' if you want the old behavior. 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').