aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-08-08 16:01:24 +0200
committerLars Ingebrigtsen2022-08-08 16:01:24 +0200
commit7f8a3d4e919e495fadb4eb6fae3f73556b987700 (patch)
tree300e4c3eda1d899d78cec03e34e4deba93dd3d88
parent909931cb9ad7251393a81076e9020225fe82845e (diff)
downloademacs-7f8a3d4e919e495fadb4eb6fae3f73556b987700.tar.gz
emacs-7f8a3d4e919e495fadb4eb6fae3f73556b987700.zip
Clean up fix_command slightly
* src/callint.c (fix_command): Remove now-unused parameter. (Fcall_interactively): Ditto.
-rw-r--r--src/callint.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/callint.c b/src/callint.c
index dfc479284c0..e670c8f638b 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -168,7 +168,7 @@ check_mark (bool for_region)
168 of VALUES to do its job. */ 168 of VALUES to do its job. */
169 169
170static void 170static void
171fix_command (Lisp_Object input, Lisp_Object function, Lisp_Object values) 171fix_command (Lisp_Object function, Lisp_Object values)
172{ 172{
173 /* Quick exit if there's no values to alter. */ 173 /* Quick exit if there's no values to alter. */
174 if (!CONSP (values)) 174 if (!CONSP (values))
@@ -317,7 +317,6 @@ invoke it (via an `interactive' spec that contains, for instance, an
317 { 317 {
318 Lisp_Object funval = Findirect_function (function, Qt); 318 Lisp_Object funval = Findirect_function (function, Qt);
319 uintmax_t events = num_input_events; 319 uintmax_t events = num_input_events;
320 Lisp_Object input = specs;
321 /* Compute the arg values using the user's expression. */ 320 /* Compute the arg values using the user's expression. */
322 specs = Feval (specs, 321 specs = Feval (specs,
323 CONSP (funval) && EQ (Qclosure, XCAR (funval)) 322 CONSP (funval) && EQ (Qclosure, XCAR (funval))
@@ -328,7 +327,7 @@ invoke it (via an `interactive' spec that contains, for instance, an
328 Make a copy of the list of values, for the command history, 327 Make a copy of the list of values, for the command history,
329 and turn them into things we can eval. */ 328 and turn them into things we can eval. */
330 Lisp_Object values = quotify_args (Fcopy_sequence (specs)); 329 Lisp_Object values = quotify_args (Fcopy_sequence (specs));
331 fix_command (input, function, values); 330 fix_command (function, values);
332 call4 (intern ("add-to-history"), intern ("command-history"), 331 call4 (intern ("add-to-history"), intern ("command-history"),
333 Fcons (function, values), Qnil, Qt); 332 Fcons (function, values), Qnil, Qt);
334 } 333 }