From: Drew Adams <drew.adams@oracle.com>
To: Bob Proulx <bob@proulx.com>, help-gnu-emacs@gnu.org
Subject: RE: string-rectangle provides on-the-fly preview, undesirably
Date: Sun, 2 Jul 2017 16:51:11 -0700 (PDT) [thread overview]
Message-ID: <976325a4-7d17-4072-afab-8f7c337f454f@default> (raw)
In-Reply-To: <20170702171622754791707@bob.proulx.com>
> The command C-x r t string-rectangle in version 24 and previously
> would "Replace rectangle contents with STRING on each line
> (‘string-rectangle’)." The same happens in version 25 but
> 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.
>
> 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)
(list
(region-beginning)
(region-end)
(read-string (format "String rectangle (default %s): "
(or (car string-rectangle-history) ""))
nil 'string-rectangle-history
(car string-rectangle-history)))))
(goto-char
(apply-on-rectangle 'string-rectangle-line start end string t)))
next prev parent reply other threads:[~2017-07-02 23:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-02 23:31 string-rectangle provides on-the-fly preview, undesirably Bob Proulx
2017-07-02 23:51 ` Drew Adams [this message]
2017-08-05 20:06 ` Bob Proulx
2017-08-05 20:35 ` John Mastro
2017-08-05 21:00 ` Bob Proulx
2017-08-05 20:37 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=976325a4-7d17-4072-afab-8f7c337f454f@default \
--to=drew.adams@oracle.com \
--cc=bob@proulx.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.