aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-03 19:24:54 +0000
committerRichard M. Stallman1994-03-03 19:24:54 +0000
commitcfadd37670cdcd20b65ab3809f9aa07e132a0409 (patch)
treeff3028a5a97566e30c3b5d0d1e1c31ead95c46a8 /src
parentfaf931a83dc97561d331617520e2c5d97f1411fc (diff)
downloademacs-cfadd37670cdcd20b65ab3809f9aa07e132a0409.tar.gz
emacs-cfadd37670cdcd20b65ab3809f9aa07e132a0409.zip
(Finsert_file_contents): If undo_list was t, leave it t.
(Finsert_file_contents): Use del_range_1.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b4cec454163..a95c9847910 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2681,8 +2681,7 @@ and (2) it puts less data in the undo list.")
2681 /* Arrange to read only the nonmatching middle part of the file. */ 2681 /* Arrange to read only the nonmatching middle part of the file. */
2682 XFASTINT (beg) = same_at_start - BEGV; 2682 XFASTINT (beg) = same_at_start - BEGV;
2683 XFASTINT (end) = st.st_size - (ZV - same_at_end); 2683 XFASTINT (end) = st.st_size - (ZV - same_at_end);
2684 /* Delete the nonmatching middle part of the buffer. */ 2684 del_range_1 (same_at_start, same_at_end - same_at_start, 0);
2685 Fdelete_region (make_number (same_at_start), make_number (same_at_end));
2686 /* Insert from the file at the proper position. */ 2685 /* Insert from the file at the proper position. */
2687 SET_PT (same_at_start); 2686 SET_PT (same_at_start);
2688 } 2687 }
@@ -2784,7 +2783,8 @@ and (2) it puts less data in the undo list.")
2784 2783
2785 if (!NILP (visit)) 2784 if (!NILP (visit))
2786 { 2785 {
2787 current_buffer->undo_list = Qnil; 2786 if (!EQ (current_buffer->undo_list, Qt))
2787 current_buffer->undo_list = Qnil;
2788#ifdef APOLLO 2788#ifdef APOLLO
2789 stat (XSTRING (filename)->data, &st); 2789 stat (XSTRING (filename)->data, &st);
2790#endif 2790#endif