From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: Swapping Substrings Date: Sat, 31 Oct 2020 12:50:55 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: jai-bholeki Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 12:51:55 2020 Return-path: Envelope-to: geh-help-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 1kYpQI-0005pq-Rz for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 12:51:54 +0100 Original-Received: from localhost ([::1]:48858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYpQH-0003ej-Re for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 07:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYpPZ-0003eK-KR for help-gnu-emacs@gnu.org; Sat, 31 Oct 2020 07:51:09 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:34511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYpPX-00015l-HA for help-gnu-emacs@gnu.org; Sat, 31 Oct 2020 07:51:09 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id l62so3847501oig.1 for ; Sat, 31 Oct 2020 04:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/zSxVWH1WrUypR6y26+PXH7Lir2UC+0eA/OxeLqjVj0=; b=MctJ7x0TEYlm1kk49QX9YaZDSfHZna0hrzJF8A9QppG2yLg3gMegaamjUjq4zWAG4R DqOofogrm7yQulg/XDBz1tXHBOZ98vhweeY7dbo8JRD7l63vB95e9GySujm/Yq//rehu sTkOEYC/pU+MwWgq3rePuUli6YYjQlGg8U85Jlsne6kj0zpy/i0bi7WWVcfVz8e7GZXc Xm949AeHv2KTa77Bd54AW3ExpYKC0SEkA16If6iBZMybjHQliRuFmlS67A4HZ276Vph6 p/wpfjtvfqHfLPqVyjY2vrFt9a6y2fYvspAxIHOYMrTHrsEIuWWd3D+zLCijkQkqSRGy B+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/zSxVWH1WrUypR6y26+PXH7Lir2UC+0eA/OxeLqjVj0=; b=nmiit247s1ORJbcbhQlDBWXg+dfJT6u99HKef4NpVSQZlbAJybfvia6HhOHD0D5Iri xvLqIkgiRzaYQICUPhHIB39UolJvjFqchmHDReWfLJq6LC2fDwx3r+AXjnX0eg5DzvTs iMjns54JAf+trxPXbhSberJDC/4vvH7bXqQTRo1nFpC3ToQCwxrwlVfSMpekecjV0Xzi s03K9Afc2iXhtTzwGkuKpwfptSXEEV1IMNmD5522vJjC4hN04wzwP21KcA+xz4st2Pmz h6kJvManDyH7YyJ0vFfOTIq+SOFKn1UtTQGOwLSGCcS98jWHisnSSaHqN4Hw1rHN8JAK myRg== X-Gm-Message-State: AOAM533ybL/ykeWdBfMGNb500dacEay7mo1yK/Htzh4CTz1VFRxgmBsF AvLhIPEKkKLQEn3ggimQbE2KIL8lT+HJ/po9GF4= X-Google-Smtp-Source: ABdhPJxo7hTC56tM/67Nio3I22RWNZzqx7YkJL0cLqFT1S57Cr5keTV2cyS+oEky3jWhv3Hq7g+2JlyBTSIQcRovrZc= X-Received: by 2002:aca:d6d4:: with SMTP id n203mr4434251oig.65.1604145066317; Sat, 31 Oct 2020 04:51:06 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x22a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124826 Archived-At: Am Sa., 31. Okt. 2020 um 12:50 Uhr schrieb Philipp Stephani : > > Am Sa., 31. Okt. 2020 um 11:22 Uhr schrieb jai-bholeki via Users list > for the GNU Emacs text editor : > > > > I need to swap two sub-strings in a word. The idea is that with the cursor > > within a string, the two sub-strings get swapped. > > > > Examples: > > > > For the word ParSkip with point on the letter S, one gets SkipPar > > > > For the word Keybinding with point on the letter b, one gets bindingKey > > You can enable subword-mode (M-x subword-mode RET) and then swap the > words with M-t (transpose-words). (That doesn't work with your second example though)