diff options
| author | John Shahid | 2018-06-28 09:13:45 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2018-07-01 19:05:37 +0300 |
| commit | 260768a64be39aada03247d6057698df97bcb800 (patch) | |
| tree | f61ec4466fc4768a2b0c610a8fc1ac931a067746 /etc | |
| parent | 7edc019651b3e16592d2d16616a7d4cecc285ae6 (diff) | |
| download | emacs-260768a64be39aada03247d6057698df97bcb800.tar.gz emacs-260768a64be39aada03247d6057698df97bcb800.zip | |
Add a new argument to 'recenter' to allow finer control of redisplay
* window.c (recenter): Add a new REDISPLAY argument to allow the
caller to control the redisplay behavior. 'recenter' will only
redisplay the frame if this new arg and 'recenter-redisplay' are
both non-nil.
(recenter-top-bottom): Pass an extra non-nil argument to
'recenter' to force a redisplay. (Bug#31325)
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -690,6 +690,11 @@ manual for more details. | |||
| 690 | * Lisp Changes in Emacs 27.1 | 690 | * Lisp Changes in Emacs 27.1 |
| 691 | 691 | ||
| 692 | +++ | 692 | +++ |
| 693 | ** The function 'recenter' accepts an additional optional argument. | ||
| 694 | If the optional second argument is nil, recenter will not redisplay | ||
| 695 | the frame regardless of the value of 'recenter-redisplay'. | ||
| 696 | |||
| 697 | +++ | ||
| 693 | ** New functions 'major-mode-suspend' and 'major-mode-restore'. | 698 | ** New functions 'major-mode-suspend' and 'major-mode-restore'. |
| 694 | Use them when switching temporarily to another major mode, e.g. for | 699 | Use them when switching temporarily to another major mode, e.g. for |
| 695 | 'hexl-mode', or to switch between 'c-mode' and 'image-mode' in XPM. | 700 | 'hexl-mode', or to switch between 'c-mode' and 'image-mode' in XPM. |