emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] Columnview: Fix the case of #+ content present


From: Carsten Dominik
Subject: Re: [O] [PATCH] Columnview: Fix the case of #+ content present
Date: Sun, 22 Sep 2013 08:08:53 +0200

Applied, thank you Benjamin.

- Carsten

On 17.9.2013, at 21:13, Benjamin Beckwith <address@hidden> wrote:

> * lisp/org-colview.el (org-dblock-write:columnview): Change the
>  capture of pos to after inserting the original content
> 
> The problem is with a block that has content preceding the table.
> Upon recreating the content, the `pos' gets set to the beginning of
> this content instead of the table.  Later calls to
> `org-table-recalculate' or `org-table-align' will fail because the
> point is not at a table.
> 
> This patch moves the capture of `pos' to right before the insertion of
> the table.
> 
> TINYCHANGE
> ---
> lisp/org-colview.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lisp/org-colview.el b/lisp/org-colview.el
> index f3b8e42..8790ad4 100644
> --- a/lisp/org-colview.el
> +++ b/lisp/org-colview.el
> @@ -1306,10 +1306,10 @@ PARAMS is a property list of parameters:
>                            (if (eq 'hline x) x (cons "" x)))
>                          tbl))
>        (setq tbl (append tbl (list (cons "/" (make-list nfields "<>"))))))
> -      (setq pos (point))
>       (when content-lines
>        (while (string-match "^#" (car content-lines))
>          (insert (pop content-lines) "\n")))
> +      (setq pos (point))
>       (insert (org-listtable-to-string tbl))
>       (when (plist-get params :width)
>        (insert "\n|" (mapconcat (lambda (x) (format "<%d>" (max 3 x)))
> --
> 1.8.1.2
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

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