GNU bug report logs -
#27974
25.2; string-rectangle on-the-fly preview bad
Previous Next
Reported by: Bob Proulx <bob <at> proulx.com>
Date: Sat, 5 Aug 2017 19:57:01 UTC
Severity: minor
Tags: patch
Found in version 25.2
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Bob Proulx <bob <at> proulx.com> writes:
> Let me suggest the following addition to the NEWS file.
>
> *** 'string-rectangle' provides on-the-fly preview of the result.
> +This is controlled by the rectangle-preview variable. Defaults to t.
> +Set (setq rectangle-preview nil) if you want the previous behavior.
I think it should also be documented in the docstring of
string-rectangle:
[v2-0001-Document-rectangle-preview-option-more-Bug-27974.patch (text/x-diff, inline)]
From 4fd248152d15218e3f9f1d3747cebdad87062513 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs <at> gmail.com>
Date: Sun, 15 Oct 2017 17:09:09 -0400
Subject: [PATCH v2] Document rectangle-preview option more (Bug#27974)
* lisp/rect.el (string-rectangle):
* etc/NEWS.25: Mention `rectangle-preview'.
---
etc/NEWS.25 | 2 ++
lisp/rect.el | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/etc/NEWS.25 b/etc/NEWS.25
index 5201a300e0..aac60c4688 100644
--- a/etc/NEWS.25
+++ b/etc/NEWS.25
@@ -712,7 +712,9 @@ CLOS class and slot documentation.
*** Rectangle Mark mode can have corners past EOL or in the middle of a TAB.
*** 'C-x C-x' in 'rectangle-mark-mode' now cycles through the four corners.
+
*** 'string-rectangle' provides on-the-fly preview of the result.
+Customize 'rectangle-preview' to nil for the old behavior.
** New font-lock functions 'font-lock-ensure' and 'font-lock-flush'.
These should be used in preference to 'font-lock-fontify-buffer' when
diff --git a/lisp/rect.el b/lisp/rect.el
index 12e62b6a99..4ad7a98dda 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -450,6 +450,10 @@ string-rectangle
"Replace rectangle contents with STRING on each line.
The length of STRING need not be the same as the rectangle width.
+When called interactively and option `rectangle-preview' is
+non-nil, the result is previewed as the string is entered in the
+minibuffer.
+
Called from a program, takes three args; START, END and STRING."
(interactive
(progn
--
2.11.0
This bug report was last modified 7 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.