mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 03:13:24 +00:00
(Finsert_file_contents): On replacing, temporarily bind
buffer-file-name to Qnil before calling insert_from_buffer.
This commit is contained in:
parent
465478d574
commit
d07af40d88
1 changed files with 4 additions and 0 deletions
|
@ -4360,6 +4360,10 @@ actually used. */)
|
|||
= (buf_bytepos_to_charpos (XBUFFER (conversion_buffer),
|
||||
same_at_start + inserted)
|
||||
- same_at_start_charpos);
|
||||
/* This binding is to avoid ask-user-about-supersession-threat
|
||||
being called in insert_from_buffer (via in
|
||||
prepare_to_modify_buffer). */
|
||||
specbind (intern ("buffer-file-name"), Qnil);
|
||||
insert_from_buffer (XBUFFER (conversion_buffer),
|
||||
same_at_start_charpos, inserted_chars, 0);
|
||||
/* Set `inserted' to the number of inserted characters. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue