diff options
| author | Stefan Kangas | 2025-01-19 04:59:22 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-01-19 14:29:41 +0100 |
| commit | 251e3d2654ae8e5fdee4624d9af93fb9c0e1b698 (patch) | |
| tree | 5058c941d114e9b194310856b5351514e1b09bb5 /src/process.c | |
| parent | 7362f9f75d5aca1c97f920531dd62763918ba5fe (diff) | |
| download | emacs-251e3d2654ae8e5fdee4624d9af93fb9c0e1b698.tar.gz emacs-251e3d2654ae8e5fdee4624d9af93fb9c0e1b698.zip | |
Replace call[1-8] with calln
Since the introduction of the 'calln' macro, the 'call1', 'call2', ...,
'call8' macros are just aliases for the former. This is slightly
misleading and potentially unhelpful. The number of arguments N can
also easily go out-of-synch with the used alias callN. There is no
reason not to replace these aliases with using 'calln' directly.
To reduce the risk for mistakes, the tool Coccinelle was used to make
these changes. See <https://coccinelle.gitlabpages.inria.fr/website/>.
* src/alloc.c, src/androidvfs.c, src/androidfns.c, src/buffer.c:
* src/callint.c, src/callproc.c, src/casefiddle.c, src/charset.c:
* src/chartab.c, src/cmds.c, src/coding.c, src/composite.c:
* src/data.c, src/dbusbind.c, src/dired.c, src/doc.c:
* src/emacs.c, src/eval.c, src/fileio.c, src/filelock.c:
* src/fns.c, src/frame.c, src/gtkutil.c, src/haikufns.c:
* src/haikumenu.c, src/image.c, src/insdel.c, src/intervals.c:
* src/keyboard.c, src/keymap.c, src/lisp.h, src/lread.c:
* src/minibuf.c, src/nsfns.m, src/nsselect.m, src/pgtkfns.c:
* src/pgtkselect.c, src/print.c, src/process.c, src/sort.c:
* src/syntax.c, src/textconv.c, src/textprop.c, src/undo.c:
* src/w32fns.c, src/window.c, src/xfaces.c, src/xfns.c:
* src/xmenu.c, src/xselect.c, src/xterm.c:
Replace all uses of 'call1', 'call2', ..., 'call8' with 'calln'.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c index e25228b3d6a..cd1149ae8b0 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3367,7 +3367,7 @@ finish_after_tls_connection (Lisp_Object proc) | |||
| 3367 | Lisp_Object result = Qt; | 3367 | Lisp_Object result = Qt; |
| 3368 | 3368 | ||
| 3369 | if (!NILP (Ffboundp (Qnsm_verify_connection))) | 3369 | if (!NILP (Ffboundp (Qnsm_verify_connection))) |
| 3370 | result = call3 (Qnsm_verify_connection, | 3370 | result = calln (Qnsm_verify_connection, |
| 3371 | proc, | 3371 | proc, |
| 3372 | plist_get (contact, QChost), | 3372 | plist_get (contact, QChost), |
| 3373 | plist_get (contact, QCservice)); | 3373 | plist_get (contact, QCservice)); |
| @@ -4963,7 +4963,7 @@ server_accept_connection (Lisp_Object server, int channel) | |||
| 4963 | { | 4963 | { |
| 4964 | int code = errno; | 4964 | int code = errno; |
| 4965 | if (!would_block (code) && !NILP (ps->log)) | 4965 | if (!would_block (code) && !NILP (ps->log)) |
| 4966 | call3 (ps->log, server, Qnil, | 4966 | calln (ps->log, server, Qnil, |
| 4967 | concat3 (build_string ("accept failed with code"), | 4967 | concat3 (build_string ("accept failed with code"), |
| 4968 | Fnumber_to_string (make_fixnum (code)), | 4968 | Fnumber_to_string (make_fixnum (code)), |
| 4969 | build_string ("\n"))); | 4969 | build_string ("\n"))); |
| @@ -5125,7 +5125,7 @@ server_accept_connection (Lisp_Object server, int channel) | |||
| 5125 | if (!NILP (ps->log)) | 5125 | if (!NILP (ps->log)) |
| 5126 | { | 5126 | { |
| 5127 | AUTO_STRING (accept_from, "accept from "); | 5127 | AUTO_STRING (accept_from, "accept from "); |
| 5128 | call3 (ps->log, server, proc, concat3 (accept_from, host_string, nl)); | 5128 | calln (ps->log, server, proc, concat3 (accept_from, host_string, nl)); |
| 5129 | } | 5129 | } |
| 5130 | 5130 | ||
| 5131 | AUTO_STRING (open_from, "open from "); | 5131 | AUTO_STRING (open_from, "open from "); |
| @@ -8462,7 +8462,7 @@ See `process-attributes' for getting attributes of a process given its ID. */) | |||
| 8462 | = Ffind_file_name_handler (BVAR (current_buffer, directory), | 8462 | = Ffind_file_name_handler (BVAR (current_buffer, directory), |
| 8463 | Qlist_system_processes); | 8463 | Qlist_system_processes); |
| 8464 | if (!NILP (handler)) | 8464 | if (!NILP (handler)) |
| 8465 | return call1 (handler, Qlist_system_processes); | 8465 | return calln (handler, Qlist_system_processes); |
| 8466 | 8466 | ||
| 8467 | return list_system_processes (); | 8467 | return list_system_processes (); |
| 8468 | } | 8468 | } |
| @@ -8526,7 +8526,7 @@ integer or floating point values. | |||
| 8526 | = Ffind_file_name_handler (BVAR (current_buffer, directory), | 8526 | = Ffind_file_name_handler (BVAR (current_buffer, directory), |
| 8527 | Qprocess_attributes); | 8527 | Qprocess_attributes); |
| 8528 | if (!NILP (handler)) | 8528 | if (!NILP (handler)) |
| 8529 | return call2 (handler, Qprocess_attributes, pid); | 8529 | return calln (handler, Qprocess_attributes, pid); |
| 8530 | 8530 | ||
| 8531 | return system_process_attributes (pid); | 8531 | return system_process_attributes (pid); |
| 8532 | } | 8532 | } |