aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-05 18:26:11 +0200
committerEli Zaretskii2013-11-05 18:26:11 +0200
commitd57f4dde80447f0fcdb1c31df7f0657fd2eea369 (patch)
tree6d5d803883e24304298d8b02bb5a52754284583a /src/callproc.c
parent375761b2435915b7b1d3bf10dbbe39b47d370177 (diff)
downloademacs-d57f4dde80447f0fcdb1c31df7f0657fd2eea369.tar.gz
emacs-d57f4dde80447f0fcdb1c31df7f0657fd2eea369.zip
Fix bug #15148 with garbled display in Dired when cache-long-scans is ON.
src/callproc.c (call_process): Call prepare_to_modify_buffer before decoding text read from the sub-process, as the decoded stuff will be inserted into the buffer. This will invalidate the various caches maintained for the buffer.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 2740779f513..72b9c1dc370 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -822,6 +822,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
822 ptrdiff_t count1 = SPECPDL_INDEX (); 822 ptrdiff_t count1 = SPECPDL_INDEX ();
823 823
824 XSETBUFFER (curbuf, current_buffer); 824 XSETBUFFER (curbuf, current_buffer);
825 prepare_to_modify_buffer (PT, PT, NULL);
825 /* We cannot allow after-change-functions be run 826 /* We cannot allow after-change-functions be run
826 during decoding, because that might modify the 827 during decoding, because that might modify the
827 buffer, while we rely on process_coding.produced to 828 buffer, while we rely on process_coding.produced to