Skip to content

Conversation

geraldus
Copy link
Contributor

Make buffer read only after append

This solution makes haskell process log buffer to autoscroll if point was at the end of buffer before appending, otherwise this will append message and preserve original point position. This also behaves correctly if several windows contain log buffer, for example having one window with point at the end and another window with point somewhere else, it will scroll first buffer, and preserve point position in second.

Thanks to YongFrog's answer http://emacs.stackexchange.com/a/12346/6844.

Make buffer read only after append
gracjan added a commit that referenced this pull request May 13, 2015
Effective append to haskell process log buffer.
@gracjan gracjan merged commit 8aef144 into haskell:master May 13, 2015
@geraldus geraldus deleted the log-effective-append branch May 13, 2015 06:46
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

Successfully merging this pull request may close these issues.

3 participants