--- /dev/null
+// Prefer 'list (...)' to 'listn (N, ...)'
+@@
+constant n;
+@@
+- listn (n,
++ list (
+ ...)
if (android_query_battery (&state))
return Qnil;
- return listn (8, make_int (state.capacity),
- make_fixnum (state.charge_counter),
- make_int (state.current_average),
- make_int (state.current_now),
- make_fixnum (state.status),
- make_int (state.remaining),
- make_fixnum (state.plugged),
- make_fixnum (state.temperature));
+ return list (make_int (state.capacity),
+ make_fixnum (state.charge_counter),
+ make_int (state.current_average),
+ make_int (state.current_now),
+ make_fixnum (state.status),
+ make_int (state.remaining),
+ make_fixnum (state.plugged),
+ make_fixnum (state.temperature));
}
\f
static Lisp_Object
make_lispy_itree_node (const struct itree_node *node)
{
- return listn (12,
- intern (":begin"),
- make_fixnum (node->begin),
- intern (":end"),
- make_fixnum (node->end),
- intern (":limit"),
- make_fixnum (node->limit),
- intern (":offset"),
- make_fixnum (node->offset),
- intern (":rear-advance"),
- node->rear_advance ? Qt : Qnil,
- intern (":front-advance"),
- node->front_advance ? Qt : Qnil);
+ return list (intern (":begin"),
+ make_fixnum (node->begin),
+ intern (":end"),
+ make_fixnum (node->end),
+ intern (":limit"),
+ make_fixnum (node->limit),
+ intern (":offset"),
+ make_fixnum (node->offset),
+ intern (":rear-advance"),
+ node->rear_advance ? Qt : Qnil,
+ intern (":front-advance"),
+ node->front_advance ? Qt : Qnil);
}
static Lisp_Object
static Lisp_Object
init_while_no_input_ignore_events (void)
{
- Lisp_Object events = listn (9, Qselect_window, Qhelp_echo, Qmove_frame,
- Qiconify_frame, Qmake_frame_visible,
- Qfocus_in, Qfocus_out, Qconfig_changed_event,
- Qselection_request);
+ Lisp_Object events = list (Qselect_window, Qhelp_echo, Qmove_frame,
+ Qiconify_frame, Qmake_frame_visible,
+ Qfocus_in, Qfocus_out, Qconfig_changed_event,
+ Qselection_request);
#ifdef HAVE_DBUS
events = Fcons (Qdbus_event, events);
w->start_at_line_beg = true;
if (FUNCTIONP (window_restore_killed_buffer_windows)
&& !MINI_WINDOW_P (w))
- kept_windows = Fcons (listn (6, window, p->buffer,
- Fmarker_last_position (p->start),
- Fmarker_last_position (p->pointm),
- p->dedicated, Qt),
+ kept_windows = Fcons (list (window, p->buffer,
+ Fmarker_last_position (p->start),
+ Fmarker_last_position (p->pointm),
+ p->dedicated, Qt),
kept_windows);
}
else if (!NILP (w->start))
{
if (FUNCTIONP (window_restore_killed_buffer_windows))
kept_windows
- = Fcons (listn (6, window, p->buffer,
- Fmarker_last_position (p->start),
- Fmarker_last_position (p->pointm),
- p->dedicated, Qnil),
+ = Fcons (list (window, p->buffer,
+ Fmarker_last_position (p->start),
+ Fmarker_last_position (p->pointm),
+ p->dedicated, Qnil),
kept_windows);
else if (EQ (window_restore_killed_buffer_windows, Qdelete)
|| (!NILP (p->dedicated)
x_dnd_unsupported_drop_time = before;
x_dnd_unsupported_drop_window = target_window;
x_dnd_unsupported_drop_data
- = listn (5, assq_no_quit (QXdndSelection,
- dpyinfo->terminal->Vselection_alist),
- targets, arg, make_fixnum (root_x),
- make_fixnum (root_y));
+ = list (assq_no_quit (QXdndSelection,
+ dpyinfo->terminal->Vselection_alist),
+ targets, arg, make_fixnum (root_x),
+ make_fixnum (root_y));
x_dnd_waiting_for_finish = true;
x_dnd_finish_display = dpyinfo->display;