diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-07-30 10:43:46 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-07-30 10:43:46 +0400 |
commit | 6cd7a13902729007a4d1e14a299bad47c9808353 (patch) | |
tree | 4c292449725756a65bca595d97a33740c3851094 /src/composite.c | |
parent | 227f5bd0b41ebec90ec61a2b8832c95cec20c5a9 (diff) | |
download | emacs-6cd7a13902729007a4d1e14a299bad47c9808353.tar.gz |
Convert safe_call to use variable number of arguments.
* xdisp.c (safe_call): Convert to use varargs. Adjust users.
(safe_call2): Fix comment.
* lisp.h (safe_call): Adjust prototype.
* coding.c (encode_coding_object): Change to use safe_call2.
* xfaces.c (merge_face_heights): Change to use safe_call1.
Diffstat (limited to 'src/composite.c')
-rw-r--r-- | src/composite.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/composite.c b/src/composite.c index bfc8093a87f..62ab3d04948 100644 --- a/src/composite.c +++ b/src/composite.c @@ -947,20 +947,12 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t string); if (NILP (LGSTRING_ID (lgstring))) { - Lisp_Object args[6]; - /* Save point as marker before calling out to lisp. */ if (NILP (string)) record_unwind_protect (restore_point_unwind, build_marker (current_buffer, pt, pt_byte)); - - args[0] = Vauto_composition_function; - args[1] = AREF (rule, 2); - args[2] = pos; - args[3] = make_number (to); - args[4] = font_object; - args[5] = string; - lgstring = safe_call (6, args); + lgstring = safe_call (6, Vauto_composition_function, AREF (rule, 2), + pos, make_number (to), font_object, string); } return unbind_to (count, lgstring); } |