From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [PATCH] Recenter around #+begin_src when moving to previous/next code block Date: Sun, 15 Sep 2013 21:06:59 +0200 Message-ID: <868uyxucoc.fsf@somewhere.org> References: <86wqml3uq2.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: (Carsten Dominik's message of "Sun, 15 Sep 2013 06:46:18 +0200") 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Carsten Dominik Cc: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Carsten, Carsten Dominik wrote: >> When moving with C-c C-v C-n (or p) from one code block to the next (or >> previous), it's much better if the code block gets centered (vs hidden, >> forcing the user to scroll down, as it currently is). >> >> This is the purpose of this easy patch. > > I don't think this patch is the right thing - is feels different from > standard Emacs behavior. I'm not sure to understand which Emacs behavior we would deviate from? This is a jump, and it'd be better located at a readable place. Without it, you're forced to follow 90% of your jumps by a `C-l'... And isn't it very similar to the patch I sent earlier this week regarding the recenter after the jump with `C-c C-x C-j'? I'd more easily understand that both are either accepted or rejected, but not a mixed case. Anyway, I'm not bothered if it's not in Org, I can simply defadvice the functions (the `after' case). So I respect your decision, even if it puzzles me: it's just that having to manually recenter after almost all jumps do not feel like a right behavior of Org to me, for the beginners who can't make such defadvice on their own. Best regards, Seb -- Sebastien Vauban