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

Popwin not working with auctex #103

Open
elemakil opened this issue Apr 1, 2014 · 5 comments
Open

Popwin not working with auctex #103

elemakil opened this issue Apr 1, 2014 · 5 comments

Comments

@elemakil
Copy link

elemakil commented Apr 1, 2014

I want the *TeX Help* buffer produced by AUCTeX to be a popup buffer. I have added the following code to my .emacs:

(push '("*TeX Help*" 
                 :width 80
                 :position right
         :noselect t)
  popwin:special-display-config)

However, when calling TeX-next-error the buffer does not show. I suspect that this is due to the fact that TeX-next-error opens the buffer and then switches focus to the original buffer. In order to counteract this I have included the :noselect t option.

Can you help with this?

@ThibautVerron
Copy link
Contributor

I see the same behavior with:

(push '("\\*.* output\\*" 
            :regexp t 
            :tail t 
            :noselect t) 
 popwin:special-display-config)

Setting either :noselect or :stick has no apparent effect.

@ThibautVerron
Copy link
Contributor

Sorry for the confusion. I mean that the above does show similar behavior (popup opens and closes instantly) when pressing C-c C-l. C-c <backtick> does work with that rule, though.

@m2ym
Copy link
Contributor

m2ym commented May 10, 2014

Maybe AUCTeX doesn't use display-buffer to display the buffer. In this case, popwin can't be used.

@ThibautVerron
Copy link
Contributor

It uses TeX-pop-to-buffer, which is a wrapper around pop-to-buffer. Rewriting this wrapper in terms of its popwin version did result in messy configuration (3 open buffers, two of them showing the initial tex buffer), I didn't have time to investigate more. TeX-recenter-output-buffer makes two calls to TeX-pop-to-buffer, probably only one needs to be changed.

Relevant code: https://github.com/jwiegley/auctex/blob/master/tex-buf.el#L233

@m2ym
Copy link
Contributor

m2ym commented May 14, 2014

How about (popwin:popup-buffer (TeX-active-buffer) :noselect t :tail t) for the contents fo the function?

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

No branches or pull requests

3 participants