diff options
| author | Noam Postavsky | 2017-10-15 17:09:09 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-10-16 20:10:55 -0400 |
| commit | 20cc68e871b8903a603aa4a89d2bc648d010781a (patch) | |
| tree | be943828a82a83feb468eba6016647be5d6ef267 | |
| parent | a0b7b301dd32ea02b00a3ffb477c8a6074071f74 (diff) | |
| download | emacs-20cc68e871b8903a603aa4a89d2bc648d010781a.tar.gz emacs-20cc68e871b8903a603aa4a89d2bc648d010781a.zip | |
Document rectangle-preview option more (Bug#27974)
* lisp/rect.el (string-rectangle):
* etc/NEWS.25: Mention `rectangle-preview'.
| -rw-r--r-- | etc/NEWS.25 | 2 | ||||
| -rw-r--r-- | lisp/rect.el | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS.25 b/etc/NEWS.25 index 5201a300e01..aac60c46887 100644 --- a/etc/NEWS.25 +++ b/etc/NEWS.25 | |||
| @@ -712,7 +712,9 @@ CLOS class and slot documentation. | |||
| 712 | *** Rectangle Mark mode can have corners past EOL or in the middle of a TAB. | 712 | *** Rectangle Mark mode can have corners past EOL or in the middle of a TAB. |
| 713 | 713 | ||
| 714 | *** 'C-x C-x' in 'rectangle-mark-mode' now cycles through the four corners. | 714 | *** 'C-x C-x' in 'rectangle-mark-mode' now cycles through the four corners. |
| 715 | |||
| 715 | *** 'string-rectangle' provides on-the-fly preview of the result. | 716 | *** 'string-rectangle' provides on-the-fly preview of the result. |
| 717 | Customize 'rectangle-preview' to nil for the old behavior. | ||
| 716 | 718 | ||
| 717 | ** New font-lock functions 'font-lock-ensure' and 'font-lock-flush'. | 719 | ** New font-lock functions 'font-lock-ensure' and 'font-lock-flush'. |
| 718 | These should be used in preference to 'font-lock-fontify-buffer' when | 720 | These should be used in preference to 'font-lock-fontify-buffer' when |
diff --git a/lisp/rect.el b/lisp/rect.el index 12e62b6a990..a62ed95b715 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -450,6 +450,10 @@ With a prefix (or a FILL) argument, also fill too short lines." | |||
| 450 | "Replace rectangle contents with STRING on each line. | 450 | "Replace rectangle contents with STRING on each line. |
| 451 | The length of STRING need not be the same as the rectangle width. | 451 | The length of STRING need not be the same as the rectangle width. |
| 452 | 452 | ||
| 453 | When called interactively and option `rectangle-preview' is | ||
| 454 | non-nil, display the result as the user enters the string into | ||
| 455 | the minibuffer. | ||
| 456 | |||
| 453 | Called from a program, takes three args; START, END and STRING." | 457 | Called from a program, takes three args; START, END and STRING." |
| 454 | (interactive | 458 | (interactive |
| 455 | (progn | 459 | (progn |