From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: org-babel-read should have option NOT to interpret as elisp Date: Mon, 28 Feb 2011 11:07:27 +0100 Message-ID: <801v2sqxpc.fsf@somewhere.org> References: <877hclbgxz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > However I do agree that this would be onerous to have to wrap every cell = of > a table in double quotes... Aren't we forced to do so, right now? As in the following home-made exampl= e: #+TITLE: Show differences between files * Code Assuming you have two directories (namely =3Dxhtml-dir=3D and =3Dxhtml-dir-= bak=3D, accessible from this local directory), the following blocks of code will compare named files (see column 2 of table) in them, in both /text/ and /binary/ versions. #+srcname: diff-text #+begin_src sh :var file=3D"" diff -sq --strip-trailing-cr xhtml-dir/$file xhtml-dir-bak/$file > /dev/null case "$?" in 0) echo "identical";; 1) echo "differ";; 2) echo "no such file";; *) echo "?";; esac #+end_src #+srcname: diff-binary #+begin_src sh :var file=3D"" diff -sq xhtml-dir/$file xhtml-dir-bak/$file > /dev/null case "$?" in 0) echo "identical";; 1) echo "differ";; 2) echo "no such file";; *) echo "?";; esac #+end_src * Results | FPH | File | Text | Binary | |-----+-------------------------------+-----------+-----------| | M | "Icopreations.xhtml" | identical | identical | | M | "Ocuevaonspfiessai.xhtml" | identical | differ | | M | "Ocuevain-tut.xhtml" | differ | differ | | M | "Ocuevatagessai.xhtml" | identical | differ | | M | "Ocuf2-stg.xhtml" | differ | differ | | M | "Ocurolro.xhtml" | identical | differ | | M | "Ocuroliers.xhtml" | differ | differ | | M | "Ocurolredit.xhtml" | identical | differ | | M | "Ocusigletiquebc1233de.xhtml" | differ | differ | | M | "Rocsaieprestations.xhtml" | identical | identical | #+TBLFM: $3=3D'(sbe diff-text (file $2))::$4=3D'(sbe diff-binary (file $2)) I had to enclose the filenames between double quotes, for the =3Dsbe=3D cod= e to work. Trying what you wrote on http://eschulte.github.com/babel-dev/DONE-literal-values-from-tables.html, that is using $$2 instead of $2 has the following behavior: when evaluating the table, Org prompts me for a "Lisp expression"!? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode