[O] following org links to gnus messages and window management

2014-03-19 Thread Alan Schmitt
Hello, I'm using escreen (http://www.emacswiki.org/emacs/EmacsScreen) to manage my windows in emacs, typically keeping gnus on screen 0, org agenda and related todo files on screen 2, and so on. When I follow a link in a task to a gnus file, this takes over the current frame, and when I'm done

Re: [O] [PATCH] Only set org-hide foreground if one is available

2014-03-19 Thread Bastien
Hi Nikolai, Nikolai Weibull n...@disu.se writes: Sorry, I realize that I was way too terse. No problem. Thanks for the detailed explanations, makes sense. I pushed your patch. Thanks, -- Bastien

Re: [O] [patch] capture property table-line-pos can be a function

2014-03-19 Thread Bastien
Hi Thomas, Thomas Holst thomas_ho...@gmx.de writes: I am sorry, I used =git format-patch= for the patches assuming all will go well. Here are both patches with rewritten commit messages. Hopefully I made them well. No problem -- the game now is to find the small differences between your

Re: [O] [PATCH] Fix clock table when there are links in headings.

2014-03-19 Thread Alexey Lebedeff
Hi Bastien, 2014-03-18 20:10 GMT+04:00 Bastien b...@gnu.org: Hi Alexey, Alexey Lebedeff bina...@gmail.com writes: Sorry, I failed to explicitly mention that it was in agenda clockreport. It was in the screenshot, but I forgot that clocktable is used in other places than agenda. You need

Re: [O] A JavaScript Org-mode parser I'm experimenting with

2014-03-19 Thread Bastien
Hi François, hi Masafumi, François Pinard pin...@iro.umontreal.ca writes: Just want to share that, for the last few days, I'm playing with a JavaScript Org-mode parser written by Masafumi Oyamada, found here: https://github.com/mooz/org-js Looks great! Thanks for this Masafumi. Might

Re: [O] [PATCH] Fix clock table when there are links in headings.

2014-03-19 Thread Bastien
Hi Alexey, Alexey Lebedeff bina...@gmail.com writes: But I don't want do disable linking agenda clocktable row to the original heading, it's very convenient. I just want it to look pretty, but the thing from the screenshot looks really ugly. Patch affects execution only when :link is true.

Re: [O] [patch] capture property table-line-pos can be a function

2014-03-19 Thread Thomas Holst
Hi Bastien, · Bastien b...@gnu.org wrote: Hi Thomas, Thomas Holst thomas_ho...@gmx.de writes: I am sorry, I used =git format-patch= for the patches assuming all will go well. Here are both patches with rewritten commit messages. Hopefully I made them well. No problem -- the game now is to

Re: [O] HTML table export options essentially undocumented

2014-03-19 Thread James Harkins
On Mar 18, 2014 4:45 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Did you try column groups? (info (org) Column groups) It is not back-end specific. No, I hadn't... I was in a rush and trying to do something that I thought would be simple (and just a quick and dirty one-off export). Even

Re: [O] Is there an environment for Org syntax?

2014-03-19 Thread Bastien
Hi Fletcher, Fletcher Charest fletcher.char...@gmail.com writes: When I use the edit buffer (by pressing C-c '), my Org syntax is indented properly (in accordance with org-indent-mode, which is set to t). The code block itself looks like this after editing: #+BEGIN_SRC org :exports code  

Re: [O] following org links to gnus messages and window management

2014-03-19 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: When I follow a link in a task to a gnus file, this takes over the current frame, and when I'm done dealing with the message, I have to winner-undo my way until I restore my window configuration. This is not very convenient. My

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Eric S Fraga
Luke Crook l...@balooga.com writes: I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: author #+LATEX_HEADER: \newcommand{\orgauthor}{author} [...] Works very well, apart from the duplication of author, email,

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Rasmus
Eric S Fraga e.fr...@ucl.ac.uk writes: Luke Crook l...@balooga.com writes: I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: author #+LATEX_HEADER: \newcommand{\orgauthor}{author} [...] Works very well,

Re: [O] HTML table export options essentially undocumented

2014-03-19 Thread Bastien
Hi James, James Harkins jamshar...@gmail.com writes: It may be useful to link to this from the page on tables in HTML export, then. I slightly enhance the Tables in HTML export section of the manual. Thanks, -- Bastien

Re: [O] Post() evaluates but fails in export

2014-03-19 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: The attached patch should fix the issue. Could you confirm it? I just tested and it fixes the issue. I'll Jarmo double-confirm this. (The patch does not apply on maint anymore though :/...) Thanks in advance for apply it! -- Bastien

Re: [O] following org links to gnus messages and window management

2014-03-19 Thread Alan Schmitt
Hi Bastien, Bastien b...@gnu.org writes: - if not, is there a way to copy a link then open it using the minibuffer (I would then do the switch to screen 0 manually)? This does not use the minibuffer but you could add that: (progn (org-next-link) (org-open-link-from-string

[O] why I got the message

2014-03-19 Thread Dillon Peng
hi, all my emacs is GNU Emacs 24.0.95.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.10), org is 8.2.5h when I used C-c | to add a table 5X2 as follows: | d | | | | | |---+---+---+---+---| | d | | | | | and place cursor at d in 1 x 1, and (1) press M-x

Re: [O] Problem with org-bibtex-read with fields type, key

2014-03-19 Thread Bastien
Hi Stefan, Stefan-W. Hahn i...@s-hahn.de writes: I have a little problem with org-bibtex function org-bibtex-read: My bibtex entries have the keyword type and key. When reading such an entry with org-bibtex-read I get an alist with the entries :type and :key each twice. Yes, I confirm the

Re: [O] verbatim and apostrophes

2014-03-19 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: A suggestion could be to allow any text inside the markers, except for the marker itself which would need to be escaped. Escaping could take the form of doubling the marker: ~foo bar~ -- foo bar ~foo ~~ bar~ -- foo ~ bar As

Re: [O] why I got the message

2014-03-19 Thread Dillon Peng
Bastien bzg at gnu.org writes: Hi Dilon, I cannot reproduce the problem. Please M-x org-version RET and report the *whole* indication, it might be a problem in your installation. I got the message when M-x org-version RET: Org-mode version 8.2.5h (8.2.5h-dist @

Re: [O] [patch][ox-html] Stylistic changes

2014-03-19 Thread Rick Frankel
On 2014-03-18 15:46, Rasmus wrote: Rick Frankel r...@rickster.com writes: On 2014-03-17 23:36, Rasmus wrote: When you refer above to utf-8 entities, do you mean the named html entities (e.g., lt;) or the actual utf-8 encoded characters? The latter. Do M-x describe-char on such an character.

Re: [O] why I got the message

2014-03-19 Thread Dillon Peng
hi, I figured out! after restart emacs with (require 'ox), I found a strange error message: Wrong type argument: integerp, (48 . 57) and the error message disapeared after updating emacs from 24.0.95-1 to 24.1-7, and M-S-left also works! thanks again!

Re: [O] [patch][ox-html] Support for level based containers

2014-03-19 Thread Rick Frankel
On 2014-03-18 15:41, Rasmus wrote: Rick Frankel r...@rickster.com writes: On 2014-03-17 23:31, Rasmus wrote: A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline. So, using this definition, in html5,

Re: [O] Incorrect hexification in URLs in LaTeX Export

2014-03-19 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Mar 18, 2014, at 17:24, R. Michael Weylandt michael.weyla...@gmail.com wrote: Can't comment on Andreas's issue about unescaping text when it's given to org already escaped. Hi Bastien, TLDR: remove ?\= from org-link-escape-chars. I looked at this again and I think I've stumbled on

Re: [O] Post() evaluates but fails in export

2014-03-19 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: (The patch does not apply on maint anymore though :/...) It never applied to maint. It was built on top of master. ISTR some features don't exist in maint (is it :post header?). Oh, yes, of course. Feel free to apply it on master

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Bastien
Hi Nicolas, thanks for the thorough answer, I agree. Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? Also, it seems that macros are only fontified in headlines and paragraphs, which matches the short

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Nicolas Goaziou
Bastien b...@gnu.org writes: thanks for the thorough answer, I agree. Champagne! ;) Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? The manual states: in paragraphs, verse blocks, table cells and some

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: thanks for the thorough answer, I agree. Champagne! ;) Hehe. Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? The manual

[O] Property EXPORT_OPTIONS ignored?

2014-03-19 Thread Robert Eckl
Hi, i'm trying to exclude one section from the toc Following http://orgmode.org/manual/Export-settings.html in following example section 2 shoud not appear in the toc, but it appears. #+OPTIONS: toc:t * Section 1 * Section 2 :PROPERTIES: :EXPORT_OPTIONS: toc:nil :END: What I'm missing? TIA,

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Bastien
Hi Karl, Karl Voit devn...@karl-voit.at writes: This should fold all defs. Unfortunately, this does not work at my side. Did I make a mistake or do I have to limit myself to matching comment lines only? simply turn on orgstruct-mode in a python buffer and try M-x org-cycle RET on a def: it

Re: [O] Property EXPORT_OPTIONS ignored?

2014-03-19 Thread Bastien
Hi Robert, Robert Eckl eck...@gmx.de writes: i'm trying to exclude one section from the toc Following http://orgmode.org/manual/Export-settings.html in following example section 2 shoud not appear in the toc, but it appears. #+OPTIONS: toc:t * Section 1 * Section 2 :PROPERTIES:

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Luke Crook
Rasmus rasmus at gmx.us writes: I've used this snip to recover such fields \makeatletter \let\Title\ at title \let\Author\ at author \let\Date\ at date \makeatother Obviously, this is only good for LaTeX. How would I implement this? Is including in the .tex file sufficient?

[O] bug#17040: 24.3.50; Emacs + Org mode hangs

2014-03-19 Thread Eli Zaretskii
From: Sebastien Vauban sva-n...@mygooglest.com Date: Wed, 19 Mar 2014 15:57:36 +0100 Anyway, here's the backtrace I got: Thanks for the effort, but as I said several times, such backtraces are not useful without the Lisp backtrace part. All I can say from this backtrace is that you were

[O] org-html-do-format-code: End of buffer

2014-03-19 Thread Andrey Tykhonov
When I export org-file to the HTML by means of C-c C-e h H (as HTML buffer) I get the following error: org-html-do-format-code: End of buffer and exporting doesn't finish (buffer with the result doesn't appear). Mentioned org-file is pretty simple: #+name: basic-python #+begin_src python

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Luke Crook
Eric S Fraga e.fraga at ucl.ac.uk writes: You could always use the new command in the org directive, assuming you only use LaTeX export: #+LATEX_HEADER: \newcommand{\orgauthor}{author} #+AUTHOR: \orgauthor This would avoid duplication. Brilliant!! Thank you.

Re: [O] mobile-org http links not recognized on iPhone

2014-03-19 Thread Chris Henderson
I've just tested this and you are right. If I follow the orgmode convention of http links and use the View in mobile-org, the links are clickable. But if I cut and paste a link like http://www.something.com in orgmode, it's not clickable in mobile-org View. I guess I'll have to follow the

[O] OrgStruct for Python source code

2014-03-19 Thread Karl Voit
Hi! I am evaluating methods to fold Python source code. I stumbled over orgstruct-mode which looks quite cool to me. My first test with (setq orgstruct-heading-prefix-regexp ^[ ]*##[ ]+\*[ ]) worked out of the box. Unfortunately, this attempt requires a comment linke for each Python-def

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-19 Thread Charles Berry
John Hendy jw.hendy at gmail.com writes: [deleted] I think the default behavior should be reverted, as tangling and exporting are two different things. When I tangle, I want to see the code blocks as they are in the org document (with possible variables and expansions) but not to create

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Karl Voit
* Bastien b...@gnu.org wrote: Hi Karl, Hi Bastien! simply turn on orgstruct-mode in a python buffer and try M-x org-cycle RET on a def: it will fold it. Oh, even better! :-) Thanks for the pointer! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs

Re: [O] Navigating from agenda causes incorrect expansion of children

2014-03-19 Thread Samuel Wales
I think there must be a bunch of us who are experiencing this, because I am too. The fix does not work for me. 3b is never shown. * test 1 *** 2a SCHEDULED: 2014-03-19 Wed * 3a * 3b *** 2b On 3/19/14, Bastien b...@gnu.org wrote: Hi Dan, you need to have (agenda t) in

Re: [O] Post() evaluates but fails in export

2014-03-19 Thread Nicolas Goaziou
Bastien b...@gnu.org writes: Oh, yes, of course. Feel free to apply it on master then. Done. Regards, -- Nicolas Goaziou

[O] Obsolete information in worg

2014-03-19 Thread Reuben Thomas
In this section: http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2 the information about yasnippet is out of date; more up-to-date information is available in the manual: http://orgmode.org/org.html#Interaction Hence, I suggest removing the references to yasnippet from the

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Nicolas Goaziou
Bastien b...@altern.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: As you noticed, secondary strings are omitted in the manual, but still valid locations: titles in headlines or inlinetasks, inline footnotes, and plain list item tags. Any reason not to mention secondary strings?

Re: [O] preview and default class [8.2.5h (release_8.2.5h-677-g55b0a3 @ /home/youngfrog/sourcetrees/org-mode/lisp/)]

2014-03-19 Thread Nicolas Richard
Hi Bastien, Mhh, yes, I'm for moving it to the previewing section. Do you want to get commit access so that you can fix this directly? Otherwise, just send a patch and I'll apply it. Thanks! Here's a patch. I can commit it if you like, but I don't want to do so without some review (it's

Re: [O] Obsolete information in worg

2014-03-19 Thread Bastien
Hi Reuben, Reuben Thomas r...@sc3d.org writes: In this section: http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2 the information about yasnippet is out of date; more up-to-date information is available in the manual: http://orgmode.org/org.html#Interaction Hence, I

Re: [O] Small bug in example code

2014-03-19 Thread Bastien
Reuben Thomas r...@sc3d.org writes: In the function org-toggle-iimage-in-org in the page http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2 the call (iimage-mode) needs to be (iimage-mode 'toggle), otherwise iimage-mode is only ever switched on. (iimage-mode does toggle

Re: [O] Post() evaluates but fails in export

2014-03-19 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: Oh, yes, of course. Feel free to apply it on master then. Done. Thanks, -- Bastien

Re: [O] Navigating from agenda causes incorrect expansion of children

2014-03-19 Thread Bastien
Samuel Wales samolog...@gmail.com writes: I think there must be a bunch of us who are experiencing this, because I am too. The fix does not work for me. 3b is never shown. * test 1 *** 2a SCHEDULED: 2014-03-19 Wed * 3a * 3b *** 2b This is not the same case: in Dan's example,

Re: [O] org-html-do-format-code: End of buffer

2014-03-19 Thread Bastien
Hi Andrey, Andrey Tykhonov atykho...@gmail.com writes: What is the problem? Why mentioned error occurs? How can I fix it? Please help. Can you reproduce the error with (setq debug-on-error t) and send us the backtrace? If you can do this from an uncompiled version of Org, that's even better.

Re: [O] Small bug in example code

2014-03-19 Thread Reuben Thomas
OK, I have commits ready to push as soon as you install my SSH key! On 19 March 2014 22:52, Bastien b...@gnu.org wrote: Reuben Thomas r...@sc3d.org writes: In the function org-toggle-iimage-in-org in the page http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2 the

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Rasmus
Luke Crook l...@balooga.com writes: Rasmus rasmus at gmx.us writes: I've used this snip to recover such fields \makeatletter \let\Title\ at title \let\Author\ at author \let\Date\ at date \makeatother Obviously, this is only good for LaTeX. How would I implement this? Is

Re: [O] org-html-do-format-code: End of buffer

2014-03-19 Thread Andrey Tykhonov
Hi Bastien! Bastien b...@gnu.org writes: Hi Andrey, Andrey Tykhonov atykho...@gmail.com writes: What is the problem? Why mentioned error occurs? How can I fix it? Please help. Can you reproduce the error with (setq debug-on-error t) and send us the backtrace? If you can do this from

Re: [O] Small bug in example code

2014-03-19 Thread Bastien
Reuben Thomas r...@sc3d.org writes: OK, I have commits ready to push as soon as you install my SSH key! Done, -- Bastien

Re: [O] Navigating from agenda causes incorrect expansion of children

2014-03-19 Thread Samuel Wales
for the first time in many, many years of HATING this behavior and trying to debug it and trying to defadvice around it, i have a lead on it. thank you. so where is the setting to show EVERYTHING? this is HUGE. On 3/19/14, Bastien b...@gnu.org wrote: Samuel Wales samolog...@gmail.com writes:

Re: [O] org-html-do-format-code: End of buffer

2014-03-19 Thread Bastien
Hi Andrey, Andrey Tykhonov atykho...@gmail.com writes: I've tried to reproduce with (toggle-debug-on-error) and now (setq debug-on-error t) but buffer with the backtrace doesn't appear. Maybe you need to try from a fresh Emacs session: in this case, just add (setq debug-on-error t) in your

Re: [O] Navigating from agenda causes incorrect expansion of children

2014-03-19 Thread Bastien
Samuel Wales samolog...@gmail.com writes: so where is the setting to show EVERYTHING? (add-hook 'org-agenda-after-show-hook 'show-all) :) -- Bastien

Re: [O] Namespace problem org-mode / Clojure

2014-03-19 Thread Soapy Smith
That's great! A big thanks to Bastien for fixing the elisp, and keeping Clojure code blocks working smoothly. Speaking of org-mode and Clojure... You may be interested in the recent Clojure org-mode postings at the Google group: https://groups.google.com/forum/#!topic/clojure/hWqPXn1_pK4

Re: [O] Navigating from agenda causes incorrect expansion of children

2014-03-19 Thread Samuel Wales
expands logbook, but i can take it from here. thank you! unfortunately, that is not a global solution as there are various other places where the same behavior occurs. On 3/19/14, Bastien b...@gnu.org wrote: Samuel Wales samolog...@gmail.com writes: so where is the setting to show

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Ilya Shlyakhter
On 3/19/2014 3:39 PM, Karl Voit wrote: I am evaluating methods to fold Python source code. simply turn on orgstruct-mode in a python buffer and try M-x org-cycle RET on a def: it will fold it. Another option is to use Thorsten Jolitz's excellent outshine mode (

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Ilya Shlyakhter
On 3/19/2014 9:19 PM, Ilya Shlyakhter wrote: Another option is to use Thorsten Jolitz's excellent outshine mode ( http://orgmode.org/worg/org-tutorials/org-outside-org.html ). I've written a small extension that allows it to fold language elements:

Re: [O] following org links to gnus messages and window management

2014-03-19 Thread Eric Abrahamsen
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Bastien, Bastien b...@gnu.org writes: - if not, is there a way to copy a link then open it using the minibuffer (I would then do the switch to screen 0 manually)? This does not use the minibuffer but you could add that: (progn

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-19 Thread Eric Schulte
Charles Berry ccbe...@ucsd.edu writes: John Hendy jw.hendy at gmail.com writes: [deleted] I think the default behavior should be reverted, as tangling and exporting are two different things. When I tangle, I want to see the code blocks as they are in the org document (with possible