aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-07-19 07:54:08 +0800
committerPo Lu2023-07-19 07:54:08 +0800
commita177e8fd189d52a1275df1bf1f3aff5a7bed78bb (patch)
tree994aecc4252d424f71ca3bb8bff355c2a5dce68b
parentf13c0464ccf3ab08db3cfd719fd86319dc1f3f95 (diff)
parentdec15620d8c79d41808de9a5cbf6ad08f7399212 (diff)
downloademacs-a177e8fd189d52a1275df1bf1f3aff5a7bed78bb.tar.gz
emacs-a177e8fd189d52a1275df1bf1f3aff5a7bed78bb.zip
Merge remote-tracking branch 'origin/master' into feature/android
-rw-r--r--etc/NEWS2
-rw-r--r--src/xdisp.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 76b1cda9e26..c0cec91e77f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -234,7 +234,7 @@ Eshell manual.
234+++ 234+++
235*** Eshell commands can now be explicitly-remote (or local). 235*** Eshell commands can now be explicitly-remote (or local).
236By prefixing a command name in Eshell with a remote identifier, like 236By prefixing a command name in Eshell with a remote identifier, like
237"/ssh:user@remote:whoami", you can now runs commands on a particular 237"/ssh:user@remote:whoami", you can now run commands on a particular
238host no matter your current directory. Likewise, you can run a 238host no matter your current directory. Likewise, you can run a
239command on your local system no matter your current directory via 239command on your local system no matter your current directory via
240"/:whoami". For more information, see the "(eshell) Remote Access" 240"/:whoami". For more information, see the "(eshell) Remote Access"
diff --git a/src/xdisp.c b/src/xdisp.c
index 79689e6cae1..c5a2c081b53 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11651,6 +11651,8 @@ WINDOW. */)
11651 11651
11652 set_buffer_internal_1 (b); 11652 set_buffer_internal_1 (b);
11653 11653
11654 ptrdiff_t base_line_pos = w->base_line_pos;
11655 int end_valid = w->window_end_valid;
11654 if (!EQ (buffer, w->contents)) 11656 if (!EQ (buffer, w->contents))
11655 { 11657 {
11656 wset_buffer (w, buffer); 11658 wset_buffer (w, buffer);
@@ -11663,6 +11665,11 @@ WINDOW. */)
11663 11665
11664 unbind_to (count, Qnil); 11666 unbind_to (count, Qnil);
11665 11667
11668 /* Restore original values. This is important if this function is
11669 called from some ':eval' form in the middle of redisplay. */
11670 w->base_line_pos = base_line_pos;
11671 w->window_end_valid = end_valid;
11672
11666 return value; 11673 return value;
11667} 11674}
11668 11675