Skip to content

Single buffer for Presentation Mode #634

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

Closed
geraldus opened this issue May 8, 2015 · 3 comments
Closed

Single buffer for Presentation Mode #634

geraldus opened this issue May 8, 2015 · 3 comments

Comments

@geraldus
Copy link
Contributor

geraldus commented May 8, 2015

Currently presentation mode presents messages in separate buffers. Also, currently the only one function
uses presentations: it is haskell-process-do-info. Documentation for haskell-process-use-presentation-mode states:

Use presentation mode to show things like type info instead of
printing to the message area.

and presenting type information is work in progress.

But I've found that current behaviour of presentation mode is a bit overweight. If I infer several type signatures my buffer list is overcrowded by presentation buffers, making mess when I'm switching between them C-x b (I have fuzzy search enabled and this makes things worst). I also think that no one need to keep all that type information or :info output for further work, because it is always faster to ask it again instead of search the existing buffer with that info.

So I propose to make presentation-mode always to exploit single buffer with constant name, rather than make new ones every time. We can prepend new output to that buffer. Optionally it is possible to add support of cleaning buffer with single keystroke, for example c.

@gracjan
Copy link
Contributor

gracjan commented May 13, 2015

Yes, one buffer. Read-only.

@geraldus
Copy link
Contributor Author

@gracjan can you explain this function and stuff related to it?
haskell-presentation-present-slot https://github.com/haskell/haskell-mode/blob/master/haskell-interactive-mode.el#L764

@gracjan
Copy link
Contributor

gracjan commented May 19, 2015

Good question. I have no clue what this is supposed to do.

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