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/coding.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/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index 84cf5c8f34d..6875d4af823 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -8034,7 +8034,7 @@ decode_coding_gap (struct coding_system *coding, ptrdiff_t bytes) | |||
| 8034 | Fcons (undo_list, Fcurrent_buffer ())); | 8034 | Fcons (undo_list, Fcurrent_buffer ())); |
| 8035 | bset_undo_list (current_buffer, Qt); | 8035 | bset_undo_list (current_buffer, Qt); |
| 8036 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); | 8036 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); |
| 8037 | val = call1 (CODING_ATTR_POST_READ (attrs), | 8037 | val = calln (CODING_ATTR_POST_READ (attrs), |
| 8038 | make_fixnum (coding->produced_char)); | 8038 | make_fixnum (coding->produced_char)); |
| 8039 | CHECK_FIXNAT (val); | 8039 | CHECK_FIXNAT (val); |
| 8040 | coding->produced_char += Z - prev_Z; | 8040 | coding->produced_char += Z - prev_Z; |
| @@ -10871,10 +10871,10 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS...) */) | |||
| 10871 | return Fcons (val, val); | 10871 | return Fcons (val, val); |
| 10872 | if (! NILP (Ffboundp (val))) | 10872 | if (! NILP (Ffboundp (val))) |
| 10873 | { | 10873 | { |
| 10874 | /* We use call1 rather than safe_call1 | 10874 | /* We use calln rather than safe_calln |
| 10875 | so as to get bug reports about functions called here | 10875 | so as to get bug reports about functions called here |
| 10876 | which don't handle the current interface. */ | 10876 | which don't handle the current interface. */ |
| 10877 | val = call1 (val, Flist (nargs, args)); | 10877 | val = calln (val, Flist (nargs, args)); |
| 10878 | if (CONSP (val)) | 10878 | if (CONSP (val)) |
| 10879 | return val; | 10879 | return val; |
| 10880 | if (SYMBOLP (val) && ! NILP (Fcoding_system_p (val))) | 10880 | if (SYMBOLP (val) && ! NILP (Fcoding_system_p (val))) |