Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nick Dokos
Omid omidl...@gmail.com writes: Hello Nick, Thanks for your reply. But no, src html results in the included HTML being processed by Org and wrapped in pre class=src src-html, just like if the contents of myfile.html were put in #+BEGIN_SRC html #+END_SRC Yes, I misunderstood the doc. --

Re: [O] Moving footnotes

2014-06-01 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: Here it is. It could be prettier but I think it should get the job done. Wow, thanks! I didn't expect this to be that long... I tested it with various input files and it works fine. It could probably be

[O] latex markup in org?

2014-06-01 Thread Steven Arntson
I've been learning to export from org to latex (to pdf), and have had great success. There's a simplification to the process I'd like to make, though, if it's possible. Right now I use files: file.org and filestyle.sty. The .sty gives the latex-specific instruction, and I point to it from

Re: [O] latex markup in org?

2014-06-01 Thread Omid
Hello Steven, LaTeX .sty files are special. They are not meant to be included in a .tex file. See https://tex.stackexchange.com/questions/91167/why-use-sty-files for more information. Omid Sent from my Emacs On 06/01/2014 02:57 AM, Steven Arntson wrote: I've been learning to export from org

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Achim Gratz
Omid writes: I am trying to include an HTML file (say myfile.html, which has only the body) in an Org file so that upon export the contents of myfile.html are /literally/ inserted in the appropriate section of the exported HTML file. That's not yet possible. The following patch would

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: That's not yet possible. The following patch would implement it, but I guess there are a few things that need to be discussed before this gets official, if at all. I haven't given it much testing either. From

[O] [bug] f36b19eef6 uses font-lock-ensure, which is only implemented in emacs-trunk

2014-06-01 Thread Achim Gratz
As the subject says, aside from this that particular change should have been in a separate commit since it's completely unrelated to what the commit summary says it is doing. This needs a compatibility alias, function or macro since the behaviour of font-lock-fontify-buffer has been changed to

Re: [O] Escaping again!

2014-06-01 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: For now description lists accept both - and +. I'm all for allowing only - so that we could use + \(+\) :: Int → Int → Int + \(-\) :: Int → Int →Int + \(\leq\) :: Int → Int → Bool + \(=\) :: Int → Int → Bool in your example. What do you and others

Re: [O] [bug] f36b19eef6 uses font-lock-ensure, which is only implemented in emacs-trunk

2014-06-01 Thread Bastien
Achim Gratz strom...@nexgo.de writes: This needs a compatibility alias, function or macro since the behaviour of font-lock-fontify-buffer has been changed to interactive-only. I expected the compatibility alias to be available from Emacs trunk, but I should have checked. I don't have time to

Re: [O] Moving footnotes

2014-06-01 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Done. Though, I changed `org-footnote-action' instead of `org-footnote-new', since the latter should, IMO, return an error when called from a point where no footnote is allowed. Right, thanks, -- Bastien

Re: [O] Patch for testing `org-open-at-point'

2014-06-01 Thread Bastien
Hi York, York Zhao gtdplatf...@gmail.com writes: Thank you very much for implementing this. Really appreciated. So do you think it is a good idea to add my test (the patch) now for testing this? Yes. For your convenience, I've attached again in this message the same patch I had sent on

Re: [O] latex markup in org?

2014-06-01 Thread Glyn Millington
Steven Arntson ste...@stevenarntson.com writes: I've been learning to export from org to latex (to pdf), and have had great success. There's a simplification to the process I'd like to make, though, if it's possible. Right now I use files: file.org and filestyle.sty. The .sty gives the

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Achim Gratz
Nicolas Goaziou writes: Thanks for the patch. However, I'd rather not allow arbitrary blocks around included files, as it can be the source of some headache (e.g., a quote block around an Org file containing a headline). Also we don't really need it since most use-cases are already supported.

[O] Check on empty does not work

2014-06-01 Thread Cecil Westerhof
I am trying the following: #+TBLFM: @-I$4..@+I$4 = if($3 == nan, string(), $3 - $2) ; %.1f and: #+TBLFM: @-I$4..@+I$4 = if($3 == , string(), $3 - $2) ; %.1f But in both case the fourth field is filled when the third field is empty. What am I doing wrong? I am using version 8.2.1. --

Re: [O] Check on empty does not work

2014-06-01 Thread Cecil Westerhof
2014-06-01 11:50 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I am trying the following: #+TBLFM: @-I$4..@+I$4 = if($3 == nan, string(), $3 - $2) ; %.1f and: #+TBLFM: @-I$4..@+I$4 = if($3 == , string(), $3 - $2) ; %.1f But in both case the fourth field is filled when the third

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Actually, I think there are two possible ways to handle this: 1. Add a new export (or something else) parameter which will wrap file contents within an export block relative to the current back-end. Unfortunately,

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Omid
Thank you for the patch, Achim. On 06/01/2014 05:26 AM, Achim Gratz wrote: Nicolas Goaziou writes: Thanks for the patch. However, I'd rather not allow arbitrary blocks around included files, as it can be the source of some headache (e.g., a quote block around an Org file containing a

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Achim Gratz
Nicolas Goaziou writes: I didn't like the wrap parameter because it mixes parsed blocks (e.g., wrap quote) and raw blocks (e.g., wrap html). It is important to know if the parser should parse the contents of the file or not. Therefore, the new syntax, if any, should make it clear. In the

Re: [O] Hiding checked items in a checkbox list (FR?)

2014-06-01 Thread Sergio Pokrovskij
Al == Alexis wrote: Al Sergio Pokrovskij writes: The next problem is that MobileOrg should respect the preliminary hiding done before the visit to the shop. I do not request that it hide the checked (= bought) items as well (actually I'd prefer it to leave them checked and

Re: [O] Check on empty does not work

2014-06-01 Thread Michael Brand
Hi Cecil On Sun, Jun 1, 2014 at 12:00 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2014-06-01 11:50 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I am trying the following: #+TBLFM: @-I$4..@+I$4 = if($3 == nan, string(), $3 - $2) ; %.1f and: #+TBLFM: @-I$4..@+I$4 = if($3 ==

Re: [O] Hiding checked items in a checkbox list (FR?)

2014-06-01 Thread Alexis
Sergio Pokrovskij writes: Yes (actually I have about 80 items in my Springpad list; if the full list consists of mere 10 items, it fits the screen of my smartphone, and there is no real need to hide the checked items). *nod* Fair enough; i was just making up some numbers in order to be

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nicolas Goaziou
Hello, Omid omidl...@gmail.com writes: I think #+INCLUDE: should be just that: Include whatever the user is asking to. No header arguments dumps the file in Org (as it does now), subject to the usual processing, and a header argument like html wraps it in the appropriate delimiter, subject

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: I didn't like the wrap parameter because it mixes parsed blocks (e.g., wrap quote) and raw blocks (e.g., wrap html). It is important to know if the parser should parse the contents of the file or not. Therefore, the new syntax, if

Re: [O] Check on empty does not work

2014-06-01 Thread Cecil Westerhof
2014-06-01 12:58 GMT+02:00 Michael Brand michael.ch.br...@gmail.com: On Sun, Jun 1, 2014 at 12:00 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2014-06-01 11:50 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I am trying the following: #+TBLFM: @-I$4..@+I$4 = if($3 == nan,

[O] Difference between two rows

2014-06-01 Thread Cecil Westerhof
I like to calculate in a table the difference between the value in a field in the current row and the previous field. How would I do that? Something like: |---+| | value | difference | |---+| |12 || |15 | 3 | |83 | 68 | |

Re: [O] Difference between two rows

2014-06-01 Thread Michael Brand
Hi Cecil On Sun, Jun 1, 2014 at 1:38 PM, Cecil Westerhof cldwester...@gmail.com wrote: I like to calculate in a table the difference between the value in a field in the current row and the previous field. How would I do that? Something like: |---+| | value | difference |

Re: [O] Difference between two rows

2014-06-01 Thread Cecil Westerhof
2014-06-01 13:57 GMT+02:00 Michael Brand michael.ch.br...@gmail.com: On Sun, Jun 1, 2014 at 1:38 PM, Cecil Westerhof cldwester...@gmail.com wrote: I like to calculate in a table the difference between the value in a field in the current row and the previous field. How would I do that?

Re: [O] Escaping again!

2014-06-01 Thread Gregor Zattler
Hi Bastien, * Bastien b...@gnu.org [30. May. 2014]: [...] For now description lists accept both - and +. I'm all for allowing only - so that we could use [...] in your example. What do you and others think? I'd like to be able to use a mix of - or + in list items as to indicate positive

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Achim Gratz
Nicolas Goaziou writes: As explained in this thread, it is not necessary to support: #+INCLUDE: file.ext wrap center I'm still not getting your argument or I misunderstand what you're trying to say. Using wrap should produce an export block and nothing else. So as long as there can be no

Re: [O] Difference between two rows

2014-06-01 Thread Michael Brand
Hi Cecil On Sun, Jun 1, 2014 at 2:24 PM, Cecil Westerhof cldwester...@gmail.com wrote: But what if I would want to know the difference between the previous filled one, divided by the distance? For example: |---+| | value | difference | |---+| |12 |

Re: [O] Escaping again!

2014-06-01 Thread Nicolas Goaziou
Hello, Gregor Zattler telegr...@gmx.net writes: I'd like to be able to use a mix of - or + in list items as to indicate positive respective negative aspects of something: * should org-mode support a mix of + and - as the first char in plain lists? + would be a great to indicate

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: I'm still not getting your argument or I misunderstand what you're trying to say. Using wrap should produce an export block and nothing else. So as long as there can be no export block named center, the INCLUDE above would simply raise a user-error

[O] Tests do not work

2014-06-01 Thread Cecil Westerhof
I saw my version was outdated (8.2.1), so I upgraded to 8.2.6. Seems to have gone OK, but when running: make test I get: install -m 755 -d /tmp/tmp-orgtest TMPDIR=/tmp/tmp-orgtest emacs -batch -Q --eval '(setq vc-handled-backends nil)' --eval '(add-to-list '''load-path ./lisp)' --eval

Re: [O] Difference between two rows

2014-06-01 Thread Cecil Westerhof
2014-06-01 15:18 GMT+02:00 Michael Brand michael.ch.br...@gmail.com: Hi Cecil On Sun, Jun 1, 2014 at 2:24 PM, Cecil Westerhof cldwester...@gmail.com wrote: But what if I would want to know the difference between the previous filled one, divided by the distance? For example:

Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-01 Thread Achim Gratz
Nicolas Goaziou writes: However, note that wrap is confusing because it sounds like Babel's keyword and yet does something different. I'm not wedded to the name, maybe export has a nicer ring to it (but that#s also been used differently in Babel, just like almost anything else you#d be able to

Re: [O] Export to iCalendar only not DONE, scheduled tasks?

2014-06-01 Thread Chris Poole
On Wed, May 14, 2014 at 11:31 PM, Arun Persaud apers...@lbl.gov wrote: had another look and org-export-filter-final-output-functions is the wrong function to use. ... So, I ended up solving my problem, via an alternative route. The code is here:

Re: [O] [bug] f36b19eef6 uses font-lock-ensure, which is only implemented in emacs-trunk

2014-06-01 Thread Achim Gratz
Bastien writes: I expected the compatibility alias to be available from Emacs trunk, but I should have checked. I don't have time to fix time right now, so if you can add it to org-compat.el, please go ahead. Otherwise I will look at this later on. Done in e6883dd03d. Regards Achim. --

Re: [O] Difference between two rows

2014-06-01 Thread Thierry Banel
Le 01/06/2014 13:38, Cecil Westerhof a écrit : I like to calculate in a table the difference between the value in a field in the current row and the previous field. How would I do that? Something like: |---+| | value | difference | |---+| |12 |

Re: [O] [bug] f36b19eef6 uses font-lock-ensure, which is only implemented in emacs-trunk

2014-06-01 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Done in e6883dd03d. Thanks! -- Bastien

Re: [O] Tests do not work

2014-06-01 Thread Bastien
Hi Cecil, Cecil Westerhof cldwester...@gmail.com writes: I saw my version was outdated (8.2.1), so I upgraded to 8.2.6. Seems to have gone OK, but when running:     make test I get: install -m 755 -d /tmp/tmp-orgtest TMPDIR=/tmp/tmp-orgtest emacs -batch -Q --eval '(setq

Re: [O] An org password manager

2014-06-01 Thread Bastien
Dear Jorge, jorge.a.alf...@gmail.com (Jorge A. Alfaro-Murillo) writes: This is my first time submitting a patch, so I do not know if this is the way I am supposed to do it. Yes, the commit message looks good. Can you resent the patch as an attachment? Simply create a dedicated branch from

Re: [O] latex markup in org?

2014-06-01 Thread John Kitchin
Maybe you can include the sty file as a code block that will be tangled before export. You should put that block in a section tagged no-export. Depending on your setup, you may need to make a code block to build your latex file and/or pdf to make sure the tangling happens. at the top keep this

Re: [O] Patch for testing `org-open-at-point'

2014-06-01 Thread Achim Gratz
York Zhao writes: Thank you very much for implementing this. Really appreciated. So do you think it is a good idea to add my test (the patch) now for testing this? Shouldn't the test check that the desired target is actually reached? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron

Re: [O] Implementing Reproducible Research

2014-06-01 Thread Thomas S. Dye
Aloha Christophe, Chapter 8, Reproducible Research for Large-Scale Data Analysis, by Holger Hoefling and Anthony Rossini uses Org mode for literate programming and for reproducible research. The article focuses on the challenges faced by a large-scale data analysis, where the full R code base

Re: [O] Tests do not work

2014-06-01 Thread Achim Gratz
Cecil Westerhof writes: find: `testing': No such file or directory That tells you that the testing directory doesn't exist. Since you seem to be trying the install from a distribution tarball, this is correct: there simply is no testing directory

Re: [O] Patch for testing `org-open-at-point'

2014-06-01 Thread Bastien
Achim Gratz strom...@nexgo.de writes: York Zhao writes: Thank you very much for implementing this. Really appreciated. So do you think it is a good idea to add my test (the patch) now for testing this? Shouldn't the test check that the desired target is actually reached? That would be

Re: [O] Tests do not work

2014-06-01 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Cecil Westerhof writes: find: `testing': No such file or directory That tells you that the testing directory doesn't exist. Since you seem to be trying the install from a distribution tarball, this is

[O] babel C, C++, D enhancement

2014-06-01 Thread Thierry Banel
Hi Bastien, hi all Here is a Babel enhancement for C, C++ and D languages - support for non-homogeneous tables (mixing numerics and strings) - support for table headers - easier iterating over a table - added some error handling - new D support for simple lists and vectors - new unit tests

[O] src blocks not fontified

2014-06-01 Thread Shiyuan
Hi, I am using Emacs 24.3 with the built-in org mode(7.9.3). The src code block is not fontified (Emacs is started with -Q option) #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC This is my first time to use org-mode, so I could miss some

Re: [O] src blocks not fontified

2014-06-01 Thread Omid
Hi Shiyuan, Add (setq org-src-fontify-natively t) to your .emacs. Omid Sent from my Emacs On 06/01/2014 06:13 PM, Shiyuan wrote: Hi, I am using Emacs 24.3 with the built-in org mode(7.9.3). The src code block is not fontified (Emacs is started with -Q option) #+BEGIN_SRC

[O] Remove the build-in orgmode

2014-06-01 Thread Shiyuan
Hi, I updated Org-mode from ELPA. If I start emacs normally, M-x org-version does show the new version(8.2.6). But if I start emacs with -Q, emacs will still run the built-in version(7.9.3). This is not convenient for debugging purpose. Is there anyway to remove the built-in version 7.9.3

Re: [O] src blocks not fontified

2014-06-01 Thread Shiyuan
That solves the problem. Thanks Omid. Should this be the default setup? It seems more nature to fontify the src block than not. Also, when I export the org file to html, the src block is not fontified in the resulting html webpage. Is there another option to turn this function on? Thanks. On

Re: [O] latex markup in org?

2014-06-01 Thread Steven Arntson
John Kitchin jkitc...@andrew.cmu.edu writes: Maybe you can include the sty file as a code block that will be tangled before export. You should put that block in a section tagged no-export. Depending on your setup, you may need to make a code block to build your latex file and/or pdf to make

[O] Preset filter sometimes persistent

2014-06-01 Thread Thomas Morgan
Hello, Org mode hackers, Here is a recipe for a bug on the maint branch that causes a preset tag filter to be carried over to another agenda view in some cases. 1. Change the load path setting in `setup.el'. 2. Start Emacs with `emacs -Q -l setup.el'. 3. Open a TODO list with `M-x org-agenda

Re: [O] Standard skipping conditions have no effect

2014-06-01 Thread Thomas Morgan
Attached are the files referred to in the bug report. Thomas Morgan t...@ziiuu.com writes: Hello, Org mode hackers, Here is a recipe for a bug on the maint branch that causes standard skipping conditions to have no effect. 1. Change the load path setting in `setup.el'. 2. Start Emacs

[O] Standard skipping conditions have no effect

2014-06-01 Thread Thomas Morgan
Hello, Org mode hackers, Here is a recipe for a bug on the maint branch that causes standard skipping conditions to have no effect. 1. Change the load path setting in `setup.el'. 2. Start Emacs with `emacs -Q -l setup.el'. 3. Customize the agenda commands with `M-x org-agenda C'. 4. Add a new

[O] gnuplot not working with babel

2014-06-01 Thread Lawrence Bottorff
I'm just starting out with babel and can't get the example code to run ( http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-4) : #+begin_src gnuplot :exports code :file file.png reset set title Putting it All Together set xlabel X set xrange [-8:8] set xtics -8,2,8 set

Re: [O] gnuplot not working with babel

2014-06-01 Thread Omid
Hello, For your second question, please see Easy Templates as one solution: http://orgmode.org/manual/Easy-Templates.html Omid Sent from my Emacs On 06/01/2014 10:48 PM, Lawrence Bottorff wrote: I'm just starting out with babel and can't get the example code to run

Re: [O] gnuplot not working with babel

2014-06-01 Thread Omid
And searching with the keywords from the error you're getting, your first problem is solved by installing gnuplot.el (to drive gnuplot inside Emacs): https://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00563.html Omid Sent from my Emacs On 06/01/2014 10:48 PM, Lawrence Bottorff wrote:

Re: [O] Tests do not work

2014-06-01 Thread Cecil Westerhof
2014-06-01 23:14 GMT+02:00 Bastien b...@gnu.org: Achim Gratz strom...@nexgo.de writes: Cecil Westerhof writes: find: `testing': No such file or directory That tells you that the testing directory doesn't exist. Since you seem to be