diff options
| author | Andrea Corallo | 2020-05-31 18:32:13 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-05-31 18:32:13 +0100 |
| commit | 15d4fee69fa637191ed985af2397e732001dab6f (patch) | |
| tree | af9a41f565e27c69f31f9f453714661f47b3efbc /src | |
| parent | 3efb2808d415f723ade4a0f9f61738e1a707156c (diff) | |
| parent | f56830acbfac8ddedafbabc9be379cd197c9d65b (diff) | |
| download | emacs-15d4fee69fa637191ed985af2397e732001dab6f.tar.gz emacs-15d4fee69fa637191ed985af2397e732001dab6f.zip | |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 86e7c20cd01..cbd306a6b67 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -199,6 +199,7 @@ maybe_disable_address_randomization (int argc, char **argv) | |||
| 199 | } | 199 | } |
| 200 | #endif | 200 | #endif |
| 201 | 201 | ||
| 202 | #ifndef WINDOWSNT | ||
| 202 | /* Execute the program in FILE, with argument vector ARGV and environ | 203 | /* Execute the program in FILE, with argument vector ARGV and environ |
| 203 | ENVP. Return an error number if unsuccessful. This is like execve | 204 | ENVP. Return an error number if unsuccessful. This is like execve |
| 204 | except it reenables ASLR in the executed program if necessary, and | 205 | except it reenables ASLR in the executed program if necessary, and |
| @@ -215,6 +216,8 @@ emacs_exec_file (char const *file, char *const *argv, char *const *envp) | |||
| 215 | return errno; | 216 | return errno; |
| 216 | } | 217 | } |
| 217 | 218 | ||
| 219 | #endif /* !WINDOWSNT */ | ||
| 220 | |||
| 218 | /* If FD is not already open, arrange for it to be open with FLAGS. */ | 221 | /* If FD is not already open, arrange for it to be open with FLAGS. */ |
| 219 | static void | 222 | static void |
| 220 | force_open (int fd, int flags) | 223 | force_open (int fd, int flags) |
diff --git a/src/xdisp.c b/src/xdisp.c index db0ec683159..ea28395cf55 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1415,6 +1415,7 @@ Value is the height in pixels of the line at point. */) | |||
| 1415 | set_buffer_internal_1 (XBUFFER (w->contents)); | 1415 | set_buffer_internal_1 (XBUFFER (w->contents)); |
| 1416 | } | 1416 | } |
| 1417 | SET_TEXT_POS (pt, PT, PT_BYTE); | 1417 | SET_TEXT_POS (pt, PT, PT_BYTE); |
| 1418 | void *itdata = bidi_shelve_cache (); | ||
| 1418 | start_display (&it, w, pt); | 1419 | start_display (&it, w, pt); |
| 1419 | /* Start from the beginning of the screen line, to make sure we | 1420 | /* Start from the beginning of the screen line, to make sure we |
| 1420 | traverse all of its display elements, and thus capture the | 1421 | traverse all of its display elements, and thus capture the |
| @@ -1426,6 +1427,7 @@ Value is the height in pixels of the line at point. */) | |||
| 1426 | if (old_buffer) | 1427 | if (old_buffer) |
| 1427 | set_buffer_internal_1 (old_buffer); | 1428 | set_buffer_internal_1 (old_buffer); |
| 1428 | 1429 | ||
| 1430 | bidi_unshelve_cache (itdata, false); | ||
| 1429 | return result; | 1431 | return result; |
| 1430 | } | 1432 | } |
| 1431 | 1433 | ||
| @@ -24442,6 +24444,7 @@ Value is the new character position of point. */) | |||
| 24442 | bool at_eol_p; | 24444 | bool at_eol_p; |
| 24443 | bool overshoot_expected = false; | 24445 | bool overshoot_expected = false; |
| 24444 | bool target_is_eol_p = false; | 24446 | bool target_is_eol_p = false; |
| 24447 | void *itdata = bidi_shelve_cache (); | ||
| 24445 | 24448 | ||
| 24446 | /* Setup the arena. */ | 24449 | /* Setup the arena. */ |
| 24447 | SET_TEXT_POS (pt, PT, PT_BYTE); | 24450 | SET_TEXT_POS (pt, PT, PT_BYTE); |
| @@ -24670,6 +24673,7 @@ Value is the new character position of point. */) | |||
| 24670 | 24673 | ||
| 24671 | /* Move point to that position. */ | 24674 | /* Move point to that position. */ |
| 24672 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); | 24675 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); |
| 24676 | bidi_unshelve_cache (itdata, false); | ||
| 24673 | } | 24677 | } |
| 24674 | 24678 | ||
| 24675 | return make_fixnum (PT); | 24679 | return make_fixnum (PT); |