GNU bug report logs -
#6493
24.0.50; doc strings of region-beginning, region-end
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Tue, 22 Jun 2010 16:14:02 UTC
Severity: minor
Found in version 24.0.50
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #71 received at 6493 <at> debbugs.gnu.org (full text, mbox):
2010/8/1 Drew Adams <drew.adams <at> oracle.com>:
> That does not follow _logically_ - we could return the other value (point is
> numeric) or some special value to indicate this condition, but raising an error
> seems like common sense and what users would expect.
That's highly subjective IMHO.
Do you oppose to the following (minimal) version?
Juanma
=== modified file 'src/editfns.c'
--- src/editfns.c 2010-07-29 15:50:04 +0000
+++ src/editfns.c 2010-08-02 03:27:32 +0000
@@ -337,5 +337,6 @@
DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0,
- doc: /* Return position of beginning of region, as an integer. */)
+ doc: /* Return the integer value of point or mark, whichever is smaller.
+Signal an error if the region is not active. */)
(void)
{
@@ -344,5 +345,6 @@
DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0,
- doc: /* Return position of end of region, as an integer. */)
+ doc: /* Return the integer value of point or mark, whichever is larger.
+Signal an error if the region is not active. */)
(void)
{
This bug report was last modified 14 years and 298 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.