Re: [O] remote plot with local output?

2015-09-18 Thread Benda Xu
Hi, Benda Xu writes: > "Charles C. Berry" writes: > >> Untested, but try this : >> >> #+name: localize >> #+BEGIN_SRC emacs-lisp :var file="" srcinfo=(org-babel-get-src-block-info) >>(let* ((dir (cdr (assoc :dir (nth 2 srcinfo >> (rfile (concat (file-name-as-directory dir) fil

Re: [O] Using the file as 1st level headline

2015-09-18 Thread Eric S Fraga
On Thursday, 17 Sep 2015 at 19:55, Sven Bretfeld wrote: [...] > I should have been more clear. The problem is the project definition. It > will become clear below. Thanks for the clarification. I understand what you are trying to achieve. I may not be able to help much, unfortunately. Except:

[O] Bug: cached code blocks should return the same value [8.3.1]

2015-09-18 Thread Benda Xu
Hi All, Passing values across code blocks makes Org babel a powerful meta programming language: #+name: input #+BEGIN_SRC sh :results output echo "3" #+END_SRC #+BEGIN_SRC R :var a=input() a #+END_SRC #+RESULTS: | 3 | | | However, this feature does not work with

Re: [O] two sets of default header arguments for one language

2015-09-18 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> That's a pity. >> >> It would be really great if one could define different sets of >> hearer-args and then, at thr beginning of a code block, simply use: >> >> #+MACRO: forTangle :tangle ./test.R :export none >> #+MACRO: forExecution :tangl

Re: [O] [org-plot/gnuplot] Plotting candlestick plots

2015-09-18 Thread Suvayu Ali
On Thu, Sep 17, 2015 at 08:05:16PM +0300, Foivos S. Zakkak wrote: > Hello list, > > I am trying to plot some candlesticks through org-plot/gnuplot, but I > fail. > > It seems that org-plot/gnuplot supports a list of numbers in deps, i.e., > deps:(2 3 4) and then creates a string of the form: > '

Re: [O] babel: fancy prompt messes up results of shell block

2015-09-18 Thread Loris Bennett
Grant Rettke writes: > On Fri, Sep 11, 2015 at 3:29 AM, Loris Bennett > wrote: >> Hi, >> >> I have a bit of a fancy bash prompt and so the output of evaluating a >> block of shell script ends up a little messy: >> >> #+BEGIN_SRC sh :session install :results output >> echo blah >> #+END_SRC >> >>

Re: [O] "Capture"-like browser plugin?

2015-09-18 Thread Daniele Pizzolli
On Thu, Sep 17 2015, Samuel Wales wrote: > On 7/23/15, Daniele Pizzolli wrote: >> https://addons.mozilla.org/it/firefox/addon/org-mode-capture/ >> >> The latest version convert html links to org-links (disclaimer: it is my >> little contribution). > > this extension is wonderful. all you have to

[O] Bug: org-babel-tangle-publish fails in copy-file step [8.3.1 (release_8.3.1-241-gea7ac0 @ /home/arunisaac/.emacs.d/org-mode/lisp/)]

2015-09-18 Thread Arun I
When publishing files using org-babel-tangle-publish, if the :tangle header argument is given to a source block, and if org-babel-tangle-publish is called from a directory other than the directory in which the source file (that is, the file being tangled) exists, then org-babel-tangle-publish fails

Re: [O] Emacs-orgmode Digest, Vol 115, Issue 21

2015-09-18 Thread Foivos S. Zakkak
On Fri, Sep 18, 2015 at 12:47:07 +0200, Suvayu Ali wrote: > On Thu, Sep 17, 2015 at 08:05:16PM +0300, Foivos S. Zakkak wrote: >> Hello list, >> >> I am trying to plot some candlesticks through org-plot/gnuplot, but I >> fail. >> >> It seems that org-plot/gnuplot supports a list of numbers in dep

Re: [O] remote plot with local output?

2015-09-18 Thread Charles C. Berry
On Fri, 18 Sep 2015, Benda Xu wrote: Hi, Benda Xu writes: "Charles C. Berry" writes: Untested, but try this : #+name: localize #+BEGIN_SRC emacs-lisp :var file="" srcinfo=(org-babel-get-src-block-info) (let* ((dir (cdr (assoc :dir (nth 2 srcinfo (rfile (concat (file-name

[O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
Hi all, The suggestion to use zero width spaces to sort of "escape" stuff in org mode has come up many times. I have started using it a lot and suggest that to other people now. Here is one such recent QnA on emacs.SE: http://emacs.stackexchange.com/a/16702/115 The OP of that question made a val

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > The suggestion to use zero width spaces to sort of "escape" stuff in org > mode has come up many times. I have started using it a lot and suggest that > to other people now. > > Here is one such recent QnA on emacs.SE: > http://emacs.stackexchange.com/a/16702/115 >

Re: [O] Bug: org-babel-tangle-publish fails in copy-file step [8.3.1 (release_8.3.1-241-gea7ac0 @ /home/arunisaac/.emacs.d/org-mode/lisp/)]

2015-09-18 Thread Arun I
Just in case, I have also attached a tarball with org files and emacs source code to reproduce the error. Just extract the tarball, and run emacs -Q -l minimal-org.el in the extracted folder. If the load file paths and org file paths are set correctly as mentioned in minimal-org.el, the org-babe

Re: [O] "Capture"-like browser plugin?

2015-09-18 Thread Samuel Wales
hi daniele, On 9/18/15, Daniele Pizzolli wrote: > And pressing C-a (Select All) for the selection. all of the bugs occur with mouse. i never use keyboard and org-capture together. >> and sometimes it will capture the link but not the >> selection. > > Do you have an example page for this? Onc

Re: [O] "Capture"-like browser plugin?

2015-09-18 Thread Samuel Wales
fwiw my x logs contain some lines like these: Waiting for Emacs... Waiting for Emacs...*ERROR*: Capture abort: (end-of-file)

Re: [O] Bug: Internal links broken when exporting from org mode to markdown and odt [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]

2015-09-18 Thread Nicolas Goaziou
Denis Bitouzé writes: > Via ELPA, it will be okay? It should. There is a new ELPA release every week. > I should have been more explicit, sorry: AFAICS, when clicking on the > "another" link, we jump *not* at the second section but at its > corresponding entry in the TOC. This should be fixe

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
My most common uses are escaping double quotes (") and equals (=) within org verbatim blocks (=VERBATIM=) Examples: 1. =var=[ZWS]val= 2. =[ZWS]"something"[ZWS]= Here [ZWS] is the 0x200b zero width space unicode char. I found [ZWS] useful as a generic escape char for org mode. There are few othe

[O] [PATCH] fix SETUPFILE pathname expansion with subdirectories

2015-09-18 Thread Richard Hansen
* lisp/org.el (org--setup-collect-keywords): cd to the directory containing the SETUPFILE before recursing so that relative pathnames in the SETUPFILE are expanded properly. * lisp/ox.el (org-export--get-inbuffer-options): cd to the directory containing the SETUPFILE before recursing so that relat

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Eric Abrahamsen
Kaushal Modi writes: > My most common uses are escaping double quotes (") and equals (=) > within org verbatim blocks (=VERBATIM=) > > Examples: > > 1. =var=[ZWS]val= > 2. =[ZWS]"something"[ZWS]= > > Here [ZWS] is the 0x200b zero width space unicode char. > > I found [ZWS] useful as a generic esc

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
Thanks for letting me know about org-entities. That is awesome. I now know how to escape various characters in general, but unfortunately this does not work within verbatim formatting (which makes sense). Here's a minimum working example: = * Escaping =equal= sign in verbatim formatting. =a\

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
Here's the MWE once again with proper indication ([ZWS]) of where you need to insert the zero width space char. = * Escaping =equal= sign in verbatim formatting. =a\equal{}b+c= ** Here's the same but using zero width spaces instead of /org entities/. =a=[ZWS]b+c= * Here I am trying to have d

[O] [PATCH] Fix org-agenda-with-point-at-orig-entry

2015-09-18 Thread Eric Abrahamsen
A comma is missing from this macro's backquote template. Here's a patch to add it! Eric >From 628b8ec90851710bb168164e2d4145acf4360d77 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Sat, 19 Sep 2015 13:41:25 +0800 Subject: [PATCH] org-agenda.el: Fix org-agenda-with-point-at-orig-entry * l

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
I got really interested in org-entities (to deal with the case I mentioned in the first email in this thread like \ast{}shrug\ast{}) and came up with this: = (defun modi/org-entity-get-name (char) "Return the entity name for CHAR. For example, return \"ast\" for *." (let ((ll (append org-