emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Corrupted TBLFM after table edit


From: Michael Brand
Subject: Re: [O] Corrupted TBLFM after table edit
Date: Thu, 9 Jan 2014 12:04:04 +0100

Hi Bastien

On Thu, Jan 9, 2014 at 11:03 AM, Bastien <address@hidden> wrote:
> This is now fixed, thanks.

The release_8.2.5c-8-ga2619b7 this refers to solves only a part of the
bugs introduced with the greedy (re-search-forward "^\\S-*$\\|\\'" nil
t). It does not work before the first headline, does not cover #+TBLFM
in list items etc. without end.

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.

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]