From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Has anybody noticed ellipses instead of the top line of the window? Date: Tue, 27 Aug 2013 21:57:05 -0700 Message-ID: References: <878v4wkh1l.fsf@bzg.ath.cx> <87li8whjhq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEXoZ-0003BH-Lt for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 00:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEXoY-0001Du-LT for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 00:57:07 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:37706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEXoY-0001Do-FE for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 00:57:06 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so622730wgh.3 for ; Tue, 27 Aug 2013 21:57:05 -0700 (PDT) In-Reply-To: <87li8whjhq.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Brian van den Broek , emacs-orgmode@gnu.org On 4/5/13, Bastien 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.