changeset 57606:6a526f57129e

(Fdelete_and_extract_region): If region is empty, return null string.
author Richard M. Stallman <rms@gnu.org>
date Tue, 19 Oct 2004 16:56:51 +0000
parents 6738a2db2167
children c54b2dfa66bd
files src/editfns.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Tue Oct 19 16:54:17 2004 +0000
+++ b/src/editfns.c	Tue Oct 19 16:56:51 2004 +0000
@@ -2844,6 +2844,8 @@
      Lisp_Object start, end;
 {
   validate_region (&start, &end);
+  if (XINT (start) == XINT (end))
+    return build_string ("");
   return del_range_1 (XINT (start), XINT (end), 1, 1);
 }