unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Slightly extending commit 16b0520a9
@ 2017-08-06  3:58 Alex
  2017-08-06  4:08 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Alex @ 2017-08-06  3:58 UTC (permalink / raw)
  To: emacs-devel; +Cc: Paul Eggert

Commit 16b0520a9 changed various Fcar/Fcdr calls into XCAR/XCDR, but I
believe I see two more instances where this change can also be applied.
In both cases, XCDR is already being applied on XCDR (args), so XCAR
should also be fine.

diff --git a/src/eval.c b/src/eval.c
index e5900382de..d132959f0c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -396,7 +396,7 @@ usage: (if COND THEN ELSE...)  */)
   cond = eval_sub (XCAR (args));
 
   if (!NILP (cond))
-    return eval_sub (Fcar (XCDR (args)));
+    return eval_sub (XCAR (XCDR (args)));
   return Fprogn (XCDR (XCDR (args)));
 }
 
@@ -806,7 +806,7 @@ usage: (defconst SYMBOL INITVALUE [DOCSTRING])  */)
   if (CONSP (Fcdr (XCDR (XCDR (args)))))
     error ("Too many arguments");
 
-  tem = eval_sub (Fcar (XCDR (args)));
+  tem = eval_sub (XCAR (XCDR (args)));
   if (!NILP (Vpurify_flag))
     tem = Fpurecopy (tem);
   Fset_default (sym, tem);



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-07  0:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-06  3:58 Slightly extending commit 16b0520a9 Alex
2017-08-06  4:08 ` Stefan Monnier
2017-08-06  4:30   ` Alex
2017-08-06 16:18     ` Stefan Monnier
2017-08-07  0:10       ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).