senny / cabbage

get the maximum out of emacs
http://senny.github.com/cabbage/
156 stars 21 forks source link

Emacs gets stuck when a markdown buffer is open and the file changes in disk #175

Closed senny closed 11 years ago

senny commented 11 years ago

I got a really strange bug. When I got a buffer open, which is in markdown-mode and that file changes on disk. Emacs gets stuck with the question "really edit this buffer?". When this happens I can type any key but the question just re-appears. I can't answer it with y or n. I can't use the mouse to focus another window. The only way out is to kill the process.

senny commented 11 years ago

/cc @jone @tonini

I can solve the problem by turning (global-auto-revert-mode) on. Is anyone using it already? Does it have side-effects or behavior that is tedious?

tonini commented 11 years ago

@senny I have no experience with ´(global-auto-rever-mode)` on. I will turn it on and test it out.

jone commented 11 years ago

As far as I understand the global-auto-revert-mode resets the file periodically, including the undo history. So the undo history would be deleted automatically after a few seconds on every buffer. Or did I get something wrong? See here.

If it deletes the undo history after every x seconds I'd be not very happy about it.. I think we need to test it carefully.

senny commented 11 years ago

I agree we need to test it. I did not loose the undo history until now. I think it only looses it, when it actually does revert the file. this is only the case when your buffer does no longer match the file on disk. please activate it and report back.

Am 08.01.2013 um 08:39 schrieb Jonas Baumann notifications@github.com:

As far as I understand the global-auto-revert-mode resets the file periodically, including the undo history. So the undo history would be deleted automatically after a few seconds on every buffer. Or did I get something wrong? See here.

If it deletes the undo history after every x seconds I'd be not very happy about it.. I think we need to test it carefully.

— Reply to this email directly or view it on GitHub.

jone commented 11 years ago

@senny I've been running cabbage using (global-auto-revert-mode) for a while now and didn't observe any interference. Feel free to enable it by default.

senny commented 11 years ago

yay! will submit a PR shortly.

ut-adamc commented 10 years ago

I've encountered this as well. I should not have to turn on auto-revert-mode; other major modes don't require it.

nicholasbishop commented 10 years ago

Seeing this as well, doesn't happen with other major modes.

senny commented 10 years ago

@ut-adamc @nicholasbishop sorry guys but I'm not sure what's causing the issue. If you have any insight please let me know. Activating auto-revert-mode fixed it for us.