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: string-rectangle provides on-the-fly preview, undesirably Date: Sun, 2 Jul 2017 16:51:11 -0700 (PDT) Message-ID: <976325a4-7d17-4072-afab-8f7c337f454f@default> References: <20170702171622754791707@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499039552 12973 195.159.176.226 (2 Jul 2017 23:52:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 23:52:32 +0000 (UTC) To: Bob Proulx , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 03 01:52:24 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 1dRof9-0002pv-0B for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 01:52:23 +0200 Original-Received: from localhost ([::1]:59647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRofC-0001Wu-KK for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 19:52:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRoe7-0001Uo-F3 for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 19:51:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRoe4-0006XE-DX for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 19:51:19 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44582) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRoe4-0006Vd-33 for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 19:51:16 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v62NpCMM012711 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 2 Jul 2017 23:51:12 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v62NpBCb023493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 2 Jul 2017 23:51:11 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v62NpBR4019546; Sun, 2 Jul 2017 23:51:11 GMT In-Reply-To: <20170702171622754791707@bob.proulx.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6770.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 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:113650 Archived-At: > The command C-x r t string-rectangle in version 24 and previously > would "Replace rectangle contents with STRING on each line > (=E2=80=98string-rectangle=E2=80=99)." The same happens in version 25 bu= t > differently. In version 25 the change is displayed incrementally > character by character as you type. With a large displayed > rectangle > this can cause a lot of dynamic "flicker" as every character on the > display is moved. This is driving me crazy. >=20 > Is there a way to return to the previous version 24 behavior? Someone will correct me if I'm wrong, but they don't seem to have provided for an easy opt-out of this behavior. If I'm right, you might want to use `M-x report-emacs-bug' to suggest that they do so. It should be very easy to do, based on what I see in the code. The previewing feature should be optional, IMO, even if someone has decided that it should be on by default. FWIW, here is the Emacs 24.5 code, which you should still be able to use. (defun string-rectangle (start end string) "Replace rectangle contents with STRING on each line. The length of STRING need not be the same as the rectangle width. Called from a program, takes three args; START, END and STRING." (interactive (progn (barf-if-buffer-read-only) =09 (list =09 (region-beginning) =09 (region-end) =09 (read-string (format "String rectangle (default %s): " =09=09=09=09(or (car string-rectangle-history) "")) =09=09=09nil 'string-rectangle-history =09=09=09(car string-rectangle-history))))) (goto-char (apply-on-rectangle 'string-rectangle-line start end string t)))