> an empty line between this is a test and \[ causes
> unnecessary spaces.
That's a matter of taste. Some users prefer the space to make it better
readable for humans. We cannot satisfy everybody's wishes in this
respect but have to find a compromise.
> Another point is instead of using \[, using displaymath.
> The reason for displaymath is: using displaymath the code is nicely
> displayed in (X)emacs.
\[\] is the standard LaTeX formula environment and should therefore be
recognized by every LaTeX editor. If not, request this feature from the
developers of your preferred editor.
We cannot simply change this because then other third-party programs
like converters might have problems. Whe therefore try to keep the LaTeX
output as stable as possible.
regards Uwe