* editfns.c (Fdelete_region): Clarify the use of the named parameters.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2011 13:37:20 +0000 (15:37 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2011 13:37:20 +0000 (15:37 +0200)
Fixes: debbugs:6788

src/ChangeLog
src/editfns.c

index 9a60ac5..35c56e5 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * editfns.c (Fdelete_region): Clarify the use of the named
+       parameters (bug#6788).
+
 2011-07-14  Martin Rudalics  <rudalics@gmx.at>
 
        * indent.c (Fvertical_motion): Set and restore w->pointm when
index 6df4435..0b0ebc5 100644 (file)
@@ -3160,10 +3160,8 @@ It returns the number of characters changed.  */)
 }
 
 DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r",
-       doc: /* Delete the text between point and mark.
-
-When called from a program, expects two arguments,
-positions (integers or markers) specifying the stretch to be deleted.  */)
+       doc: /* Delete the text between START and END.
+If called interactively, delete the region between point and mark.  */)
   (Lisp_Object start, Lisp_Object end)
 {
   validate_region (&start, &end);