summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-11-09 23:39:35 -0800
committerGlenn Morris <rgm@gnu.org>2014-11-09 23:39:35 -0800
commitc832df2ec2f6528bc35f69f9fd9a4b2e470d2ebe (patch)
tree98a77f1acdac589d1be95dea128af1af7e8dc286 /src/fileio.c
parenteca1ea96559e04e18a62a61208d501c557dd4cab (diff)
parentedfdb22f674312389ccf5d5e37efa4d3f1516994 (diff)
downloademacs-c832df2ec2f6528bc35f69f9fd9a4b2e470d2ebe.tar.gz
Merge from emacs-24; up to 117698
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index cdbd0be28ad..7d7b0b3148f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4329,8 +4329,11 @@ by calling `format-decode', which see. */)
coding_system = CODING_ID_NAME (coding.id);
}
else if (inserted > 0)
- adjust_after_insert (PT, PT_BYTE, PT + inserted, PT_BYTE + inserted,
- inserted);
+ {
+ invalidate_buffer_caches (current_buffer, PT, PT + inserted);
+ adjust_after_insert (PT, PT_BYTE, PT + inserted, PT_BYTE + inserted,
+ inserted);
+ }
/* Call after-change hooks for the inserted text, aside from the case
of normal visiting (not with REPLACE), which is done in a new buffer