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:08 +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="17317"; 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:50:45 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 1kYpPA-0004Oz-7Q for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 12:50:44 +0100 Original-Received: from localhost ([::1]:48036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYpP9-0003Bx-9i for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 07:50:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYpOn-0003Bl-R5 for help-gnu-emacs@gnu.org; Sat, 31 Oct 2020 07:50:21 -0400 Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:39006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYpOm-0000fS-Dv for help-gnu-emacs@gnu.org; Sat, 31 Oct 2020 07:50:21 -0400 Original-Received: by mail-ot1-x330.google.com with SMTP id z16so2890923otq.6 for ; Sat, 31 Oct 2020 04:50:20 -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=k+2FE090/e0xHFRvZzhRYxVPV6IqnNK31aH3BlVPnKk=; b=qZRj35hdjdLw95a1EyfnSySIQIo2UvkKwInZ3Tjk8fyXB9Pa5APM8qvFf9JiXhDf0o aF9pJgKVGH+LZaKP1BjSpYD0YVN/NGfSHLH1n4+IgaRWQk1ngTh40dpKqxHeoF/mKOED 5OCJY5pBwiXvP1Kq8fL+2rpgecwqYVA8Z3mlIbkAhmnwW5/bDFBRYBHrBTuuR1i0h0hv KoMPggmmrOnwbNzK7xlZbNq2KzwELXPV2Q1NA4PceFYYL+WVdEUivjuDkrAi8ZIpgc70 Sc+6MocKnqQPmsjCXZErnWWeA1tKqUOemKb1CGEXRk/UxycnU4IashqQO2xjrvz0Q5d5 eYcQ== 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=k+2FE090/e0xHFRvZzhRYxVPV6IqnNK31aH3BlVPnKk=; b=g9c41+6ryKvQ/RQ11WLvEmpzH1FvA+vGJZzCqwlha7fGoBAkYatRl5Jw7Yy0iCe8n7 UrGjV4KSnhyN/y2b3mcOb/cNPcRszhFSI9XWwiSE6yRLZ7Ywf/I6fRPFzDm+eFQAN/DV guNm99tbAMyjUbcvSIkCG7kNSd+d4jQcgpm2HuwQLFj3dbVrHZs0qOb6ZXqovZXRzi1f JmOAx0gp9RbeLgkEC37lAxR/BgR9Lgpq6z1Zdcs0Dhfovyti1QzeJt9L2hWAIq41b+8w tcbduAVxVuCX0Y/iob9DV3NZcr71oApVO5JSv3OFA/jrhAy61J0S0ZjVy+G68Ej3Jr2H smLA== X-Gm-Message-State: AOAM530fmZPMzageKqD0z+jhPxIisRfK/VaFl/SjrjXdYPAjACYzKoZ+ wG0pWcCFIs0ooEw5wzETJr12OsauK2lfX8tmZ68= X-Google-Smtp-Source: ABdhPJyY6wjxD0XHPaEnfL+m01EyABdiMQO7dEDyPAnbcLwoRnCFQEifzTcIUTkLBqhe99h3Rq7d4/M8T+PVUvJ78Ng= X-Received: by 2002:a9d:6e88:: with SMTP id a8mr4801507otr.174.1604145018985; Sat, 31 Oct 2020 04:50:18 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x330.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:124825 Archived-At: 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).