For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos.

To reproduce

First compile the following correct tex by C-c C-a

    \draw[fill] (-1,0.67) circle [radius=0.03] node [above] {\small local maximum point};
  \caption{local maximum}

Then replace the word circle by cicle and compile the wrong tex by C-c C-a. Now the minibuffer will show

error in process sentinel: epdfinfo: Error opening d:/test/aa.pdf:Failed to load document

and the mode-line will show [Compiling]

enter image description here

Now even if I correct the typo cicle, the status [Compiling] stays.

My Question: Is there some way to correct the status [Compiling] after correcting tex file except restart emacs?

  • I cannot reproduce this. Try emacs -q to avoid loading your init file. Can you still reproduce it? If not, then something is wrong in your init file. Bisect your init file to figure out what is wrong. – NickD Nov 26 '20 at 16:55

The square brackets around the word "Compiling" in the mini-buffer usually indicates a recursive-edit is active and that there was an error of some type and that the *Backtrace* buffer is still open. Switch to the *Backtrace* buffer to read what it says and correct the error. Then, try killing the *Backtrace* buffer by pressing the letter q while inside that buffer, or type M-x top-level, or C-] aka M-x abort-recursive-edit.

  • The square brackets are not around the major-mode (which in the screenshot is auctex's LaTeX-mode). – Fran Burstall Nov 26 '20 at 19:16
  • @Fran Burstall -- Thank you -- I changed the word to "Compiling" instead. – lawlist Nov 26 '20 at 19:36
  • Sorry! I doesn't find *Backtrace* buffer. But I find the "Compiling" status will vanish if I input M-: (setq compilation-in-progress nil) RET – allenryb Nov 27 '20 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.