ed.py: in l(), handle optional line number with *args
also handle initial state with no buffers in all functions