emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] org-table-iterate-buffer-tables breaks source code blocks
@ 2012-04-06 11:07 Sebastien Vauban
  2012-04-09 15:27 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2012-04-06 11:07 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

When running `org-table-iterate-buffer-tables' over a file containing source
code blocks, these can be broken by the recalculate process: *pipe signs are
inserted in source code blocks*.

Here an ECM:

--8<---------------cut here---------------start------------->8---
#+TITLE:     Export table to PDF
#+AUTHOR:    Seb Vauban

* Tasks

** Do it
   :LOGBOOK:
   CLOCK: [2012-04-02 Mon 09:00]--[2012-04-02 Mon 10:52] =>  1:52
   :END:

Here is the code I've done:

#+begin_src sh
egrep "^[^	#A-Z]+:" Somefile \
    | sed 's/:[^#]*//'
#+end_src

* Reporting

#+TBLNAME: report
#+BEGIN: clocktable :scope file :block 2012-04
Clock summary at [2012-04-06 Fri 12:59], for April 2012.

| Headline   | Time |      |
|------------+------+------|
| Total time | 1:52 |      |
|------------+------+------|
| Tasks      | 1:52 |      |
| Do it      |      | 1:52 |
#+END:

* Summary

Time worked on Tasks:

| Total | 1:51 |
#+TBLFM: @1$2=remote(report,@3$2)
--8<---------------cut here---------------end--------------->8---

Steps to reproduce the problem:

1. Save the ECM as `table.org'

2. Run from the command line:

   emacs --batch -Q --eval "(add-to-list 'load-path \"~/src/org-mode/lisp\")" -l org-install.el --eval "(require 'org-table)" "table.org" -f org-update-all-dblocks -f org-table-iterate-buffer-tables --eval '(write-file "table-out.org")'

   where ~/src/org-mode/lisp should be adjusted to reflect where your latest
   Org files reside.

3. Open the update Org file (called `table-out.org') and you'll discover the
   bug:

   The source code block now contains an extra pipe at the end of the line.

   #+begin_src sh
   egrep "^[^	#A-Z]+:" Somefile \
       | sed 's/:[^#]*//' |
   #+end_src
                          ^ Here

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] org-table-iterate-buffer-tables breaks source code blocks
  2012-04-06 11:07 [bug] org-table-iterate-buffer-tables breaks source code blocks Sebastien Vauban
@ 2012-04-09 15:27 ` Bastien
  2012-04-18  8:59   ` Sebastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-04-09 15:27 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

Hi Sébastien,

"Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> writes:

> When running `org-table-iterate-buffer-tables' over a file containing source
> code blocks, these can be broken by the recalculate process: *pipe signs are
> inserted in source code blocks*.

Fixed in master, thanks.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] org-table-iterate-buffer-tables breaks source code blocks
  2012-04-09 15:27 ` Bastien
@ 2012-04-18  8:59   ` Sebastien Vauban
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2012-04-18  8:59 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>
>> When running `org-table-iterate-buffer-tables' over a file containing
>> source code blocks, these can be broken by the recalculate process: *pipe
>> signs are inserted in source code blocks*.
>
> Fixed in master, thanks.

I confirm it's fixed now.

Thanks a lot!

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-18  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-06 11:07 [bug] org-table-iterate-buffer-tables breaks source code blocks Sebastien Vauban
2012-04-09 15:27 ` Bastien
2012-04-18  8:59   ` Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).