From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: end-of-defun odd behaviour in org mode Date: Tue, 22 Apr 2014 10:51:15 +0200 Message-ID: <87d2g9bvcs.fsf@bzg.ath.cx> References: <87ppka7fvk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWQK-0003Qf-1s for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 04:51:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcWQB-0004v9-0v for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 04:51:27 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:48743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWQA-0004tB-Qr for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 04:51:18 -0400 Received: by mail-we0-f179.google.com with SMTP id x48so4712556wes.10 for ; Tue, 22 Apr 2014 01:51:17 -0700 (PDT) In-Reply-To: (Leo Liu's message of "Tue, 22 Apr 2014 09:58:46 +0800") 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: Leo Liu Cc: emacs-orgmode@gnu.org Hi Leo, Leo Liu writes: > Seems there is another bug after this change: > > C-M-e moves forward 1 and C-M-a moves back 0. > > org-back-to-heading does not fully satisfy the protocol of > beginning-of-defun-function. Yeah -- I pushed a fix, relying back again on `org-forward-element' and `org-backward-element'. Thanks, -- Bastien