From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maik Beckmann Subject: Re: Bug: cdlatex-tab in math-env isn't considered when inside of a list item. [7.7 (release_7.7.513.g2a5877)] Date: Sun, 13 Nov 2011 11:45:32 +0100 Message-ID: References: <87fwhtv3gb.fsf@gmail.com> <87zkg0tl5s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPXuJ-0004CH-Lg for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 06:07:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPXuI-0006U9-KN for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 06:07:27 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:48360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPXuI-0006U5-G1 for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 06:07:26 -0500 Received: by qadc11 with SMTP id c11so6074819qad.0 for ; Sun, 13 Nov 2011 03:07:25 -0800 (PST) In-Reply-To: <87zkg0tl5s.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org 2011/11/13 Nicolas Goaziou : >>> I've slightly modified your patch to repair that. Could you test it and >>> report back the result? >> >> From what i can tell it works flawlessly. I'm sorry, but I just caught a flaw. I actually remember it being the reason why I chose to test if the point is inside a latex fragment, which then broke cdlatex' environment completion outside of fragments. If the point is at the beginning of a headline cdlatex-tab advances to the next word rather than leaving it alone. [TAB]* foo bar bazz Some test * [CURSOR]foo bar bazz Some test * [TAB]foo bar bazz Some test * foo bar bazz... Regards, Maik