On 4/5/13, Bastien <[email protected]> wrote:
> It's hard to find reproducible recipes; when we have some (like the
> one Brian provided), it's hard to debug; and for I cannot afford to
> put this as a priority as the annoyance/hard-to-debug ratio is too
> low IMO.
>
> Let's revive this after 8.0 if needed,
Reviving. I provided a recipe in this thread.
Here is a fix that sometimes works, but usually not:
(defadvice org-optimize-window-after-visibility-change
(around fix-recenter activate compile)
"fix recenter to be recenter 2 so ellipses do not sometimes
show up on line 1. recenter 1 is an emacs bug."
(when (get-buffer-window (current-buffer))
(cond
((eq state 'content) nil)
((eq state 'all) nil)
((eq state 'folded) nil)
((eq state 'children) (or (org-subtree-end-visible-p) (recenter 2)))
((eq state 'subtree) (or (org-subtree-end-visible-p) (recenter 2))))))
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.