johanvts / emacs-fireplace

A cozy fireplace for emacs.
729 stars 21 forks source link

disable undo in the correct buffer #13

Closed ghost closed 8 years ago

ghost commented 8 years ago

undo should be disabled in fireplace buffer after switching to it, not before. Avoid undo buffer limit related error messages.

johanvts commented 8 years ago

I don't think this makes a difference since it is all happening inside with-current-buffer, but maybe I'm wrong?

AdrieanKhisbe commented 8 years ago

if so then (switch-to-buffer fireplace-buffer-name) is not necessary. :smiley:

ghost commented 8 years ago

You are right.