Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug focus when display error message in latex mode #37

Open
TimotheeMathieu opened this issue Sep 10, 2022 · 1 comment
Open

bug focus when display error message in latex mode #37

TimotheeMathieu opened this issue Sep 10, 2022 · 1 comment

Comments

@TimotheeMathieu
Copy link

TimotheeMathieu commented Sep 10, 2022

Reproducing

Try to compile (C-c C-c) in Auctex mode, the following latex doc for instance:

\documentclass{article}
\begin{document}
\thiscommanddoesnotexist
\end{document}

This will give an error. When I look at the error with C-`, the error buffer is displayed in another frame, the focus shift to the error frame and directly shift back to the initial window which is a bit annoying. I would have preferred the focus to stay on the error window.

Other useful info

  • Emacs version: 28.1
  • frames-only-mode version: 1.0.0
  • Operating system (and version): Archlinux
  • Window manager (and version): i3 v 4.20.1
@davidshepherd7
Copy link
Owner

So this is partly up to your emacs config (configurable with display-buffer-alist) and partly up to your window manager.

You could try this:

(add-to-list 'display-buffer-alist
             '("\\*tex-shell\\*"
               ;; function to display this kind of buffer
               (display-buffer-pop-up-frame)
               ;; action alist
               (inhibit-switch-frame . t)
               ))

But, as noted in the emacs docs for inhibit-switch-frame, if your window manager always focuses the latest frame then you'd need to change that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants