aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJohn Shahid2018-06-28 09:13:45 -0400
committerEli Zaretskii2018-07-01 19:05:37 +0300
commit260768a64be39aada03247d6057698df97bcb800 (patch)
treef61ec4466fc4768a2b0c610a8fc1ac931a067746 /etc
parent7edc019651b3e16592d2d16616a7d4cecc285ae6 (diff)
downloademacs-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/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 63c59ae9218..d5f1abb5feb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
694If the optional second argument is nil, recenter will not redisplay
695the 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'.
694Use them when switching temporarily to another major mode, e.g. for 699Use 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.