diff options
author | Miles Bader <miles@gnu.org> | 2004-12-08 05:02:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2004-12-08 05:02:30 +0000 |
commit | 000fc2b1fad05ccd9e6cdb5810febb091f4b5738 (patch) | |
tree | 808f1473847c7c44bc8b28d8edfa086ec25035d1 /src/insdel.c | |
parent | 5bc63b073c3c75dbfab1f14423f01cc615e26eeb (diff) | |
parent | ad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff) | |
download | emacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.tar.gz |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709
Update from CVS: src/indent.c (Fvertical_motion): Fix last change.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74
Update from CVS
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/insdel.c b/src/insdel.c index 4a97eab79ef..aec393692a2 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1046,6 +1046,10 @@ insert_from_string (string, pos, pos_byte, length, length_byte, inherit) int inherit; { int opoint = PT; + + if (SCHARS (string) == 0) + return; + insert_from_string_1 (string, pos, pos_byte, length, length_byte, inherit, 0); signal_after_change (opoint, 0, PT - opoint); @@ -1063,6 +1067,10 @@ insert_from_string_before_markers (string, pos, pos_byte, int inherit; { int opoint = PT; + + if (SCHARS (string) == 0) + return; + insert_from_string_1 (string, pos, pos_byte, length, length_byte, inherit, 1); signal_after_change (opoint, 0, PT - opoint); |