From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Corrupted TBLFM after table edit Date: Thu, 09 Jan 2014 12:14:39 +0100 Message-ID: <87fvoxtnj4.fsf@bzg.ath.cx> References: <87wqi9wjye.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DZd-00063a-7o for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:15:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1DZU-0003GF-KC for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:14:53 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:42365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DZU-0003GA-DC for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:14:44 -0500 Received: by mail-wi0-f176.google.com with SMTP id hq4so6768959wib.3 for ; Thu, 09 Jan 2014 03:14:43 -0800 (PST) In-Reply-To: (Michael Brand's message of "Thu, 9 Jan 2014 12:04:04 +0100") 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: Michael Brand Cc: Org Mode Hi Michael, Michael Brand writes: > I suggest to solve this completely differently by replacing the greedy > (re-search-forward "^\\S-*$\\|\\'" nil t) and not using s-end any > more. I would change the "while" to > > (while (let ((case-fold-search t)) (looking-at "[ \t]*#\\+tblfm:")) > [...] > (forward-line)) > > which is simple and water-proof. Yes, sure, please go ahead -- thanks in advance, -- Bastien