[O] interaction of =org-export-babel-evaluate= and =results output= counter-intuitive
__ INTERACTION OF `ORG-EXPORT-BABEL-EVALUATE' AND `RESULTS OUTPUT' COUNTER-INTUITIVE George Jones __ <2017-08-15 Tue 08:23> I want to define code blocks that export only results, and are not automatically executed on export. To get this behavior, I have to - `setq org-export-babel-evaluate t)' and use both , | :eval never-export | :results output ` Which seems a little counter-intuitive. The problem is that headers (includiing `:results output') are ignored when `org-export-babel-evaluate' is set. Perhaps this headers (at least) should be honored when `org-export-babel-evaluate' is set? Is there a way to make `eval never-export' the default?
[O] stty fails in babel sh blocks, workaround?
I'm running some programs that expect to be able to get terminal settings via (python fragment): ioctl(1, termios.TIOCGWINSZ, ' '*8))ioctl(1, termios.TIOCGWINSZ, ' '*8)) however, sh code run under babel appears not to have the terminal device that's expected: nostty.org * No stty in babel #+BEGIN_SRC sh :results output :exports both exec 21; date; set -e; # set -x; stty || true #+END_SRC #+RESULTS: : Wed Apr 8 10:33:33 EDT 2015 : stty: standard input: Inappropriate ioctl for device -- I realize this is probably inherent to the design/the way babel works, but are there any workaround (creating fake terminals, etc)? Thanks, ---George Jones
[O] babel sh session eats '' after first src block
This may be expected behavior, but it was unexpected to me: '' in sh :session output eaten after first src block. Clues, RFTMs (I tried), workarounds? Thanks, ---George Jones redirect-test.org- * Session output with works first time, not subsequent times #+BEGIN_SRC sh echo 'one two' foobar.txt #+END_EXAMPLE #+BEGIN_SRC sh :results output :exports both :session session1 cat foobar.txt #+END_SRC #+RESULTS: : : one two #+BEGIN_SRC sh :results output :exports both :session session1 cat foobar.txt #+END_SRC #+RESULTS: : : two
[O] Symbol's function definition is void: org-export-dispatch; don't forget to make autoloads
This may be obvious, but don't forget to do make autoloads after a git clone: http://orgmode.org/manual/Installation.html I was getting: Symbol's function definition is void: org-export-dispatch and wasted time trying to figure this out. This posting is to document it the mailing list so others experiencing the same symptom can find the solution, even it it is well, duh/RTFM. ---George Jones
[O] ox-bibtex.el references working in sample.org
Both LaTeX and HTML citations and bibliography generation in the new ox-bibtex.el seem to be working. Test .org file attached Ran it with a larger document I'm working on, and the references seemed to work. Having some issues now with figures and references, but I'm probably just using old-style stuff here. Next battle. What we want is illustrated by figure \ref{WhatWeWant} #+CAPTION: What we want #+LABEL: fig:WhatWeWant Thanks for your work/help, ---George Jones simple.org Description: Binary data
[O] Upgrading to the new exporter; documenting my experience
FWIW, I've documented my steps towards updating to the new exporter https://github.com/eludom/HOWTO/blob/master/newOrgModeExporter/upgradingToTheNewOrgModeExporter.txt I was putting it off until I had a little time to work through it. Hopefully, this will help others in the same holding pattern. There's and org version there as well with babel version there that will do pretty much everything if you let it, from testing the emacs and org versions to cloning the repo to apt-getting the stuff needed for latex on Ubuntu. Github messes up the formatting of that version, but it should work if you download it. I'm not completely moving over yet. Gotta get the ox-bibtex stuff working (export citations and bibliography to .html and .tex). Nicolas sent me a test version, and it works for tex/pdf, but has a few issues with HTML. It's getting (gitting ?) there. ---George Jones ** **
Re: [O] Emacs-orgmode Digest, Vol 85, Issue 5
emacs-orgmode-requ...@gnu.org writes: Today's Topics: 39. Re: org-exp-bibtex missing in git? (Vikas Rawal) Message: 39 Date: Mon, 4 Mar 2013 10:10:37 +0530 From: Vikas Rawal vikasli...@agrarianresearch.org To: emacs-orgmode emacs-orgmode@gnu.org Subject: Re: [O] org-exp-bibtex missing in git? I do confirm. Thank you. I have been trying to migrate to the new-exporter. I have not had much success so far but I hope to be able to figure it all out soon. Since we do not yet have a documentation, it is difficult. Nicolas has been very kind with help. I have a website that is built using old exporter. It used org-exp-bibtex. I will move it to the new exporter, and if there is a problem, get back to the mailing list. Till then, thank you for your responses. Vikas (or others): would you be willing provide a minialist example .org and .bib that exports to both .tex and .html with a citation? I'd be glad to use org-exp-bibtex while the new cite: (or whatever) format is worked out. Been beating my head on this for a few days. Thanks, ---George Jones
Re: [O] Errors from remote sh scripts somewhat non-intuititve
On Sat, Dec 29, 2012 at 5:44 AM, Bastien b...@altern.org wrote: For me, when the dir is available, I get a command not found for the xecho command. Same here, after a git-update of org-mode. Not sure what the issue was Thanks, ---George
[O] Errors from remote sh scripts somewhat non-intuititve
When a a remote sh script fails in babel, the feedback to the user is Setting current directory: no such file or directory, ... even it what happened is just a command not found. It would be more useful to see the error output as happens with the local case. repete-by attached. Thanks, ---George Jones shErrors.org Description: Binary data
[O] errors setting sh arrays
Next up, it seems that I have to use a :session to set arrays in sh code on a remote system or you get a shell syntax error. See attached .org file arrayRemote.org Description: Binary data
Re: [O] remote execution in heterogeneous environment
Should a git pull of development version of org pull the right patch? Thanks, ---george jones On Dec 23, 2012 11:47 AM, Bastien b...@altern.org wrote: Hi Michael, Michael Albinus michael.albi...@gmx.de writes: http://thread.gmane.org/gmane.emacs.orgmode/63586/focus=63709 The last patch in this message. Again, the function seems to be moved to ob-core.el now. Ah okay, applied, thanks! -- Bastien
Re: [O] remote execution in heterogeneous environment
Success. No setting of temporary-file-directory needed. Thanks, ---George On Sun, Dec 23, 2012 at 2:54 PM, Bastien b...@altern.org wrote: George Jones elu...@gmail.com writes: Should a git pull of development version of org pull the right patch? Yes. Simply ~$ git clone git://orgmode.org/org-mode.git (our master branch is the development branch.) HTH, -- Bastien
Re: [O] remote execution in heterogeneous environment
Hi. Patch seems to work. Tested on fresh emacs-snapshot (24.3.50.1) install on ubuntu with org-mode freshly pulled from git (7.9.2). #+NAME: hobbits | bilbo | frodo | #+name: execOnExample.com #+BEGIN_SRC sh :var foo=hobbits :dir /g...@example.com: :results output hostname echo executed on `hostname` at `date` echo two $foo #+END_SRC Similar procedure on a mac still yeilds: FYI/Thanks, ---George Jones Couldn't write region to `/scpc:g...@example.com:/var/folders/j6/j6w17khs3vl9s2_yg4rb5zsmgn/T/input-61683xyS', decode using `mimencode -u -b %s' f\ ailed On Thu, Dec 20, 2012 at 11:39 AM, Bastien b...@altern.org wrote: Hi Michael, Michael Albinus michael.albi...@gmx.de writes: The following patch I've committed to Emacs' trunk, it fixes the problem as far as I could test. Maybe somebody from the org maintainers could merge it into the org repository. I've already merged it in maint and master. Thanks a lot!