[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using `save-window-excursion' instead of `save-excursion' for `comme
Re: Using `save-window-excursion' instead of `save-excursion' for `comment-region'?
Thu, 05 Dec 2013 13:49:34 +0100
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
Am 05.12.2013 11:18, schrieb Bastien:
In Org buffer, you can comment code within source blocks. This opens
a new buffer, insert the code there, comment it, and insert the buffer
contents back into Org's buffer.
With the current `comment-region' function, point is lost when Org
goes back to the org buffer. Using `save-window-excursion' instead
of `save-excursion' fixes the problem.
Are you aware of problems that this change may trigger?
I cannot think of any, but I'm always a bit cautious when using
Thanks for your feedback,
last time I've seen in, indirect buffers were used, which would be worth