From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: TIL about string-rectangle Date: Wed, 30 Dec 2020 16:08:17 -0600 Message-ID: References: <448d5e17-910f-4d32-b99c-96410c8e802e@default> 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="39449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 23:08:22 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 1kujdl-000AAI-Mq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 23:08:21 +0100 Original-Received: from localhost ([::1]:60360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kujdk-0002IT-M4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 17:08:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kujdR-0002IJ-Sc for help-gnu-emacs@gnu.org; Wed, 30 Dec 2020 17:08:01 -0500 Original-Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]:38119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kujdQ-00075T-EX for help-gnu-emacs@gnu.org; Wed, 30 Dec 2020 17:08:01 -0500 Original-Received: by mail-yb1-xb35.google.com with SMTP id r63so9067797ybf.5 for ; Wed, 30 Dec 2020 14:08:00 -0800 (PST) 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=gXiZrU/jvNkGWYeF0/rHh7Y4z2XsqrGyTRH4S8CuBb4=; b=QClwcvuMXDIeU4TkbctayP/MnXeNUEotPcwgU4x4UMrXOW+wvzfNRS/Nt38NKFyxa+ C1uVkDekFhi5JxSbj7dCNXsOxnsAjw8KxNFvBgkbM/q9quQQaGj/zk98EaXbDYIHCnEf j+QrRL/bUhZI4cyW+wLK75quxbynK1HAAsrtISOdD/CxYKG4W9x3yOphKX+bBBDCI13C RslRdFin3nGoyOOc9F+XELlBd9WdWBWrpjPR7alwKoDNjZ+58rjEstScEnjwqJkquR8s rSNi7MaJBUQd8UqR5Cg7k8dyzqd9yJtqp9+YFkEW/seXnwE9LtamKMlGKnmlW8PFt10R kdrA== 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=gXiZrU/jvNkGWYeF0/rHh7Y4z2XsqrGyTRH4S8CuBb4=; b=Fj//+7rWhb2cp8hnc5liRmakpjXf+1Cz2xmMU0Otf780pTf4Q9vEn+0rVR5/ALSs9J JMr4m/pz1gJcnfK29U1OcsjZX/3Ci22qO3ooGy5VKz4XsgkbuWw7/DOCiPQ1MQcysE8u qqhLSH3vVULmA13L2HEtA7JKZ1Q4tJz7ERC8Zb71cuZOAqWN+o/N6mFT2CH+UQ+Ev9st 5LVV+rNrHk+Hejzsjm3fnZgOujgAAFIR0bPchCmKlPfvIsDOirKjz5lSmd3IQc0BYR0W Mh7UVct2+goKljYB0320wu0D4Y768WbDeFR6u/QOROPL6I9fVB7QTn+Lkg3fnNZev3AC 67Bg== X-Gm-Message-State: AOAM531ieAETjpiL3vuuCn0rQ/nYG1wXgNNVYgyIE+daQgzXXRCb0Dq6 MLmPDBF2icC2U8LZO3qZXvq25qWQdL8O+msAXkDF2TvSSUlrUek= X-Google-Smtp-Source: ABdhPJwZte7ItQBlZEwmtfi5Ur4sRv2bVo7AHEeQX82GVO38E572AmDwiDDF0DEJwomw8q7L0FWD2l0784ZjHvi1lvI= X-Received: by 2002:a5b:647:: with SMTP id o7mr75670382ybq.429.1609366079424; Wed, 30 Dec 2020 14:07:59 -0800 (PST) In-Reply-To: <448d5e17-910f-4d32-b99c-96410c8e802e@default> Received-SPF: pass client-ip=2607:f8b0:4864:20::b35; envelope-from=skip.montanaro@gmail.com; helo=mail-yb1-xb35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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:126926 Archived-At: > You can also use the usual replacement commands > in a rectangular region. `C-x SPC' to establish > the region, then `C-M-%' or whatever, to search > and replace only with that rectangular region. Hmmm... That doesn't work for me. I've used rectangles a lot over the years and have never seen query-replace and friends be constrained by the currently defined rectangle. I must be missing something. Skip