mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-14 09:39:42 +00:00
* src/eval.c (Fmacroexpand): Stop if the macro returns the same form.
This commit is contained in:
parent
0e8bbf6690
commit
4f18a4ed84
@ -1,3 +1,7 @@
|
||||
2012-06-08 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* eval.c (Fmacroexpand): Stop if the macro returns the same form.
|
||||
|
||||
2012-06-07 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* doprnt.c (doprnt): Truncate multibyte char correctly.
|
||||
|
@ -1020,7 +1020,13 @@ definitions to shadow the loaded ones for use in file byte-compilation. */)
|
||||
if (NILP (expander))
|
||||
break;
|
||||
}
|
||||
form = apply1 (expander, XCDR (form));
|
||||
{
|
||||
Lisp_Object newform = apply1 (expander, XCDR (form));
|
||||
if (EQ (form, newform))
|
||||
break;
|
||||
else
|
||||
form = newform;
|
||||
}
|
||||
}
|
||||
return form;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user