mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 19:07:34 +00:00
(Finsert_file_contents): Don't use
current_buffer->buffer_file_coding_system even if REPLACE is non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
This commit is contained in:
parent
6875d1ae8c
commit
37a3c7744c
1 changed files with 2 additions and 5 deletions
|
|
@ -3861,10 +3861,6 @@ actually used. */)
|
|||
|
||||
if (!NILP (Vcoding_system_for_read))
|
||||
val = Vcoding_system_for_read;
|
||||
else if (! NILP (replace))
|
||||
/* In REPLACE mode, we can use the same coding system
|
||||
that was used to visit the file. */
|
||||
val = current_buffer->buffer_file_coding_system;
|
||||
else
|
||||
{
|
||||
/* Don't try looking inside a file for a coding system
|
||||
|
|
@ -4643,7 +4639,8 @@ actually used. */)
|
|||
|
||||
if (! NILP (Ffboundp (Qafter_insert_file_set_coding)))
|
||||
{
|
||||
insval = call1 (Qafter_insert_file_set_coding, make_number (inserted));
|
||||
insval = call2 (Qafter_insert_file_set_coding, make_number (inserted),
|
||||
visit);
|
||||
if (! NILP (insval))
|
||||
{
|
||||
CHECK_NUMBER (insval);
|
||||
|
|
|
|||
Loading…
Reference in a new issue