phillord / lentic

Create views of the same content in two Emacs buffers
183 stars 12 forks source link

When translate fail, lentic should pop a warn buffer #13

Open tumashu opened 9 years ago

tumashu commented 9 years ago

When translate fail, lentic should pop a warn buffer which can tell user the position of the problem.

phillord commented 9 years ago

Tried that and it's really very painful. The problem is that lentic works after every command, so if, for example, you write

\begin{code}

using the latex transformation, you would get a warning till you have added.

\end{code}

Currently, lentic just falls back to the identity transformation till you type \end{code} and then the problem just goes away. I have added a "Invalid" warning in the mode line.

tumashu commented 9 years ago

maybe we can use :

(setq header-line-format "Warn information")
phillord commented 9 years ago

That's not a bad idea. It would be a bit more obvious than the mode line, but not too intrusive. I'll investigate.