aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorStefan Kangas2025-01-19 04:25:52 +0100
committerStefan Kangas2025-01-19 04:42:37 +0100
commit20c282ae331a5b71d7bae258ccdaa1e54490c3ef (patch)
tree3a2b89f5fedb3004f638e85dd6af79255739bf16 /src/window.c
parentd5f99f4431551865ff547ff2ecb7f10844ce881a (diff)
downloademacs-20c282ae331a5b71d7bae258ccdaa1e54490c3ef.tar.gz
emacs-20c282ae331a5b71d7bae258ccdaa1e54490c3ef.zip
Prefer 'list (...)' to 'listn (N, ...)'
* src/androidfns.c (Fandroid_query_battery): * src/buffer.c (make_lispy_itree_node): * src/keyboard.c (init_while_no_input_ignore_events): * src/window.c (Fset_window_configuration): * src/xterm.c (x_dnd_send_unsupported_drop): Prefer 'list (...)' to 'listn (N, ...)'. * admin/coccinelle/listn.cocci: New file.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/window.c b/src/window.c
index d7e6cd00c99..38f5307cb68 100644
--- a/src/window.c
+++ b/src/window.c
@@ -7664,10 +7664,10 @@ the return value is nil. Otherwise the value is t. */)
7664 w->start_at_line_beg = true; 7664 w->start_at_line_beg = true;
7665 if (FUNCTIONP (window_restore_killed_buffer_windows) 7665 if (FUNCTIONP (window_restore_killed_buffer_windows)
7666 && !MINI_WINDOW_P (w)) 7666 && !MINI_WINDOW_P (w))
7667 kept_windows = Fcons (listn (6, window, p->buffer, 7667 kept_windows = Fcons (list (window, p->buffer,
7668 Fmarker_last_position (p->start), 7668 Fmarker_last_position (p->start),
7669 Fmarker_last_position (p->pointm), 7669 Fmarker_last_position (p->pointm),
7670 p->dedicated, Qt), 7670 p->dedicated, Qt),
7671 kept_windows); 7671 kept_windows);
7672 } 7672 }
7673 else if (!NILP (w->start)) 7673 else if (!NILP (w->start))
@@ -7689,10 +7689,10 @@ the return value is nil. Otherwise the value is t. */)
7689 { 7689 {
7690 if (FUNCTIONP (window_restore_killed_buffer_windows)) 7690 if (FUNCTIONP (window_restore_killed_buffer_windows))
7691 kept_windows 7691 kept_windows
7692 = Fcons (listn (6, window, p->buffer, 7692 = Fcons (list (window, p->buffer,
7693 Fmarker_last_position (p->start), 7693 Fmarker_last_position (p->start),
7694 Fmarker_last_position (p->pointm), 7694 Fmarker_last_position (p->pointm),
7695 p->dedicated, Qnil), 7695 p->dedicated, Qnil),
7696 kept_windows); 7696 kept_windows);
7697 else if (EQ (window_restore_killed_buffer_windows, Qdelete) 7697 else if (EQ (window_restore_killed_buffer_windows, Qdelete)
7698 || (!NILP (p->dedicated) 7698 || (!NILP (p->dedicated)