diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/src/editfns.c b/src/editfns.c index 621e841c3f5..7026ccc084e 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2033,20 +2033,20 @@ DOW and ZONE.) */) | |||
| 2033 | /* Avoid overflow when INT_MAX < EMACS_INT_MAX. */ | 2033 | /* Avoid overflow when INT_MAX < EMACS_INT_MAX. */ |
| 2034 | EMACS_INT tm_year_base = TM_YEAR_BASE; | 2034 | EMACS_INT tm_year_base = TM_YEAR_BASE; |
| 2035 | 2035 | ||
| 2036 | return Flist (9, ((Lisp_Object []) | 2036 | return CALLN (Flist, |
| 2037 | {make_number (local_tm.tm_sec), | 2037 | make_number (local_tm.tm_sec), |
| 2038 | make_number (local_tm.tm_min), | 2038 | make_number (local_tm.tm_min), |
| 2039 | make_number (local_tm.tm_hour), | 2039 | make_number (local_tm.tm_hour), |
| 2040 | make_number (local_tm.tm_mday), | 2040 | make_number (local_tm.tm_mday), |
| 2041 | make_number (local_tm.tm_mon + 1), | 2041 | make_number (local_tm.tm_mon + 1), |
| 2042 | make_number (local_tm.tm_year + tm_year_base), | 2042 | make_number (local_tm.tm_year + tm_year_base), |
| 2043 | make_number (local_tm.tm_wday), | 2043 | make_number (local_tm.tm_wday), |
| 2044 | local_tm.tm_isdst ? Qt : Qnil, | 2044 | local_tm.tm_isdst ? Qt : Qnil, |
| 2045 | (HAVE_TM_GMTOFF | 2045 | (HAVE_TM_GMTOFF |
| 2046 | ? make_number (tm_gmtoff (&local_tm)) | 2046 | ? make_number (tm_gmtoff (&local_tm)) |
| 2047 | : gmtime_r (&time_spec, &gmt_tm) | 2047 | : gmtime_r (&time_spec, &gmt_tm) |
| 2048 | ? make_number (tm_diff (&local_tm, &gmt_tm)) | 2048 | ? make_number (tm_diff (&local_tm, &gmt_tm)) |
| 2049 | : Qnil)})); | 2049 | : Qnil)); |
| 2050 | } | 2050 | } |
| 2051 | 2051 | ||
| 2052 | /* Return OBJ - OFFSET, checking that OBJ is a valid fixnum and that | 2052 | /* Return OBJ - OFFSET, checking that OBJ is a valid fixnum and that |
| @@ -2679,25 +2679,20 @@ update_buffer_properties (ptrdiff_t start, ptrdiff_t end) | |||
| 2679 | call them, specifying the range of the buffer being accessed. */ | 2679 | call them, specifying the range of the buffer being accessed. */ |
| 2680 | if (!NILP (Vbuffer_access_fontify_functions)) | 2680 | if (!NILP (Vbuffer_access_fontify_functions)) |
| 2681 | { | 2681 | { |
| 2682 | Lisp_Object args[3]; | ||
| 2683 | Lisp_Object tem; | ||
| 2684 | |||
| 2685 | args[0] = Qbuffer_access_fontify_functions; | ||
| 2686 | XSETINT (args[1], start); | ||
| 2687 | XSETINT (args[2], end); | ||
| 2688 | |||
| 2689 | /* But don't call them if we can tell that the work | 2682 | /* But don't call them if we can tell that the work |
| 2690 | has already been done. */ | 2683 | has already been done. */ |
| 2691 | if (!NILP (Vbuffer_access_fontified_property)) | 2684 | if (!NILP (Vbuffer_access_fontified_property)) |
| 2692 | { | 2685 | { |
| 2693 | tem = Ftext_property_any (args[1], args[2], | 2686 | Lisp_Object tem |
| 2694 | Vbuffer_access_fontified_property, | 2687 | = Ftext_property_any (make_number (start), make_number (end), |
| 2695 | Qnil, Qnil); | 2688 | Vbuffer_access_fontified_property, |
| 2696 | if (! NILP (tem)) | 2689 | Qnil, Qnil); |
| 2697 | Frun_hook_with_args (3, args); | 2690 | if (NILP (tem)) |
| 2691 | return; | ||
| 2698 | } | 2692 | } |
| 2699 | else | 2693 | |
| 2700 | Frun_hook_with_args (3, args); | 2694 | CALLN (Frun_hook_with_args, Qbuffer_access_fontify_functions, |
| 2695 | make_number (start), make_number (end)); | ||
| 2701 | } | 2696 | } |
| 2702 | } | 2697 | } |
| 2703 | 2698 | ||
| @@ -4516,7 +4511,7 @@ Lisp_Object | |||
| 4516 | format2 (const char *string1, Lisp_Object arg0, Lisp_Object arg1) | 4511 | format2 (const char *string1, Lisp_Object arg0, Lisp_Object arg1) |
| 4517 | { | 4512 | { |
| 4518 | AUTO_STRING (format, string1); | 4513 | AUTO_STRING (format, string1); |
| 4519 | return Fformat (3, (Lisp_Object []) {format, arg0, arg1}); | 4514 | return CALLN (Fformat, format, arg0, arg1); |
| 4520 | } | 4515 | } |
| 4521 | 4516 | ||
| 4522 | DEFUN ("char-equal", Fchar_equal, Schar_equal, 2, 2, 0, | 4517 | DEFUN ("char-equal", Fchar_equal, Schar_equal, 2, 2, 0, |