Re: [O] Two numerical solutions from fsolve inside calc source block
Better yet: #+begin_src calc :wrap "src calc :var var-s2=1" fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src El 2016-06-26 15:53, Miguel Ruiz escribió: Hi, I have this block which is intended to get the two numerical solutions of the equations system: #+begin_src calc fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src This way I get the generic form of a multiple solution, and citing the manual "It will invent variables n1, n2, …, which represent independent arbitrary integers, and s1, s2, …, which represent independent arbitrary signs (either +1 or -1)." So I get #+RESULTS: : [r = 866. / (4621.24711316 - 2517.12631405 s1), v = 4621.24711316 - 2517.12631405 s1] Now, to get the two solutions I have to evaluate manually the result expression replacing s1 by "*1" and "*-1" #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *1), v = 4621.24711316 - 2517.12631405 *1] #+end_src #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] And #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *-1), v = 4621.24711316 - 2517.12631405 *-1] #+end_src #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] Emacs calc manual states "Note that variables like n1 and s1 are not given any special interpretation in Calc except by the equation solver itself. As usual, you can use the s l (calc-let) command to obtain solutions for various actual values of these variables.", but I cannot figure out a way to call (calc-let) or its algebraic equivalent inside a calc source block. I can accept a only-elisp workaround if it is more convenient. Any hint to do everything commented without user interaction? Regards.
Re: [O] Two numerical solutions from fsolve inside calc source block
Not optimal solution: #+begin_src calc :results code fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src yields #+RESULTS: #+BEGIN_SRC calc [r = 866. / (4621.24711316 - 2517.12631405 s2), v = 4621.24711316 - 2517.12631405 s2] #+END_SRC Manually add :var clause in the results block as follows #+RESULTS: #+BEGIN_SRC calc :var var-s2=1 [r = 866. / (4621.24711316 - 2517.12631405 s2), v = 4621.24711316 - 2517.12631405 s2] #+END_SRC And finally the modified results block is evaluated #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] ; var-s2=1 and #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] ; var-s2=-1 Any improvement will be appreciated. Miguel. El 2016-06-26 15:53, Miguel Ruiz escribió: Hi, I have this block which is intended to get the two numerical solutions of the equations system: #+begin_src calc fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src This way I get the generic form of a multiple solution, and citing the manual "It will invent variables n1, n2, …, which represent independent arbitrary integers, and s1, s2, …, which represent independent arbitrary signs (either +1 or -1)." So I get #+RESULTS: : [r = 866. / (4621.24711316 - 2517.12631405 s1), v = 4621.24711316 - 2517.12631405 s1] Now, to get the two solutions I have to evaluate manually the result expression replacing s1 by "*1" and "*-1" #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *1), v = 4621.24711316 - 2517.12631405 *1] #+end_src #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] And #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *-1), v = 4621.24711316 - 2517.12631405 *-1] #+end_src #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] Emacs calc manual states "Note that variables like n1 and s1 are not given any special interpretation in Calc except by the equation solver itself. As usual, you can use the s l (calc-let) command to obtain solutions for various actual values of these variables.", but I cannot figure out a way to call (calc-let) or its algebraic equivalent inside a calc source block. I can accept a only-elisp workaround if it is more convenient. Any hint to do everything commented without user interaction? Regards.
[O] Two numerical solutions from fsolve inside calc source block
Hi, I have this block which is intended to get the two numerical solutions of the equations system: #+begin_src calc fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src This way I get the generic form of a multiple solution, and citing the manual "It will invent variables n1, n2, …, which represent independent arbitrary integers, and s1, s2, …, which represent independent arbitrary signs (either +1 or -1)." So I get #+RESULTS: : [r = 866. / (4621.24711316 - 2517.12631405 s1), v = 4621.24711316 - 2517.12631405 s1] Now, to get the two solutions I have to evaluate manually the result expression replacing s1 by "*1" and "*-1" #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *1), v = 4621.24711316 - 2517.12631405 *1] #+end_src #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] And #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *-1), v = 4621.24711316 - 2517.12631405 *-1] #+end_src #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] Emacs calc manual states "Note that variables like n1 and s1 are not given any special interpretation in Calc except by the equation solver itself. As usual, you can use the s l (calc-let) command to obtain solutions for various actual values of these variables.", but I cannot figure out a way to call (calc-let) or its algebraic equivalent inside a calc source block. I can accept a only-elisp workaround if it is more convenient. Any hint to do everything commented without user interaction? Regards.
Re: [O] "global" variables in a babel document...
This works for me, but if you change tsmuser value in session, you have to C-c C-c in PROPERTY line, getting "Local setup have been refreshed". #+PROPERTY: var tsmuser="query" * foo :PROPERTIES: :header-args: :var tsmpass="query" :END: #+name: toy #+begin_src sh :var bloop="foo" echo sss ${bloop} ddd echo sss ${tsmpass} ddd echo sss ${tsmuser} ddd #+end_src #+RESULTS: toy | sss | foo | ddd | | sss | query | ddd | | sss | query | ddd | Best regards. El 2016-05-17 21:24, Allen S. Rout escribió: org-version org "8.2.10" emacs-version "24.5.1" I'm seeing what seems to be some inconsistent treatment of :var header args. Or maybe I'm just missing something. I'm trying to follow: http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html#Header-arguments-in-Org-mode-properties and I find that the local :var works (of course) and the outline level one also works, but the document-level one does not. Minimal example, with my results, below. I'm wondering if I'm thinking about the problem wrong. What I'm trying to accomplish is setting, at a document level, a few variables which I would like to be accessible in every code block in this document. I know I can set them independently on every block, but that seems tiresome. - Allen S. Rout - #+PROPERTY:header-args:var tsmuser="query" * foo :PROPERTIES: :header-args: :var tsmpass="query" :END: #+name: toy #+begin_src sh :var bloop="foo" echo sss ${bloop} ddd echo sss ${tsmpass} ddd echo sss ${tsmuser} ddd #+end_src #+RESULTS: toy | sss | foo | ddd | | sss | query | ddd | | sss | ddd | | -
Re: [O] Easy entry of date ranges
ÜFigid Enviado desde Type En 27/08/2015, 18:14, en 18:14, Eric S Fraga e.fr...@ucl.ac.uk escrito: On Thursday, 27 Aug 2015 at 23:33, Eric Abrahamsen wrote: Oh man, I should have known not to second-guess Org. Gets me all the time! :-) -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec
[O] TBLFM added to updated table as result of a emacs-lisp src block
Hi, I'm trying to make the following (modified) code works: (https://eschulte.github.io/org-scraps/scraps/2011-08-19-updating-a-table.html) #+name: OneTable | 0 | 0 | 0 | | 0 | 0 | 0 | | 0 | 0 | 0 | #+name: AnotherTable #+begin_src emacs-lisp :var table=OneTable (setf (nth 1 table) '(2 2 2)) (setq table (cons 'hline table)) (setq table (append table '(hline))) (setq table (append table '((Total (setq table (append table '((\n#+TBLFM: @$=vsum(@I$..@$)::@$=vsum(@I$..@$):: table #+end_src At this point, it's ok for me but I need to put :: at the end to make it calculates sums because the | remaining. I'm aware I'm appending TBLFM to the table in a not orthodox way. Is there a canonical way I could proceed in? TIA Miguel Ruiz. Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords protects your account. Check it out at http://mysecurelogon.com/password-manager
Re: [O] How to export an Org file to LaTeX's book class, but without parts?
If you don't mind to live with part-chapter-section instead chapter-section-subsection: ---8-orgmode src8--- #+LaTeX_CLASS: book #+LaTeX_HEADER: \let\part\chapter #+LaTeX_HEADER: \let\chapter\section #+LaTeX_HEADER: \let\section\subsection ---8---end of orgmode src8--- Regards. -Original Message- From: mb...@mbork.pl Sent: Wed, 22 Apr 2015 00:33:24 +0200 To: emacs-orgmode@gnu.org Subject: [O] How to export an Org file to LaTeX's book class, but without parts? Hi all, this is an actual question, but it can be viewed as a continuation of the why use LaTeX directly and not Org thread (disclaimer: from the POV of an experienced LaTeX user and much less experienced Org-exporter user). So, I tried to do the opposite, just to learn something/unlock the Org Exporter skill;-). I want to export my Org file to the book class (actually, a class similar to it, but never mind), but I want my first-level headings to be chapters, not parts. OTOH, I don't want to modify org-latex-classes. Is that possible, and if yes, how to achieve that? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium
[O] [bug, master] Returned table column names broken after #+call function from lob-table-operations.org
The following minimal example (emacs -Q) yields (key, t1c2, t2c2) as column names after #+call: table-operations-combine-merge[1] with org-master (release_8.3beta-686-g9528be); org-maint (release_8.2.10-29-g89a0ac) works as expected yielding (Col1, Col2, Col3). [1] http://orgmode.org/w/?p=worg.git;a=blob_plain;f=org-contrib/babel/examples/lob-table-operations.org;hb=HEAD TIA Miguel. #+begin_src emacs-lisp (require 'cl) (org-babel-lob-ingest lob-table-operations.org) #+end_src #+RESULTS: : 7 #+name: table1 | Col1 | Col2 | |--+--| | A|2 | | B|4 | | C|6 | #+name: table2 | Col1 | Col3 | |--+--| |1 |2 | |3 |4 | |5 |6 | #+call: table-operations-combine-merge(table1,table2) :colnames yes #+RESULTS: | key | t1c2 | t2c2 | |-+--+--| | 1 |2 |2 | | 3 |4 |4 | | 5 |6 |6 | TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if5 Capture screenshots, upload images, edit and send them to your friends through IMs, post on Twitter®, Facebook®, MySpace™, LinkedIn® – FAST!
Re: [O] Bug: org-master (release_8.3beta-56-gdb0130) ascii exporter ignores org-export-preserve-breaks
After more detailed review I have figure out that the problem more generic and the opposite of the exposed in my previous message: - org-maint ascii exporter takes org-export-preserve-breaks into account (default is nil; it works as expected, both nil and t) - org-master ascii exporter doesn't take org-export-preserve-breaks into account (default is nil, it always preserves breaks) - Minimal example: #8-8 hello bye #8-8 and M-x org-ascii-export-as-ascii. - Org-maint (org-export-preserve-breaks nil) output: hello bye - Org-maint (org-export-preserve-breaks nil) output: hello bye HTH Miguel. -Original Message- From: rbeni...@inbox.com Sent: Wed, 23 Jul 2014 23:41:09 -0800 To: emacs-orgmode@gnu.org Subject: [O] org-maint exporting ignores \n in python babel output ascii export; org-master doesn't though #+BEGIN_SRC python :exports results :results raw return Hello\nBye #+END_SRC exports as: Hello Bye with org-ascii-export-as/to-ascii (Org-mode version 8.2.7b (release_8.2.7b-5-gc9613c)) But it exports correctly with Org-mode version 8.3beta (release_8.3beta-56-gdb0130) Miguel. Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
Re: [O] Bug: org-master (release_8.3beta-56-gdb0130) ascii exporter ignores org-export-preserve-breaks
Sorry: last block, I meant - Org-master (org-export-preserve-breaks nil) output: hello bye -Original Message- From: rbeni...@inbox.com Sent: Thu, 24 Jul 2014 23:53:57 -0800 To: emacs-orgmode@gnu.org Subject: Re: [O] Bug: org-master (release_8.3beta-56-gdb0130) ascii exporter ignores org-export-preserve-breaks After more detailed review I have figure out that the problem more generic and the opposite of the exposed in my previous message: - org-maint ascii exporter takes org-export-preserve-breaks into account (default is nil; it works as expected, both nil and t) - org-master ascii exporter doesn't take org-export-preserve-breaks into account (default is nil, it always preserves breaks) - Minimal example: #8-8 hello bye #8-8 and M-x org-ascii-export-as-ascii. - Org-maint (org-export-preserve-breaks nil) output: hello bye - Org-maint (org-export-preserve-breaks nil) output: hello bye HTH Miguel. -Original Message- From: rbeni...@inbox.com Sent: Wed, 23 Jul 2014 23:41:09 -0800 To: emacs-orgmode@gnu.org Subject: [O] org-maint exporting ignores \n in python babel output ascii export; org-master doesn't though #+BEGIN_SRC python :exports results :results raw return Hello\nBye #+END_SRC exports as: Hello Bye with org-ascii-export-as/to-ascii (Org-mode version 8.2.7b (release_8.2.7b-5-gc9613c)) But it exports correctly with Org-mode version 8.3beta (release_8.3beta-56-gdb0130) Miguel. Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth Send any screenshot to your friends in seconds... Works in all emails, instant messengers, blogs, forums and social networks. TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if2 for FREE
[O] org-maint exporting ignores \n in python babel output ascii export; org-master doesn't though
#+BEGIN_SRC python :exports results :results raw return Hello\nBye #+END_SRC exports as: Hello Bye with org-ascii-export-as/to-ascii (Org-mode version 8.2.7b (release_8.2.7b-5-gc9613c)) But it exports correctly with Org-mode version 8.3beta (release_8.3beta-56-gdb0130) Miguel. Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail
Re: [O] org-mode
master branch = make cleanall #git pull #optional git reset --hard origin/master # warning: removes local changes #make test#optional make #not necessary if make test maint branch = make cleanall #git pull #optional git reset --hard origin/maint # warning: removes local changes #make test#optional make #not necessary if make test HTH -Original Message- From: boudic...@skimble.plus.com, boudic...@skimble.plus.com Sent: Thu, 24 Jul 2014 14:32:49 +0100 To: emacs-orgmode@gnu.org Subject: [O] org-mode I see mails in which people are saying that they are using org-mode version 8.3beta (release_8.3beta-51-g02f2d5. I've just updated my org-build and it shows Org-mode version 8.2.7b (release_8.2.7b-6-g776972 @ /home/boudiccas/git/org-mode/lisp/) How then do I get to use the 8.3 beta please? Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.92.1 Publish your photos in seconds for FREE TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if4
Re: [O] Installing from git
This is my setup in .emacs; it runs without problems version after version. You are encouraged to simplify the path schema of org-mode branches I use.Minimal sequence for me is: make clean git pull make autoloads make info;; .emacs begins activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) Remove Org remnants built into Emacs from Achim Gratz;; https://github.com/emacsmirror/org/blob/master/testing/org-batch-test-init.el;; clean load-path(setq load-path (delq nil (mapcar (function (lambda (p)(unless (string-match "lisp\\(/packages\\)?/org$" p)p))) load-path)));; remove property list to defeat cus-load and remove autoloads(mapatoms (function (lambda (s) (let ((sn (symbol-name s))) (when (string-match "^\\(org\\|ob\\|ox\\)\\(-.*\\)?$" sn)(setplist s nil)(when (eq 'autoload (car-safe s))(unintern s)));; we should now start from a clean slate;;(setq myorg "master")(setq myorg "maint" ) ;; I have several directories under ~/org-mode/ with different ;; versions so I can change "easily";;(add-to-list 'load-path (concat "~/org-mode/" myorg "/testing/lisp"));;(add-to-list 'load-path (concat "~/org-mode/" myorg "/testing"))(add-to-list 'load-path (concat "~/org-mode/" myorg "/contrib/lisp"))(add-to-list 'load-path (concat "~/org-mode/" myorg "/lisp"))(require 'info)(setq Info-directory-list (cons (expand-file-name (concat "~/org-mode/" myorg "/doc")) Info-default-directory-list))(setq org-odt-data-dir (expand-file-name (concat "~/org-mode/" myorg "/etc")))(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))(global-set-key "\C-cl" 'org-store-link)(global-set-key "\C-cc" 'org-capture)(global-set-key "\C-ca" 'org-agenda)(global-set-key "\C-cb" 'org-iswitchb);; .emacs endsHTH-Original Message-From: vicente...@gmail.comSent: Mon, 30 Jun 2014 18:44:42 -0400To: emacs-orgmode@gnu.orgSubject: [O] Installing from gitHello. I'm quite confused with the installation options.Recently started out a Debian base system and compiled Emacs from the bzr repository. That came out fine, so I ran 'make install' and now Emacs 24.4.50 sits in /usr/local/bin, /usr/local/share, etc. I want to install the master branch of org-mode. Currently I followed these steps:- cd ~/org_from_git/- git clone git://orgmode.org/org-mode.git¿Do i need to tweak 'local.mk' so the prefix variable points to /usr/local/share before running make? ¿Which make option should i use (besides 'make autoloads')?Thanks in advance. Free 3D Earth Screensaver Watch the Earth right on your desktop! Check it out at www.inbox.com/earth
[O] non-beamer :ignoreheading: does not work for html (org 8.2.5h)
Hi The Suvayu edited answer of Jul 26 '13 at 11:42 http://stackoverflow.com/questions/10295177/is-there-an-equivalent-of-org-modes-b-ignoreheading-for-non-beamer-documents #+begin_src elisp (require 'ox) (defun sa-ignore-headline (contents backend info) Ignore headlines with tag `ignoreheading'. (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match \\`.*ignoreheading.*\n (downcase contents))) (replace-match nil nil contents))) (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline) #+end_src elisp for me, works for latex and ascii backends but not for html. Can anyone reproduce it? Any hints? TIA Emacs 24.3, orgmode 8.2.5h-61-g39cfc3 FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
Re: [O] Howto: different faces for begin_src and results
Thank you Bastien, Fabrice, Jambunathan. In the meantime I have discovered org-font-lock-keywords and related. Miguel. -Original Message- From: rbeni...@inbox.com Sent: Mon, 10 Mar 2014 02:49:08 -0800 To: emacs-orgmode@gnu.org Subject: [O] Howto: different faces for begin_src and results Hi I was wondering if it's possible to have different faces for #+begin_src/#+end_src and results so distinguishing the blocks is easier. TIA. Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail
[O] Howto: different faces for begin_src and results
Hi I was wondering if it's possible to have different faces for #+begin_src/#+end_src and results so distinguishing the blocks is easier. TIA. Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically. Learn more at http://backup.pcrx.com/mail
[O] : Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 be in maint?
Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 (Fix Marker points into wrong buffer error) be in maint? It works for me in emacs 24.3 and in 24.3.50 (as of today, 20130124). It's going to prevent errors in emacs 24.4 candidates. Miguel.
Re: [O] bug in 8.2.5f for using tables as data in python?
Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me. diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 1457682..523fd70 100644 (file) --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -137,7 +137,7 @@ specifying a variable of the same value. org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) - var + (substring-no-properties var) (defun org-babel-python-table-or-string (results) Convert RESULTS into an appropriate elisp value. vs http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00286.html diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 1457682..baa5764 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -137,7 +137,7 @@ specifying a variable of the same value. org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) - var + (if (stringp var) (substring-no-properties var) var) (defun org-babel-python-table-or-string (results) Convert RESULTS into an appropriate elisp value. Miguel.
Re: [O] bug in 8.2.5f for using tables as data in python?
Sorry, Bastien At this moment, in ob-python.el you can see: (defun org-babel-python-var-to-python (var) Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value. (if (listp var) (concat [ (mapconcat #'org-babel-python-var-to-python var , ) ]) (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) (substring-no-properties var) But I understand that Daniel Gerber's proposal is (note the last line): (defun org-babel-python-var-to-python (var) Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value. (if (listp var) (concat [ (mapconcat #'org-babel-python-var-to-python var , ) ]) (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) (if (stringp var) (substring-no-properties var) var) And, related to the problem of the OP, this last code works for me. Miguel El Miércoles 22 de enero de 2014 15:23, Bastien b...@gnu.org escribió: Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me. Can you tell what's wrong in the current version of ob-python.el from git repo? Otherwise I'm not sure to understand. Thanks, -- Bastien
Re: [O] odt exporter on mixed org setup
This is my setup in .emacs; it runs without problems version after version. ;; ;; Remove Org remnants built into Emacs ;; ;; from Achim Gratz ;; https://github.com/emacsmirror/org/blob/master/testing/org-batch-test-init.el ;; clean load-path (setq load-path (delq nil (mapcar (function (lambda (p) (unless (string-match lisp\\(/packages\\)?/org$ p) p))) load-path))) ;; remove property list to defeat cus-load and remove autoloads (mapatoms (function (lambda (s) (let ((sn (symbol-name s))) (when (string-match ^\\(org\\|ob\\|ox\\)\\(-.*\\)?$ sn) (setplist s nil) (when (eq 'autoload (car-safe s)) (unintern s))) ;; we should now start from a clean slate ;;(setq myorg master) (setq myorg maint ) ;; I have several directories under ~/org-mode/ with different ;; versions so I can change easily ;;(add-to-list 'load-path (concat ~/org-mode/ myorg /testing/lisp)) ;;(add-to-list 'load-path (concat ~/org-mode/ myorg /testing)) (add-to-list 'load-path (concat ~/org-mode/ myorg /contrib/lisp)) (add-to-list 'load-path (concat ~/org-mode/ myorg /lisp)) (require 'info) (setq Info-directory-list (cons (expand-file-name (concat ~/org-mode/ myorg /doc)) Info-default-directory-list)) (setq org-odt-data-dir (expand-file-name (concat ~/org-mode/ myorg /etc))) (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-cc 'org-capture) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) HTH El Jueves 16 de enero de 2014 6:47, Rustom Mody rustompm...@gmail.com escribió: Just helped a friend to install and upgrade to latest org. Method summary: $ git clone $ make update combined with setup of load-paths Ended with: ox-odt cannot find factory style files I remember that I too had this problem http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.html and it had recently disappeared. Checked that it comes back it I use emacs23; goes away if I use emacs24 Checked that the messages when it works in emacs24 are like thus: Debug (ox-odt): Searching for OpenDocument styles files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (ox-odt): Trying ~/pdsw/etc/styles/... Debug (ox-odt): Trying ~/pdsw/org-mode/lisp/etc/styles/... Debug (ox-odt): Trying /usr/share/emacs/24.3/etc/org/... Debug (ox-odt): Using styles under /usr/share/emacs/24.3/etc/org/ Debug (ox-odt): Searching for OpenDocument schema files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] Debug (ox-odt): No OpenDocument schema files installed So evidently my 'working' odt export is working because its using the builtin emacs odt exporter and not the latest one Looking at org-odt-* stuff I see almost a dozen files and directories and file lists and what not. All attempts so far at doing (setq org-odt-styles-dir ~/pdsw/org-mode/etc/styles) in various places, hooks etc have not changed the fact that it gets the builtin one
Re: [O] help with porting babel example on worg to latest version
What's the problem with: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src #+RESULTS: fibonacci-seq | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 | ? El Lunes 6 de enero de 2014 8:03, Christian Wittern cwitt...@gmail.com escribió: Hi there, I am trying to understand how to use information from an org table as input for a babel function. For this purpose, I looked at the example at http://orgmode.org/worg/org-contrib/babel/intro.html#arguments-to-source-code-blocks It seems that this is using the old syntax, eg. #+tblname, which seems to be just #+name now. But even with this change I can not reproduce the result. With the following code, I get the message Symbol's value as variable is void: fib-inputs when doing C-c on the src. I am sure there are more changes I need to make, but I can't figure it out. Any help appreciated. Here is the code so far: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src All the best, Christian -- Christian Wittern, Kyoto
[O] org-babel-gnuplot-quote-tsv-field does not work properly (quotes); org-plot-quote-tsv-field does though
Hi, I cannot get temp data file from org-babel-gnuplot with quoted row labels. I have tried org-plot/gnuplot and it provides a correct temp data file but it freezes so it is no useful by now. My test table: | Sede | Max cites | H-index | |---+---+-| | Chile | 257.72 | 21.39 | | Leeds | 165.77 | 19.68 | | Sao Paolo | 71.00 | 11.50 | ; without quotes (in temp data file), gnuplot sees 4 columns | Stockholm | 134.19 | 14.33 | | Morelia | 257.56 | 17.67 | I would appreciate any hint. TIA, Miguel Ruiz. CYGWIN_NT-6.1-WOW64 usuario-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin GNU Emacs (emacs-w32) 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang Org-mode version 8.2.5a (release_8.2.5a @ /home/usuario/org-mode/maint/lisp/)
Re: [O] org-babel-gnuplot-quote-tsv-field does not work properly (quotes); org-plot-quote-tsv-field does though
Is it *this* enough: diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index cc9186b..426077b 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el @@ -253,7 +253,7 @@ then create one. Return the initialized session. The current (org-babel-gnuplot-quote-timestamp-field s) (if (zerop (length s)) (or *org-babel-gnuplot-missing* s) - (if (string-match [ \] ?) + (if (string-match [ \] s) (concat \ (mapconcat 'identity (split-string s \) \\) \) s) It works for me. El Domingo 5 de enero de 2014 9:50, Miguel Ruiz rbeni...@yahoo.es escribió: Hi, I cannot get temp data file from org-babel-gnuplot with quoted row labels. I have tried org-plot/gnuplot and it provides a correct temp data file but it freezes so it is no useful by now. My test table: | Sede | Max cites | H-index | |---+---+-| | Chile | 257.72 | 21.39 | | Leeds | 165.77 | 19.68 | | Sao Paolo | 71.00 | 11.50 | ; without quotes (in temp data file), gnuplot sees 4 columns | Stockholm | 134.19 | 14.33 | | Morelia | 257.56 | 17.67 | I would appreciate any hint. TIA, Miguel Ruiz. CYGWIN_NT-6.1-WOW64 usuario-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin GNU Emacs (emacs-w32) 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang Org-mode version 8.2.5a (release_8.2.5a @ /home/usuario/org-mode/maint/lisp/)
Re: [O] org-babel-gnuplot-quote-tsv-field does not work properly (quotes); org-plot-quote-tsv-field does though
Thank you, Bastien. I'd prefer some of you writes the changelog entry; the patch is attached. El Domingo 5 de enero de 2014 12:51, Bastien b...@gnu.org escribió: Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: Is it *this* enough: diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index cc9186b..426077b 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el Thanks for the fix -- could you format it with git format-patch and add a proper ChangeLog? See http://orgmode.org/worg/org-contribute.html#sec-4-2 for details on how to submit a patch. Please add TINYCHANGE at the end of your commit message if you didn't sign the FSF papers. Thanks! -- Bastien 0001-Fix-typo-that-stopped-necessary-quoted-strings-in-gn.patch Description: Binary data
[O] org-babel-gnuplot-quote-tsv-field does not work; org-plot-quote-tsv-field does though
Hi, I cannot get temp data file from org-babel-gnuplot with quoted row labels. I have tried org-plot/gnuplot and it provides a correct temp data file but it freezes so it is no useful by now. My test table: | Sede | Max cites | H-index | |---+---+-| | Chile |257.72 | 21.39 | | Leeds |165.77 | 19.68 | | Sao Paolo | 71.00 | 11.50 | ; without quotes (in temp data file), gnuplot sees 4 columns | Stockholm |134.19 | 14.33 | | Morelia |257.56 | 17.67 | I would appreciate any hint. TIA, Miguel Ruiz. CYGWIN_NT-6.1-WOW64 usuario-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin GNU Emacs (emacs-w32) 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang Org-mode version 8.2.5a (release_8.2.5a @ /home/usuario/org-mode/maint/lisp/)
[O] Bug: Babel calc sqrt float var
Hi, Please, I am communicating the following problematic behaviour: #--- problematic code #+begin_src calc sqrt(0.8) #+end_src #+RESULTS: : 0.894427191 # OK #+begin_src calc :var x=0.8 sqrt(x) #+end_src #+RESULTS: =Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p 0.80004) math-idivmod(0.80004 0.80004) math-div(0.80004 0.80004) math-cancel-common-factor(0.80004 0.80004) math-simplify-sqrt() #[(math-simplify-expr) \300 \207 [math-simplify-sqrt] 1]((calcFunc-sqrt 0.80004)) math-simplify-step((calcFunc-sqrt 0.80004)) math-simplify((calcFunc-sqrt 0.80004)) calc-normalize-fancy((calcFunc-sqrt 0.80004)) calc-normalize((calcFunc-sqrt 0.80004)) math-evaluate-expr((calcFunc-sqrt 0.80004)) #[(line) not copy-yank-able string [line var-names calc-mode-map res x 0 calc-recall intern 1 ' lookup-key nil calc-push-list calc-eval math-read-number error Calc error \%s\ on input \%s\ replace-regexp-in-string math-evaluate-expr mapcar org-babel-calc-maybe-resolve-var math-read-exprs] 11] (sqrt(x))) org-babel-execute:calc(sqrt(x) ((:comments . ) (:shebang . ) (:cache . no) (:padline . ) (:noweb . no) (:tangle . no) (:exports . code) (:results . replace) (:var x . 0.80004) (:session . none) (:hlines . no) (:result-type . value) (:result-params replace) (:rowname-names) (:colname-names))) org-babel-execute-src-block(nil) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) #-- end of problematic code Command line: emacs -Q -l minimal-org.el ;;; minimal-org.el: ;;; Minimal setup to load latest `org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name ~/org-mode/maint/lisp)) (add-to-list 'load-path (expand-file-name ~/org-mode/maint/contrib/lisp t)) ;; active Babel languages (org-babel-do-load-languages 'org-babel-load-languages '((calc . t))) ;;; end of minimal-org.el GNU Emacs 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang Org-mode version 8.2.4 (release_8.2.4-3-g7fe99a @ /home/usuario/org-mode/maint/lisp/) TIA. Miguel Ruiz.
Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
Thank you, Jambunathan. I was exploring (defconst org-file-apps-defaults-cygwin '((remote . emacs) (t . cygstart %s) (system . cygstart %s) (ps.gz . gv %s) (eps.gz . gv %s) (dvi . xdvi %s) (fig . xfig %s))) (defun org-default-apps () Return the default applications for this operating system. (cond ((eq system-type 'darwin) org-file-apps-defaults-macosx) ((eq system-type 'cygwin) org-file-apps-defaults-cygwin) ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt) (t org-file-apps-defaults-gnu)))And it works for me so far. Your code is more compact but an ad-hoc solution as well. It is worth to take into consideration. Thanks again. I suppose you would like to know I have also tweaked your directions about odt-mathml for cygwin: (setq org-latex-to-mathml-convert-command java -jar $(cygpath -pw %j) -unicode -force -df %o %I) (setq org-latex-to-mathml-jar-file /home/user/tmp-odt/mathtoweb.jar) with great success (Java 1.7 update 25, mathtoweb 4.0.0). Miguel. Jambunathan K kjambunat...@gmail.com writes: (eval-after-load 'org '(when (eq system-type 'gnu/linux) ^ ^ 'cygwin (setcdr (assq 'system org-file-apps-defaults-gnu ) cygstart %s) (setcdr (assq t org-file-apps-defaults-gnu ) cygstart %s)))
[O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
Hello, I use cygwin only cli, so I depend on html, pdf and odt MSWindows viewer. I could manage to add this code to my .emacs: (if (eq system-type 'cygwin) (add-hook 'org-mode-hook '(lambda () (delete '(\\.x?html?\\' . default) org-file-apps) (add-to-list 'org-file-apps '(\\.x?html?\\' . cygstart %s)) (delete '(\\.pdf\\' . default) org-file-apps) (add-to-list 'org-file-apps '(\\.pdf\\' . cygstart %s)) (delete '(\\.odt\\' . default) org-file-apps) (add-to-list 'org-file-apps '(\\.odt\\' . cygstart %s) so I can org-open-file html/pdf/odt files successfully. But with (require 'ox-odt) + C-c C-e o O , my odt files open in emacs instead of LibreOffice. I am aware of (org-open-file (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el: - If I run (org-open-file file.odt) I get the desired behaviour; - If I run (org-open-file file.odt 'system) I get file.odt open in emacs as a zip file. So: - How can redefine or supress 'system in (org-open-file (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el? - May I propose to developers to include (defconst org-file-apps-defaults-cygwin ... or similar? - Could you help me in any other way? Thank you so much. Miguel Ruiz, Sevilla (Spain).
Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
Thank you, Jambunathan. 1/ I'm running Emacs 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang; it's Windows Emacs built into cygwin, so you don't have to have X11 installed in cygwin for graphical Emacs. 2/ I forgot to say I'm a running mintty 1.1.3 so open is not available, I can use cygstart instead. 3/ I will try the code you provide and I'll commit the list the progress I get. 4/ So far, cygwin+emacs+orgmode+python+perl+latex it's very nice, specially by the fact that you can propagate an ultra-customized working-environment as easy as just copy, no doubt, a very big folder. Miguel. El Sábado 30 de noviembre de 2013 11:18, Jambunathan K kjambunat...@gmail.com escribió: Miguel Ruiz rbeni...@yahoo.es writes: Remove all your configurations and try this. This will use windows open. (require 'org) ;; Make sure org is loaded (defun org-default-apps () Return the default applications for this operating system. (cond ((eq system-type 'darwin) org-file-apps-defaults-macosx) ((memq system-type '(cygwin windows-nt)) ;; org-file-apps-defaults-windowsnt) (t org-file-apps-defaults-gnu))) cygstart %s Any reason why this one is preferable windows's default open. Is cygstart a recent addition or is it available even on older distributions. - How can redefine or supress 'system in (org-open-file (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el? ODT files are zip files (can be opened in archive-mode) or they can be opened in doc-view. Use of 'system has generally not proved to be problematic in practice. I think it is possible to accomplish what you want without touch or modifying that particular line. - May I propose to developers to include (defconst org-file-apps-defaults-cygwin ... or similar? It would be a good idea. But, does the Emacs come from cygwin distribution or is it NT Emacs (ftp://ftp.gnu.org/gnu/emacs/windows/). Sorry, I am unable to provide concrete feedback. As sometime user of Cygwin + Windows, I found that Cygwin is a pain and started using native Windows Emacs and Gnu Win32 libraries. I have now moved to Debian now.
[O] Very minimal async export example does not work
I'm trying to get a very minimal example of async export working. Can you help me? I'm running out of ideas. TIA WindowsXP-SP3, Emacs 24.3, Org [8.2.1 (release_8.2.1-134-g8b264d @ c:/org-mode/lisp/)] #+BEGIN_SRC command-line emacs -Q -l minimal-org.el #+END_SRC #+BEGIN_SRC minimal-org.el ;;; Minimal setup to load latest `org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name c:/org-mode/lisp)) #+END_SRC #+BEGIN_SRC minimal.org * Hello world How things are going? #+END_SRC #+BEGIN_SRC keys C-c C-e C-a h h #+END_SRC #+BEGIN_SRC Error message Debugger entered--Lisp error: (wrong-type-argument stringp nil) start-process(org-export-process *Org Export Process* c:/emacs-24.3/bin/emacs -Q --batch -l nil -l c:/DOCUME~1/ADMINI~1/CONFIG~1/Temp/org-export-process3704Exd) org-export-to-file(html ./minimal.html t nil nil nil nil) org-html-export-to-html(t nil nil nil) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) #+END_SRC #+BEGIN_SRC Local/Temp/org-export-process3704Exd ;; -*- coding: iso-latin-1-dos; -*- (with-temp-buffer (when org-export-async-debug (quote (setq debug-on-error t))) (setq kill-emacs-hook nil org-babel-confirm-evaluate-answer-no t) (require (quote ox)) (funcall (lambda nil (let ((inhibit-modification-hooks t)) (let ((org-mode-hook nil) (org-inhibit-startup t)) (org-mode)) (set (make-local-variable (quote org-cycle-global-status)) (quote overview)) (set (make-local-variable (quote org-target-link-regexp)) (quote nil)) (set (make-local-variable (quote org-macro-templates)) (quote ((time . (eval (format-time-string \$1\))) (property . (eval (org-entry-get nil \$1\ 'selective)) (set (make-local-variable (quote org-table-may-need-update)) (quote t)) (set (make-local-variable (quote org-latex-and-related-regexp)) (quote )) (set (make-local-variable (quote org-all-time-keywords)) (quote (SCHEDULED DEADLINE CLOCK CLOSED))) (set (make-local-variable (quote org-maybe-keyword-time-regexp)) (quote \\((SCHEDULED:\\|DEADLINE:\\|CLOSED:\\|CLOCK:\\)\\)? *\\([[][0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?[^] ]*?[]]\\|%%([^ ]*\\))) (set (make-local-variable (quote org-keyword-time-not-clock-regexp)) (quote (SCHEDULED:\\|DEADLINE:\\|CLOSED:\\) *[[]\\([^]]+\\)[]])) (set (make-local-variable (quote org-keyword-time-regexp)) (quote (SCHEDULED:\\|DEADLINE:\\|CLOSED:\\|CLOCK:\\) *[[]\\([^]]+\\)[]])) (set (make-local-variable (quote org-closed-time-regexp)) (quote \\CLOSED: *\\[\\([^]]+\\)\\])) (set (make-local-variable (quote org-scheduled-time-hour-regexp)) (quote \\SCHEDULED: *\\([^]+[0-9]\\{1,2\\}:[0-9]\\{2\\}[0-9-+:hdwmy .]*\\))) (set (make-local-variable (quote org-scheduled-time-regexp)) (quote \\SCHEDULED: *\\([^]+\\))) (set (make-local-variable (quote org-scheduled-regexp)) (quote \\SCHEDULED:)) (set (make-local-variable (quote org-deadline-line-regexp)) (quote (DEADLINE:\\).*)) (set (make-local-variable (quote org-deadline-time-hour-regexp)) (quote \\DEADLINE: *\\([^]+[0-9]\\{1,2\\}:[0-9]\\{2\\}[0-9-+:hdwmy .]*\\))) (set (make-local-variable (quote org-deadline-time-regexp)) (quote \\DEADLINE: *\\([^]+\\))) (set (make-local-variable (quote org-deadline-regexp)) (quote \\DEADLINE:)) (set (make-local-variable (quote org-todo-line-tags-regexp)) (quote ^\\(\\*+\\)\\(?: +\\(TODO\\|DONE\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[ ]+\\(:[[:alnum:]:_@#%]+:\\)\\)?[ ]*$)) (set (make-local-variable (quote org-complex-heading-regexp-format)) (quote ^\\(\\*+\\)\\(?: +\\(TODO\\|DONE\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%%/]+\\] *\\)?\\(%s\\)\\(?: *\\[[0-9%%/]+\\]\\)?\\)\\(?:[ ]+\\(:[[:alnum:]_@#%%:]+:\\)\\)?[ ]*$)) (set (make-local-variable (quote org-complex-heading-regexp)) (quote ^\\(\\*+\\)\\(?: +\\(TODO\\|DONE\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$)) (set (make-local-variable (quote org-todo-line-regexp)) (quote ^\\(\\*+\\)\\(?: +\\(TODO\\|DONE\\)\\)?\\(?: +\\(.*?\\)\\)?[ ]*$)) (set (make-local-variable (quote org-not-done-regexp)) (quote \\(TODO\\))) (set (make-local-variable (quote org-todo-regexp)) (quote \\(TODO\\|DONE\\))) (set (make-local-variable (quote org-not-done-keywords)) (quote (TODO))) (set (make-local-variable (quote org-drawer-regexp)) (quote ^[ ]*:\\(PROPERTIES\\|CLOCK\\|LOGBOOK\\|RESULTS\\):[ ]*$)) (set (make-local-variable (quote org-ds-keyword-length)) (quote 12)) (set (make-local-variable (quote org-use-sub-superscripts)) (quote t)) (set (make-local-variable (quote org-file-properties)) (quote nil)) (set (make-local-variable (quote org-todo-log-states)) (quote nil)) (set (make-local-variable (quote org-todo-sets)) (quote ((TODO DONE (set (make-local-variable (quote org-todo-heads)) (quote
Re: [O] Very minimal async export example does not work
Thank you so much, Nicolas. For your reference, I had to add (setq org-export-async-debug t) as well. So this is my minimal-org.el #+BEGIN_SRC emacs-lisp ;;; Minimal setup to load latest `org-mode' and to make async export working ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name path/to/org-mode/lisp)) (add-to-list 'load-path (expand-file-name path/to/org-mode/contrib/lisp t)) ;; probably not needed (setq org-export-async-debug t) (setq org-export-async-init-file path/to/minimal-org.el) #+END_SRC Miguel. De: Nicolas Goaziou n.goaz...@gmail.com Para: Miguel Ruiz rbeni...@yahoo.es CC: emacs-orgmode@gnu.org emacs-orgmode@gnu.org Enviado: Martes 29 de octubre de 2013 9:09 Asunto: Re: [O] Very minimal async export example does not work Hello, Miguel Ruiz rbeni...@yahoo.es writes: I'm trying to get a very minimal example of async export working. For some reason `org-export-async-init-file' is set to nil, which is not allowed (at the moment). Try setting it to minimal-org.el (full path) instead. Regards, -- Nicolas Goaziou
[O] DOS (CRLF) EOL in org-ascii-export-to-ascii
Hi, I have the following working script in a windows box (emacs 24.3, org-version 7.9.3f-17) to produce an ascii file: emacs.exe -Q -batch --load=report.el --visit=file.org --funcall org-babel-execute-buffer --funcall org-export-as-latin1 file.org is an unix EOL file. report.el contains: (require 'cl) (require 'org) (setq org-table-number-fraction 0.2) (org-babel-lob-ingest lob-table-operations.org) (add-hook 'org-babel-after-execute-hook 'org-table-recalculate-buffer-tables) (setq org-confirm-babel-evaluate nil) (setq org-export-html-postamble nil) And it creates an ascii file with dos EOL (CRLF), i.e., it opens in notepad.exe perfectly formatted. Now I want to upgrade to the new Org 8.x, and I substitute org-export-as-latin1 with org-ascii-export-to-ascii: I get the same output content, but with unix EOL I would appreciate any hint to get the desired output, i.e., CRLF EOL. In my box, emacs.exe -Q saves new files with CRLF EOL. Sincerely Miguel Ruiz. Sevilla (Spain)
Re: [O] DOS (CRLF) EOL in org-ascii-export-to-ascii
What happens if you set `org-export-coding-system' to `utf-8-dos'? It works like a charm. Sorry for the noise but there are too many not-in-the-manual options for me. Regards, Miguel.
Re: [O] [PATCH] fix appointment warn time
--- El mar, 14/5/13, Ivan Kanis ban...@kanis.fr escribió: De: Ivan Kanis ban...@kanis.fr Asunto: Re: [O] [PATCH] fix appointment warn time Para: Bastien b...@gnu.org CC: org mode emacs-orgmode@gnu.org Fecha: martes, 14 de mayo, 2013 14:10 Le 14 Mai à 13h49, Bastien a écrit : Can anyone else reproduce Ivan's problem? Yes, I can. Both Emacs 24.3 with Org-mode version 7.9.4 (7.9.4-1-ga5435f-elpa) and Org-mode version 8.0.2 (release_8.0.2-71-g5a1400) exhibits the problem than Ivan reports. For me it is solved with Bastien patch, i.e. http://lists.gnu.org/archive/html/emacs-orgmode/2013-04/txt0omoVnE86i.txt Are you using bzr emacs? Now I recall it happens on 24.1 and bzr. Let's hope someone else can reproduce. -- La différence entre un bon et un mauvais architecte réside en ce que le mauvais succombe à toutes les tentations quand le bon leur tient tête. -- Ludwig Wittgenstein
Re: [O] Cannot get exported a correctly-recalculated table generated by org-babel
How can I get recalculated tables through org-export: a) Switch-off org-babel-execute-buffer in org-export? b) Switch-on org-tables recalculate-buffer-tables AFTER org-babel-execute-buffer? I cannot figure out the sequence in org-export or the multiple hooks available. I would use this one (not tested though): (add-hook 'org-export-preprocess-hook 'org-table-recalculate-buffer-tables) That goes perfect!!! I also found (add-hook 'org-babel-after-execute-hook 'org-table-recalculate-buffer-tables) Thanks a lot, Miguel. HTH, -- Bastien
[O] Cannot get exported a correctly-recalculated table generated by org-babel
Problem: I cannot get exported a correctly-recalculated table generated by org-babel. Hi, 0. Windoze 7 x64, Emacs 24.pre3 r99, Org-mode 7.9.3d (commit 08f5b0ad) (I cannot show the results with Emacs 24.1release or Emacs 24.2release because of the Windoze heap bug#13065 http://emacs.1067599.n5.nabble.com/bug-13065-Bug-in-x-file-dialog-with-GetOpenFileName-td271410.html) 1. Load: # start-of-org-file #+name: table1 | C1 | C2 | C3 | |++| | A | 1 | 1 | | B | 2 | 2 | | C | 3 | 3 | #+name: table2 | C1 | C4 | C5 | |++| | A | 1 | 1 | | B | 2 | 2 | | C | 3 | 3 | #+call: table-operations-combine-merge(table1,table2) :colnames yes #+tblfm: $6=$5+$4+$3+$2 # end-of-org-file 2. M-: (require 'cl) RET 3. M-: (org-babel-lob-ingest 'path/to/lob-table-operations.org') RET 4. M-x org-babel-execute-buffer RET yes RET yes RET 5. M-x org-table-recalculate-buffer-tables RET Results: tables merged and new column calculated correctly. -- Now let's export the file: 6. M-x org-export RET b yes RET yes RET Results: tables merged correctly and new column empty I presume that org-export re-execute babel but does not recalculate tables. How can I get recalculated tables through org-export: a) Switch-off org-babel-execute-buffer in org-export? b) Switch-on org-tables recalculate-buffer-tables AFTER org-babel-execute-buffer? I cannot figure out the sequence in org-export or the multiple hooks available. Thanks for this wonderful piece of software. Miguel Ruiz. Sevilla, Spain.
[O] Last org-lparse.el changes make swriter not to open after org-export-as-odt-and-open
Last org-lparse.el changes make swriter not to open after org-export-as-odt-and-open This refers to commit Tue, 2 Oct 2012 08:03:15 + (10:03 +0200) and, I think, the problems is only in org-lparse.el changes. Version 7.9.2-50-g1fb3cc works as expected if org-lparse.el is reverted to its previous version.
Re: [O] No title in org-export-as-odt
Hi, Miguel Ruiz rbeni...@yahoo.es writes: Any hint to get rid of the title in a org-export-as-odt session? I don't think you can org-odt-format-preamble function says: ... (when title (concat (org-odt-format-stylized-paragraph 'title (org-odt-format-tags '(text:title . /text:title) title)) ;; separator text:p text:style-name=\OrgTitle\/)) ... So I only need to find a way to assign nil to title variable inside the document. Also I might define a new option with org-export-inbuffer-options-extra, but the elaboration of the function is beyond my knowledge. I would appreciate any idea. #+OPTIONS: title:nil author:nil timestamp:nil toc:nil ^ This option is not supported. -- Bastien Thanks.
[O] No title in org-export-as-odt
Hi, Any hint to get rid of the title in a org-export-as-odt session? I've tried #+OPTIONS: title:nil author:nil timestamp:nil toc:nil #+LANGUAGE: es * HELLO and I get the filename as odt file title. If I try #+TITLE: #+OPTIONS: title:nil author:nil timestamp:nil toc:nil #+LANGUAGE: es * HELLO I get an empty line, OrgTitle-styled. Run out of ideas. TIA
[O] Org-export OpenDocument needs (defalias 'copy-seq 'copy-sequence)
GNU Emacs 24.2.1 (i386-mingw-nt6.1.7600) of 2012-09-02 on GNUPACKOrg-mode release_7.9.1-4-gdd2822
[O] No inline property value after subtree export
Hi, In this minimal example --org-mode file start#+OPTIONS: toc:nil#+AUTHOR:#+DATE:* Level 1 :PROPERTIES: :ID: 527b694d-8288-4d37-a06a-a288bd9592b5 :END:This is level 1 with ID {{{property(ID)}}}** Level 2 :PROPERTIES: :ID: 1cf7847a-0977-4f18-8dc1-c3058a89a596 :END:This is level 2 with ID {{{property(ID)}}}*** Level 3 :PROPERTIES: :ID: 2b9390ca-17ea-452f-be68-28c134dd376e :END:This is level 3 with ID{{{property(ID)}}}--org-mode file end --- if I do org-export then 1(subtree) then d(LaTeX) with the cursor in the Level 2 heading, I get Level 2 as document title, but the ID value is not evaluated so I get {{{property(ID)}}} instead. The level 3 ID value is correctly exported. Any hint to solve it?
[O] PyOrgMode: Any idea how to get the properties of a node?
I am using PyOrgMode to process the nodes of an orgmode file. I have had no problem with the OrgDataStructure class, but, as you can see https://github.com/bjonnh/PyOrgMode/blob/master/PyOrgMode.py the drawer and properties are parsed by another class, OrgDrawer, and I cannot, i.e., I am not so fluent in python to view the link between OrgDataStructure and OrgDrawer. Can anyone help me? My minimal code: import PyOrgMode tree = PyOrgMode.OrgDataStructure() tree.load_from_file('test.org') for i in tree.root.content: print i And what else to get the properties of, let's say, tree.root.content[0]? TIA
[Orgmode] Generating an org file actually including the #+INCLUDE files
Hi, I am working on a document split in several chunks. I need to generate the full document in order to do different sorting processes before exporting. It would be nice if that generation could be recursive ... you know, one master file, one included file with another included file. I suppose orgmode already does this before any exporting. Actually I am asking for an Org export option instead LaTeX or Docbook export. Now, sorry, I am thinking it would be fantastic that noexport tag would be available as well. How can achieve this? TIA ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org capture with predefined entries from a list?
--- El mié, 22/9/10, Bastien bastien.gue...@wikimedia.fr escribió: De: Bastien bastien.gue...@wikimedia.fr Asunto: Re: [Orgmode] Org capture with predefined entries from a list? Para: Miguel Ruiz rbeni...@yahoo.es CC: emacs-orgmode@gnu.org Fecha: miércoles, 22 de septiembre, 2010 01:00 Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: 1. In any buffer: M-x org-capture 2. Appears a menu saying Select a capture template. Of course, two options [t] and [j], and [C] Customize org-capture-templates and [q] Abort. 3. I press [t] and get a capture buffer with * TODO inserted, ready to accept my entry 4. Appears another menu saying Select task type or whatever: several options: [1] Task1 [2] Task2 [3] Task3 ... 5. I press [1] and capture buffer updates with * TODO Task1 inserted, ready to accept more info 6. Ideally appears another menu saying Select comment or whatever: several options: [1] Comment1 [2] Comment2 [3] Comment3 ... 7. I press [1] and capture buffer updates with * TODO Task1 Comment1 inserted, ready to accept more info 8. Ideally steps 6 and 7 would be repeated (well, no more than 4 or 5 times) 4. C-c C-c finish and save the entry in ~/org/gtd.org Do you really want capturing a task to be such a heavy task?! Actually, yes, I want, because steps 4, 6 and 8 contain long lists hard to remember, and I want to guarantee exactly the inserted strings are one of the included in the lists. In the original post, I said that I could manage with 2-3 keybindings that show, each, a list to choose and insert the entry, but I am not sure how to do it. You should explore using multiple keys for the capture template definition -- see the manual: Do you mean I should generate all the combinations and assign a template to each one? Can you provide any kind of minimal example? http://orgmode.org/manual/Template-elements.html#Template-elements HTH, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org capture with predefined entries from a list?
Thank you for your interest. First: org.el 7/9/2010, org-capture.el 2/9/2010 Contents of .emacs: (...) (setq org-capture-templates '((t Todo entry (file+headline ~/org/gtd.org Tasks) * TODO %?\n %i\n %a) (j Journal entry (file+datetree ~/org/journal.org) * %?\nEntered on %U\n %i\n %a))) (...) So, let's start: 1. In any buffer: M-x org-capture 2. Appears a menu saying Select a capture template. Of course, two options [t] and [j], and [C] Customize org-capture-templates and [q] Abort. 3. I press [t] and get a capture buffer with * TODO inserted, ready to accept more info 4. C-c C-c finish and save the entry in ~/org/gtd.org Ok. That's what I would like: 1. In any buffer: M-x org-capture 2. Appears a menu saying Select a capture template. Of course, two options [t] and [j], and [C] Customize org-capture-templates and [q] Abort. 3. I press [t] and get a capture buffer with * TODO inserted, ready to accept my entry 4. Appears another menu saying Select task type or whatever: several options: [1] Task1 [2] Task2 [3] Task3 ... 5. I press [1] and capture buffer updates with * TODO Task1 inserted, ready to accept more info 6. Ideally appears another menu saying Select comment or whatever: several options: [1] Comment1 [2] Comment2 [3] Comment3 ... 7. I press [1] and capture buffer updates with * TODO Task1 Comment1 inserted, ready to accept more info 8. Ideally steps 6 and 7 would be repeated (well, no more than 4 or 5 times) 4. C-c C-c finish and save the entry in ~/org/gtd.org In the original post I said that if not possible, I would be happy with a shortkey launching a buffer showing the options of step 4, then I would select one of them and it would inserted after * TODO I hope now it is more clear. Miguel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org capture with predefined entries from a list?
Hi Might I implement an org capture template with predefined entries from a list instead of typing the final entry? If not, please, whats the minimal code to get a shortkey to launch a selection of an item of a list and insert in the buffer? Thank you. My questions has always been well treated in this list. I am learning a lot with all the people here. Miguel. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-babel-post-tangle-hook just opening tangled file
Hi Should (add-hook 'org-babel-post-tangle-hook (lambda () (save-window-excursion (find-file (buffer-file-name) work in .emacs? The purpose is simply opening the tangled file but I think the opening happens before the tangled file has finished of being written. I have tried (add-hook 'org-babel-post-tangle-hook (lambda () (save-window-excursion (find-file anyfile and no problem, but the first code does nothing, apparently. I am a beginner with elisp, so I beg your pardon. Miguel Ruiz. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Inserting date/time stamps including seconds
I am interesting to hear why you'd want to have that. Well, basically I have a main .org file as a logbook, and a inactive date/time stamp would serve as a unique identification field; I need different time stamps in the same minute. Best wishes. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Inserting date/time stamps including seconds
Is it possible to insert date/time stamps (active or inactive) including seconds? I have tested that entries like [2010-07-13 tue 14:53:37] works perfectly. Sorry, if this question have been answered; every second search I have done get me to first ..., second ... Miguel Ruiz Sevilla, Spain ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Filtering entries of a journal file with its datestamp
I have a simple journal .org file like this: --Begin file--- * 2010-04-16 fri Subject 1 Subject 2 Subject 1 Subject 40 * 2010-04-17 sat Subject 2 Subject 3 Subject 1 Subject 40 --End file-- Every subject is only one line. I would like to print the journal but including only the lines with a specific content, determined by a search, like the following -Buffer to print- * 2010-04-16 fri Subject 1 Subject 1 * 2010-04-17 sat Subject 1 -- --Another buffer to print- * 2010-04-16 fri Subject 40 * 2010-04-17 sat Subject 40 -- I have tried org-occur, but only marks the searched string; I also have tried occur but generate a list without the dates, and cannot be printed. I would appreciate any hint. Miguel Ruiz Sevilla, Spain. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Listing filtered entries of a journal file with its datestamp
I have a simple journal .org file like this: --Begin file--- * 2010-04-16 fri Subject 1 Subject 2 Subject 1 Subject 40 * 2010-04-17 sat Subject 2 Subject 3 Subject 1 Subject 40 --End file-- Every subject is only one line. I would like to print the journal but including only the lines with a specific content, determined by a search, like the following -Buffer to print- * 2010-04-16 fri Subject 1 Subject 1 * 2010-04-17 sat Subject 1 -- --Another buffer to print- * 2010-04-16 fri Subject 40 * 2010-04-17 sat Subject 40 -- I have tried M-x org-occur, but only marks the searched string; I also have tried M-x occur, but generates a list without the dates, and cannot be printed. I would appreciate any hint. Miguel Ruiz Sevilla, Spain. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode