Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Sebastien Vauban
Hello Nicolas, Nicolas Goaziou wrote: Some points are still to be discussed: 1. What to do on node properties? I would opt for `forward-paragraph', to have something different than `next-line'. Otherwise, `C-down' and `down' would simply do the same thing. Not forbidden, but seems

[O] table as argument to code block : type of the elements

2013-09-12 Thread francois
Hello list, This code does not work because of automatic conversion from string to number in org-babel-read-table. #+TBLNAME: table_test | name | id | |---+-| | name1 | 034 | | name2 | 135 | | name3 | 1B5 | #+NAME: code_test #+BEGIN_SRC emacs-lisp :var table=table_test (setq myv )

Re: [O] table as argument to code block : type of the elements

2013-09-12 Thread francois
This code does not work because of automatic conversion from string to number in org-babel-read-table. I found a workaround changing the table to : #+TBLNAME: table_test | name | id| |---+---| | name1 | 034 | | name2 | 135 | | name3 | 1B5 | but I think inhibiting number

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Nicolas Goaziou
Hello, Jambunathan K kjambunat...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: Some points are still to be discussed: 1. What to do on node properties? 2. What to do on source blocks? Looks good to me. Should there be a pit-stop at #+END in the segment below.

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Nicolas Goaziou
Jambunathan K kjambunat...@gmail.com writes: Suvayu Ali fatkasuvayu+li...@gmail.com writes: And I agree with you, beginning of line is a good target column. On reading Nicolas's explanation, I agree too. This is better. The decision should be based on what the user would do after doing a

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Suvayu Ali
Hi Jambu, On Thu, Sep 12, 2013 at 02:58:02PM +0530, Jambunathan K wrote: Nicolas Goaziou n.goaz...@gmail.com writes: Jambunathan K kjambunat...@gmail.com writes: Suvayu Ali fatkasuvayu+li...@gmail.com writes: And I agree with you, beginning of line is a good target column. On

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: I don't understand. Are you talking about the error message? There is no canonical C-down position, so I'm a bit confused. Put your cursor on the blank line between. Do a C-down. You will see the cursor moving and also an error reported. So, the

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: Thanks. Take 2: Looks good. Less surprises. Some open questions... I have no preference one way or the other. 1. Seems to like beginning of line. May be it should do a back-to-indentation. It is disconcerting to have cursor rest on

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: Here's a first draft for the linear forward motion. cond: Symbol's function definition is void: org-forward-and-down-element

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
I will try out your changes later in the day... Meanwhile, I don't know what pre-order means. What about `org-flat-forward-element' By, flat or linear you really mean a serialized (or stringified) version of parse-tree. i.e., An Org buffer is really a serialized representation of the parse

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Jambunathan K kjambunat...@gmail.com writes: Seems to like beginning of line. For repated C-down motion, where the cursor rests within the element is immaterial. So the question is at what position the cursor should rest so that whatever becomes easy. Whatever could be: 1. editing. 2.

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Some suggestions: 1. Give a better name. Say pre-order traversal of element in the parse tree. [1] 2. Now if I M-h, C-x C-x and Deactivate mark, I essentially short-circuit the traversal of whole subtree rooted at point. There should be a convenient binding for it. Same

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
I am happy with whatever is the latest version. You may want to commit it.

Re: [O] Can I ask Which day is it? when filtering org-agenda views?

2013-09-12 Thread Jambunathan K
Nick Dokos ndo...@gmail.com writes: the date of the item should be available to the function as the value of the dynamically bound variable date, To whomsoever it may concern. http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00085.html

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Suvayu Ali fatkasuvayu+li...@gmail.com writes: And I agree with you, beginning of line is a good target column. On reading Nicolas's explanation, I agree too. This is better. The decision should be based on what the user would do after doing a C-down and C-up. If *you* use C-down and C-up

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: `org-forward-paragraph' is much better. As long as the docstring or comments mention that Org's notion of paragraph is much more nuanced or richer than a text-mode's notion of paragraph. OK. Suggestions welcome. Meanwhile, here is an updated

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: Some points are still to be discussed: 1. What to do on node properties? 2. What to do on source blocks? Looks good to me. Should there be a pit-stop at #+END in the segment below. --8---cut

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: It's a Sexp motion. Good opportunity to review the following bindings. C-c C-^ org-up-element C-c C-_ org-down-element Btw, C-M-p and C-M-n actually traverses the

Re: [O] Outline cycling does not preserve point's position

2013-09-12 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: Jambunathan K kjambunat...@gmail.com writes: Suvayu Ali fatkasuvayu+li...@gmail.com writes: And I agree with you, beginning of line is a good target column. On reading Nicolas's explanation, I agree too. This is better. The decision should be

[O] o-blog (help with autocompletions)

2013-09-12 Thread Catonano
Hello people, I'm using the org mode that comes bundled with the Emacs installation in Fedora 19, I think it's Emacs 24.2.x (I'm writing from another machine) I'm playing with o-blog (on top of org mode) and I'm editing the file sample.org (here

[O] [PATCH] Fix org-confluence-export-as-confluence

2013-09-12 Thread Chris Lowis
I ran into a Symbol's value as variable is void: external error with org-confluence-export-as-confluence using a recent checkout of org-mode on GNU Emacs 24.3.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37). The attached patch fixes it on my system. Cheers, Chris

Re: [O] LaTeX export: images subplots

2013-09-12 Thread Rasmus
Martin Leduc mart...@hotmail.com writes: The only solution I found is by using tables such as: #+CAPTION: Insert caption here. #+ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth} | [[pathtoimage]] | [[pathtoimage]] | | [[pathtoimage]] | [[pathtoimage]] | where the size of the images is

[O] How to avoid time part in date comparisons?

2013-09-12 Thread Sebastien Vauban
Hello, Suppose you want to make a list of tasks you will have to do tomorrow. The most logical expression would be SCHEDULED = tomorrow: --8---cut here---start-8--- (add-to-list 'org-agenda-custom-commands '(1 Tomorrow

Re: [O] How to avoid time part in date comparisons?

2013-09-12 Thread Sebastien Vauban
Sebastien Vauban wrote: Suppose you want to make a list of tasks you will have to do tomorrow. (add-to-list 'org-agenda-custom-commands '(1 Tomorrow tags-todo SCHEDULED=\+1d\ ((org-agenda-overriding-header Tomorrow))) t) However,

[O] [BUG] `org-agenda-sorting-strategy' does not work in `tags-todo'

2013-09-12 Thread Sebastien Vauban
Hello, The following agenda view is supposed to display the tasks by ascending _DEADLINE timestamp_. #+begin_src emacs-lisp (add-to-list 'org-agenda-custom-commands '(B Today tags-todo DEADLINE=\today\ ((org-agenda-overriding-header Today)

[O] Alfred workflow for org-capture

2013-09-12 Thread Robert P. Goldman
Does anyone have a workflow for the Alfred Mac app launcher that will interact with org-capture? I know there have been versions before that worked with Quicksilver, which is quite similar. Thought I would ask before trying to roll my own. Thanks!

Re: [O] [bug?][patch] Org LaTeX Fragments

2013-09-12 Thread Nicolas Goaziou
Hello, Rasmus ras...@gmx.us writes: Nicolas Goaziou n.goaz...@gmail.com writes: It's not about load time, but about compatibility with other packages. I think some of them don't coexist well with amsmath. amssymb and amstext are less demanding in that area. Except for the odd, typically,

Re: [O] [PATCH] Fix org-confluence-export-as-confluence

2013-09-12 Thread Nicolas Goaziou
Hello, Chris Lowis chris.lo...@gmail.com writes: I ran into a Symbol's value as variable is void: external error with org-confluence-export-as-confluence using a recent checkout of org-mode on GNU Emacs 24.3.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37). The attached patch fixes it

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Hello, Matt Price mopto...@gmail.com writes: One way to do this is to make a drawer. Unfortunately, from what I can tell, within a drawer it is not posible to use org structures like lists. Drawers can contain any structure but drawers and headlines. Regards, -- Nicolas Goaziou

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Thorsten Jolitz
Matt Price mopto...@gmail.com writes: or- mark certain elements (like a list or subheading) as not-for-export? Maybe using the :noexport: tag on a heading? -- cheers, Thorsten

Re: [O] Link with spaces does not export properly in html

2013-09-12 Thread Simon
Nicolas Goaziou n.goaziou at gmail.com Does anyone know how this issue can be resolved? This was fixed in 8.1 release. You need to update Org. Regards, Thanks very much Nicolas, I will update. Simon.

[O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
I'm trying to write my lectures entirely in org. I would like to just write them once, using the main org file for my notes, and an exported deck.js presentation for slides. However, I would like to include quite a number of notes to myself for each slide. One way to do this is to make a

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
On Thu, Sep 12, 2013 at 1:26 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Matt Price mopto...@gmail.com writes: One way to do this is to make a drawer. Unfortunately, from what I can tell, within a drawer it is not posible to use org structures like lists. Drawers can contain

Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-12 Thread Nicolas Goaziou
Hello, Rasmus ras...@gmx.us writes: So the question is should it be a default package? I think not. E.g. tabu isn't loaded. Amsmath isn't loaded if you generate a matrix. I think the tabu case (and longtable...) is different from rotating. No feature in Org requires tabu or longtable

Re: [O] removing Figure x from a caption

2013-09-12 Thread Eric S Fraga
Matt Price mopto...@gmail.com writes: sorry, another question whose answer I'm having trouble finding in the manual: is it possible to remove the text Figure X: from a caption defined with #+CAPTION: ? I'm just doing lecture slides, and the images are merely illustrative, labelling them

Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-12 Thread Rasmus
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Rasmus ras...@gmx.us writes: So the question is should it be a default package? I think not. E.g. tabu isn't loaded. Amsmath isn't loaded if you generate a matrix. I think the tabu case (and longtable...) is different from rotating.

Re: [O] removing Figure x from a caption

2013-09-12 Thread Rasmus
Matt Price mopto...@gmail.com writes: sorry, another question whose answer I'm having trouble finding in the manual: is it possible to remove the text Figure X: from a caption defined with #+CAPTION: ? I'm just doing lecture slides, and the images are merely illustrative, labelling them

Re: [O] Alfred workflow for org-capture

2013-09-12 Thread Haider Rizvi
Robert P. Goldman rpgold...@sift.info writes: Does anyone have a workflow for the Alfred Mac app launcher that will interact with org-capture? If Alfred can trigger an Applescript, I use the following with Quicksilver: Applescript: property eclient :

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: Well, it is to avoid that a new headline would be made inside a drawer, because it would violate Org syntax. But of course, it would be OK to insert an item. What would be a good solution? Maybe we better catch this problem in

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Correcting myself, Nicolas Goaziou n.goaz...@gmail.com writes: (defun org-meta-return (optional arg) Insert a new heading or wrap a region in a table. Calls `org-insert-heading' or `org-table-wrap-region', depending on context. See the individual commands for more information.

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Matt Price mopto...@gmail.com writes: inside a drawer, when I try to make a lit, org-meta-return doesn't seem to create a new ist item, but instead just indents the next line without also inserting a - . Is this a bug? THanks, I think it is a bug, indeed. There's this condition in

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Carsten Dominik
Hi Nicolas, this looks good to me, please apply it. Thanks - Carsten On 12.9.2013, at 21:41, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes: Well, it is to avoid that a new headline would be made inside a drawer, because it would

Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-12 Thread Carsten Dominik
On 12.9.2013, at 19:42, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Rasmus ras...@gmx.us writes: So the question is should it be a default package? I think not. E.g. tabu isn't loaded. Amsmath isn't loaded if you generate a matrix. I think the tabu case (and longtable...)

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
On Thu, Sep 12, 2013 at 1:16 PM, Thorsten Jolitz tjol...@gmail.com wrote: Matt Price mopto...@gmail.com writes: or- mark certain elements (like a list or subheading) as not-for-export? Maybe using the :noexport: tag on a heading? yes, that works! thank you! sorry I missed it in the manual.

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Michael Brand
Hi Carsten On Thu, Sep 12, 2013 at 9:13 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Well, it is to avoid that a new headline would be made inside a drawer, because it would violate Org syntax. But of course, it would be OK to insert an item. What would be a good solution? Maybe we

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Carsten Dominik carsten.domi...@gmail.com writes: Hi Nicolas, this looks good to me, please apply it. Done (in master). Regards, -- Nicolas Goaziou

[O] removing Figure x from a caption

2013-09-12 Thread Matt Price
sorry, another question whose answer I'm having trouble finding in the manual: is it possible to remove the text Figure X: from a caption defined with #+CAPTION: ? I'm just doing lecture slides, and the images are merely illustrative, labelling them Figure 1 is a bit grandiose. Thanks again!

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Carsten Dominik
On 12.9.2013, at 19:49, Nicolas Goaziou n.goaz...@gmail.com wrote: Matt Price mopto...@gmail.com writes: inside a drawer, when I try to make a lit, org-meta-return doesn't seem to create a new ist item, but instead just indents the next line without also inserting a - . Is this a bug?

Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-12 Thread Nicolas Goaziou
Rasmus ras...@gmx.us writes: It's tough. I've /never/ used neither wrapfig nor longtable. From a totally subjective point-of-view I'd certainly want to remove it! However, I wonder if this is the 'nicest' thing to do. Not everyone cares about LaTeX and not everyone cares to look into LaTeX

Re: [O] org-insert-heading rewritten from scratch

2013-09-12 Thread Carsten Dominik
Hi Michael, thanks for the patch - I think we will go with Nicolas' patch for fixing org-insert-heading. May I ask you to check if your tests still to the right thing, and resubmit the test patch? Many thanks in advance. - Carsten On 9.9.2013, at 22:37, Michael Brand

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Michael Brand
Hi Nicolas On Thu, Sep 12, 2013 at 10:35 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Done (in master). Thank you for this improvement. AFAIU org-in-drawer-p was introduced only for org-meta-return and can now be removed. Michael

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Carsten Dominik
On 12.9.2013, at 22:35, Nicolas Goaziou n.goaz...@gmail.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Nicolas, this looks good to me, please apply it. Done (in master). Thank you! - Carsten Regards, -- Nicolas Goaziou signature.asc Description: Message

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Nicolas Goaziou
Hello, Michael Brand michael.ch.br...@gmail.com writes: What is the plan with my patches here?: http://thread.gmane.org/gmane.emacs.orgmode/75367/focus=76221 I think the approach taken is wrong. But we should definitely keep the tests. Regards, -- Nicolas Goaziou

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Carsten Dominik
On 12.9.2013, at 21:18, Michael Brand michael.ch.br...@gmail.com wrote: Hi Carsten On Thu, Sep 12, 2013 at 9:13 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Well, it is to avoid that a new headline would be made inside a drawer, because it would violate Org syntax. But of course,

Re: [O] org-insert-heading rewritten from scratch

2013-09-12 Thread Michael Brand
Hi Carsten On Thu, Sep 12, 2013 at 10:20 PM, Carsten Dominik carsten.domi...@gmail.com wrote: thanks for the patch - I think we will go with Nicolas' patch for fixing org-insert-heading. May I ask you to check if your tests still to the right thing, and resubmit the test patch? Many

Re: [O] org-insert-heading rewritten from scratch

2013-09-12 Thread Carsten Dominik
Hi Michael, I have applied your testing patch, thank you! - Carsten On 12.9.2013, at 22:52, Michael Brand michael.ch.br...@gmail.com wrote: Hi Carsten On Thu, Sep 12, 2013 at 10:20 PM, Carsten Dominik carsten.domi...@gmail.com wrote: thanks for the patch - I think we will go with

[O] Bug in org-babel-tangle/org-babel-detangle

2013-09-12 Thread aditya siram
Hi all, Currently in HEAD a file tangled with org-babel-tangle does not detangle with org-babel-detangle. The problem is that the chunk delimiters in the tangled file are cushioned with empty lines whereas the same chunk in the Org file is not. So when 'org-babel-detangle' tries to determine the

[O] Connect to the ssh and execute any command

2013-09-12 Thread Andrey Tykhonov
Hi all! During last several days I was trying to implement quite simple script which: 1. Creates new buffer with the shell (M-x shell) 2. Executes there ssh usern...@domain.com. As result -- the password prompt appears in the minibuffer. I manually input password. 3. Then script executes any

Re: [O] Connect to the ssh and execute any command

2013-09-12 Thread Eduardo Ochs
Hi Andrey, you can use eev - take a look at the demo that starts at 0:18 in this video here: http://www.youtube.com/watch?v=Lj_zKC5BR64 http://angg.twu.net/eev-videos/video4-eepitch.mp4 There are many things that I do in the server that hosts my home page by using this to set up a

Re: [O] Connect to the ssh and execute any command

2013-09-12 Thread Eric Schulte
If you want an Org-mode solution, you could do the following. #+begin_src sh :dir /ssh:usern...@domain.org: ls -la #+end_src Andrey Tykhonov atykho...@gmail.com writes: Hi all! During last several days I was trying to implement quite simple script which: 1. Creates new

Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
Thanks Nicolas! Works great. Matt On Thu, Sep 12, 2013 at 4:35 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Nicolas, this looks good to me, please apply it. Done (in master). Regards, -- Nicolas Goaziou

[O] Visibility cycling for headlines with a specific tag ?

2013-09-12 Thread Martin Leduc
Hi, I am currently taking a lot of notes in an org file containing figures, equations, code snippets and text. In my project tree, I have several nodes containing supplementary material and code that will not be part of my final report exported as a LaTeX pdf. These nodes are tagged as

Re: [O] LaTeX export: images subplots

2013-09-12 Thread Martin Leduc
Thanks for all suggestions. I will probably stick with the solution of generating the panels with imagemagick and then including them as figures [[panel.png]]. Regards, Martin Date: Wed, 11 Sep 2013 22:19:57 -0500 Subject: Re: [O] LaTeX export: images subplots From: jw.he...@gmail.com To:

Re: [O] table as argument to code block : type of the elements

2013-09-12 Thread Nick Dokos
franc...@avalenn.eu writes: This code does not work because of automatic conversion from string to number in org-babel-read-table. #+TBLNAME: table_test | name | id | |---+-| | name1 | 034 | | name2 | 135 | | name3 | 1B5 | #+NAME: code_test #+BEGIN_SRC emacs-lisp :var

Re: [O] table as argument to code block : type of the elements

2013-09-12 Thread Nick Dokos
Bah, humbug: C-c C-c in the wrong buffer. Apologies for the contentless reply... -- Nick

Re: [O] table as argument to code block : type of the elements

2013-09-12 Thread Nick Dokos
franc...@avalenn.eu writes: This code does not work because of automatic conversion from string to number in org-babel-read-table. #+TBLNAME: table_test | name | id | |---+-| | name1 | 034 | | name2 | 135 | | name3 | 1B5 | #+NAME: code_test #+BEGIN_SRC emacs-lisp :var