* src/fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
This commit is contained in:
parent
393a301e80
commit
2ba8e00888
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
|
||||
|
||||
2011-09-11 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* minibuf.c (Fread_from_minibuffer): Doc fix.
|
||||
|
|
|
@ -3546,7 +3546,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
|
|||
immediate_quit = 0;
|
||||
/* If the file matches the buffer completely,
|
||||
there's no need to replace anything. */
|
||||
if (same_at_start - BEGV_BYTE == end_offset)
|
||||
if (same_at_start - BEGV_BYTE == end_offset - beg_offset)
|
||||
{
|
||||
emacs_close (fd);
|
||||
specpdl_ptr--;
|
||||
|
|
Loading…
Add table
Reference in a new issue