aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobin Templeton <[email protected]>2014-08-07 17:14:10 -0400
committerRobin Templeton <[email protected]>2015-04-20 00:29:02 -0400
commit36cb7c1aa13982cabd5efed4e39596fb3212922a (patch)
treedd6583e0b2996cd416398a473883166938de91fd /src
parentc7c6d5cfc9ff335add6fbafdd8c5cb40523cf2fa (diff)
use guile-elisp macroexpansion
Diffstat (limited to 'src')
-rw-r--r--src/lread.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/lread.c b/src/lread.c
index 1413a793f0..a09718f4cb 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1813,17 +1813,7 @@ readevalloop (Lisp_Object readcharfun,
bool whole_buffer = 0;
/* True on the first time around. */
bool first_sexp = 1;
- Lisp_Object macroexpand = intern ("internal-macroexpand-for-load");
-
- if (NILP (Ffboundp (macroexpand))
- /* Don't macroexpand in .elc files, since it should have been done
- already. We actually don't know whether we're in a .elc file or not,
- so we use circumstantial evidence: .el files normally go through
- Vload_source_file_function -> load-with-code-conversion
- -> eval-buffer. */
- || EQ (readcharfun, Qget_file_char)
- || EQ (readcharfun, Qget_emacs_mule_file_char))
- macroexpand = Qnil;
+ Lisp_Object compile_fn = 0;
if (MARKERP (readcharfun))
{
@@ -1952,11 +1942,7 @@ readevalloop (Lisp_Object readcharfun,
/* Restore saved point and BEGV. */
dynwind_end ();
- /* Now eval what we just read. */
- if (!NILP (macroexpand))
- val = readevalloop_eager_expand_eval (val, macroexpand);
- else
- val = eval_sub (val);
+ val = eval_sub (val);
if (printflag)
{