Fix a bug (add detect at Alt-d).
Reply #end-lag for #lag.