Skip to main content
5 events
when toggle format what by license comment
Mar 21, 2016 at 19:39 comment added lawlist It's possible it came from somewhere else, but there are no more than 10 places in the latest version of org-mode that call recenter. It's not likely coming from any location other than org-mode.
Mar 21, 2016 at 19:34 comment added Jesse Yes I did see that. What I had done was copied the function into my scratch buffer and then I commented out that line and loaded it in with C-x C-e. I still had the issue, making me think that the recenter function was being called somewhere else as well.
Mar 21, 2016 at 19:31 comment added lawlist The last line of org-agenda-redo is (recenter window-line) -- so you could just rewrite that function to comment out the last line -- same procedure mentioned above: (require 'org-agenda) (defun org-agenda-redo (&optional all) . . . [everything but the last line of code relating to recentering]) You simply cannot call recenter on a buffer unless it is visible in a window, or else it will throw an error. You could also write in an exception to recenter only when the buffer window is visible.
Mar 21, 2016 at 18:52 vote accept Jesse
Mar 21, 2016 at 18:50 history answered Jesse CC BY-SA 3.0