mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 19:07:34 +00:00
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.
This commit is contained in:
parent
375761b243
commit
d57f4dde80
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2013-11-05 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* 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. (Bug#15148)
|
||||
|
||||
2013-11-05 Xue Fuqiao <xfq.free@gmail.com>
|
||||
|
||||
* xdisp.c (syms_of_xdisp): Mention the active display table in doc
|
||||
|
|
|
|||
|
|
@ -822,6 +822,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
|
|||
ptrdiff_t count1 = SPECPDL_INDEX ();
|
||||
|
||||
XSETBUFFER (curbuf, current_buffer);
|
||||
prepare_to_modify_buffer (PT, PT, NULL);
|
||||
/* We cannot allow after-change-functions be run
|
||||
during decoding, because that might modify the
|
||||
buffer, while we rely on process_coding.produced to
|
||||
|
|
|
|||
Loading…
Reference in a new issue