aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-06-10 17:17:08 +0000
committerKaroly Lorentey2004-06-10 17:17:08 +0000
commit12828db003f4154515725d1943e22b00690bacce (patch)
tree55eb186283c845a071b711284c837aacd514443e /src
parentd6b4b3cfcc7bfc5a4a3b24acf2ce7e0a49c08b5f (diff)
parentd82baff9bd95b64b89e3a10072f292647f8b2b87 (diff)
downloademacs-12828db003f4154515725d1943e22b00690bacce.tar.gz
emacs-12828db003f4154515725d1943e22b00690bacce.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-383 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-384 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-385 src/xfaces.c (push_named_merge_point): Return 0 if a cycle is detected * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-386 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-387 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-388 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-389 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-390 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-391 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-392 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-393 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-196
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/editfns.c21
-rw-r--r--src/xfaces.c6
3 files changed, 24 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 583537d889d..d6750648fd5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12004-06-08 Miles Bader <miles@gnu.org>
2
3 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4
52004-06-07 Juanma Barranquero <lektu@terra.es>
6
7 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
8 (Fcurrent_time_string, Fcurrent_time_zone)
9 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
10
12004-06-07 Miles Bader <miles@gnu.org> 112004-06-07 Miles Bader <miles@gnu.org>
2 12
3 * xfaces.c (struct named_merge_point): New type. 13 * xfaces.c (struct named_merge_point): New type.
diff --git a/src/editfns.c b/src/editfns.c
index 207faf492ab..c9dd4ecefdf 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1218,7 +1218,7 @@ If POS is out of range, the value is nil. */)
1218DEFUN ("user-login-name", Fuser_login_name, Suser_login_name, 0, 1, 0, 1218DEFUN ("user-login-name", Fuser_login_name, Suser_login_name, 0, 1, 0,
1219 doc: /* Return the name under which the user logged in, as a string. 1219 doc: /* Return the name under which the user logged in, as a string.
1220This is based on the effective uid, not the real uid. 1220This is based on the effective uid, not the real uid.
1221Also, if the environment variable LOGNAME or USER is set, 1221Also, if the environment variables LOGNAME or USER are set,
1222that determines the value of this function. 1222that determines the value of this function.
1223 1223
1224If optional argument UID is an integer, return the login name of the user 1224If optional argument UID is an integer, return the login name of the user
@@ -1430,7 +1430,7 @@ lisp_time_argument (specified_time, result, usec)
1430 1430
1431DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0, 1431DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0,
1432 doc: /* Return the current time, as a float number of seconds since the epoch. 1432 doc: /* Return the current time, as a float number of seconds since the epoch.
1433If an argument is given, it specifies a time to convert to float 1433If SPECIFIED-TIME is given, it is the time to convert to float
1434instead of the current time. The argument should have the forms: 1434instead of the current time. The argument should have the forms:
1435 (HIGH . LOW) or (HIGH LOW USEC) or (HIGH LOW . USEC). 1435 (HIGH . LOW) or (HIGH LOW USEC) or (HIGH LOW . USEC).
1436Thus, you can use times obtained from `current-time' 1436Thus, you can use times obtained from `current-time'
@@ -1660,7 +1660,7 @@ are used as SECOND through YEAR, and the *last* argument is used as ZONE.
1660The intervening arguments are ignored. 1660The intervening arguments are ignored.
1661This feature lets (apply 'encode-time (decode-time ...)) work. 1661This feature lets (apply 'encode-time (decode-time ...)) work.
1662 1662
1663Out-of-range values for SEC, MINUTE, HOUR, DAY, or MONTH are allowed; 1663Out-of-range values for SECOND, MINUTE, HOUR, DAY, or MONTH are allowed;
1664for example, a DAY of 0 means the day preceding the given month. 1664for example, a DAY of 0 means the day preceding the given month.
1665Year numbers less than 100 are treated just like other year numbers. 1665Year numbers less than 100 are treated just like other year numbers.
1666If you want them to stand for years in this century, you must do that yourself. 1666If you want them to stand for years in this century, you must do that yourself.
@@ -1745,8 +1745,8 @@ The format is `Sun Sep 16 01:03:52 1973'.
1745However, see also the functions `decode-time' and `format-time-string' 1745However, see also the functions `decode-time' and `format-time-string'
1746which provide a much more powerful and general facility. 1746which provide a much more powerful and general facility.
1747 1747
1748If an argument is given, it specifies a time to format 1748If SPECIFIED-TIME is given, it is a time to format instead
1749instead of the current time. The argument should have the form: 1749of the current time. The argument should have the form:
1750 (HIGH . LOW) 1750 (HIGH . LOW)
1751or the form: 1751or the form:
1752 (HIGH LOW . IGNORED). 1752 (HIGH LOW . IGNORED).
@@ -1801,7 +1801,7 @@ This returns a list of the form (OFFSET NAME).
1801OFFSET is an integer number of seconds ahead of UTC (east of Greenwich). 1801OFFSET is an integer number of seconds ahead of UTC (east of Greenwich).
1802 A negative value means west of Greenwich. 1802 A negative value means west of Greenwich.
1803NAME is a string giving the name of the time zone. 1803NAME is a string giving the name of the time zone.
1804If an argument is given, it specifies when the time zone offset is determined 1804If SPECIFIED-TIME is given, the time zone offset is determined from it
1805instead of using the current time. The argument should have the form: 1805instead of using the current time. The argument should have the form:
1806 (HIGH . LOW) 1806 (HIGH . LOW)
1807or the form: 1807or the form:
@@ -2349,8 +2349,8 @@ DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_subst
2349 1, 3, 0, 2349 1, 3, 0,
2350 doc: /* Insert before point a substring of the contents of BUFFER. 2350 doc: /* Insert before point a substring of the contents of BUFFER.
2351BUFFER may be a buffer or a buffer name. 2351BUFFER may be a buffer or a buffer name.
2352Arguments START and END are character numbers specifying the substring. 2352Arguments START and END are character positions specifying the substring.
2353They default to the beginning and the end of BUFFER. */) 2353They default to the values of (point-min) and (point-max) in BUFFER. */)
2354 (buffer, start, end) 2354 (buffer, start, end)
2355 Lisp_Object buffer, start, end; 2355 Lisp_Object buffer, start, end;
2356{ 2356{
@@ -2827,6 +2827,7 @@ It returns the number of characters changed. */)
2827 2827
2828DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r", 2828DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r",
2829 doc: /* Delete the text between point and mark. 2829 doc: /* Delete the text between point and mark.
2830
2830When called from a program, expects two arguments, 2831When called from a program, expects two arguments,
2831positions (integers or markers) specifying the stretch to be deleted. */) 2832positions (integers or markers) specifying the stretch to be deleted. */)
2832 (start, end) 2833 (start, end)
@@ -3875,11 +3876,11 @@ transpose_markers (start1, end1, start2, end2,
3875} 3876}
3876 3877
3877DEFUN ("transpose-regions", Ftranspose_regions, Stranspose_regions, 4, 5, 0, 3878DEFUN ("transpose-regions", Ftranspose_regions, Stranspose_regions, 4, 5, 0,
3878 doc: /* Transpose region START1 to END1 with START2 to END2. 3879 doc: /* Transpose region STARTR1 to ENDR1 with STARTR2 to ENDR2.
3879The regions may not be overlapping, because the size of the buffer is 3880The regions may not be overlapping, because the size of the buffer is
3880never changed in a transposition. 3881never changed in a transposition.
3881 3882
3882Optional fifth arg LEAVE_MARKERS, if non-nil, means don't update 3883Optional fifth arg LEAVE-MARKERS, if non-nil, means don't update
3883any markers that happen to be located in the regions. 3884any markers that happen to be located in the regions.
3884 3885
3885Transposing beyond buffer boundaries is an error. */) 3886Transposing beyond buffer boundaries is an error. */)
diff --git a/src/xfaces.c b/src/xfaces.c
index b48ccac9d9d..505e601c57d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3172,8 +3172,8 @@ struct named_merge_point
3172 3172
3173/* If a face merging cycle is detected for FACE_NAME, return 0, 3173/* If a face merging cycle is detected for FACE_NAME, return 0,
3174 otherwise add NEW_NAMED_MERGE_POINT, which is initialized using 3174 otherwise add NEW_NAMED_MERGE_POINT, which is initialized using
3175 FACE_NAME, as the head of the linked list 3175 FACE_NAME, as the head of the linked list pointed to by
3176 pointed to by NAMED_MERGE_POINTS, and return 1. */ 3176 NAMED_MERGE_POINTS, and return 1. */
3177 3177
3178static INLINE int 3178static INLINE int
3179push_named_merge_point (struct named_merge_point *new_named_merge_point, 3179push_named_merge_point (struct named_merge_point *new_named_merge_point,
@@ -3184,7 +3184,7 @@ push_named_merge_point (struct named_merge_point *new_named_merge_point,
3184 3184
3185 for (prev = *named_merge_points; prev; prev = prev->prev) 3185 for (prev = *named_merge_points; prev; prev = prev->prev)
3186 if (EQ (face_name, prev->face_name)) 3186 if (EQ (face_name, prev->face_name))
3187 break; 3187 return 0;
3188 3188
3189 new_named_merge_point->face_name = face_name; 3189 new_named_merge_point->face_name = face_name;
3190 new_named_merge_point->prev = *named_merge_points; 3190 new_named_merge_point->prev = *named_merge_points;