Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Thorsten Jolitz tjol...@gmail.com writes: Thorsten Jolitz tjol...@gmail.com writes: due to the relatively frequent mismatches between language names extracted from major-mode names and language identifiers used by Org-Babel I try to build the definite translation alist between both names. To avoid checking myself by hand what ,--- | M-: major-mode RET `--- really returns in all those modes, I would like to ask those who actually use these languages for help. Here is the list of languages that needs to be completed: |+++-+--| | Language | Requirements | Identifier | M-: major-mode | checked? | |+++-+--| | ABC | abcm2ps, abc-mode | abc | | | too bad, that table did not make it to the mailing list keeping its format ... No worries. It did come through nicely formatted for me. [...] - Andreas
Re: [O] [bug] #+constants line has to be at column 0
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: Agreed, please go ahead, Done. Thanks! -- Bastien
Re: [O] Insert TODO Item at Bottom
Esben Stien b0ef at esben-stien.name writes: Hmm, to insert the subtree at the end of the parent subtree is not what I needed. I need a way to insert the new TODO at the bottom of inside the current node. F.ex take this tree: ** foo *** TODO 1 *** TODO 2 *** TODO 3 If I stand on foo and hit a key combination, I want to insert a new TODO at the bottom of the current node, so that it becomes TODO 4 Any way to do this? I'm not sure if this has changed in a more recent version (I'm on org 8.2.3, I think), but in my environment, C-RET on a headline inserts a new headline at the same level *and* skips over any subheadings at lower levels. That is: ** Headline (Point is here) *** TODO 1 *** TODO 2 If I hit C-RET with the point on the indicated line, then I get: ** Headline *** TODO 1 *** TODO 2 ** (Point is here) And from here, I need only to type M-right (demote the heading) and S-right (add TODO), producing: ** Headline *** TODO 1 *** TODO 2 *** TODO (Point is here) If I'm not mistaken, that matches the request: I have a new TODO headline, one level below the headline where I started, and after all of the existing subheadings. Including modifier keys, that's six keystrokes: C-RET M-right S-right, which hardly seems onerous enough to arouse much interest in various combinations of C-u with other commands. My brain is already full. I'd rather use combinations of simple commands I already know. (But I guess this violates one of org-mode's governing principles: If you need three commands to do it, why, we can cut that down to one command by adding umpteen modifiers somewhere. :-p ) For myself, I'll stick with the Occam's Razor solution... hjh
Re: [O] [bug] #+constants line has to be at column 0
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bastien b...@gnu.org writes: This is the same behavior than all #+ directives except these four: #+TITLE: #+AUTHOR: #+DATE: #+EMAIL: Fontification should tell you in all cases. Most user-defined keywords ignore indentation (e.g., #+LATEX_HEADER:, #+MACRO: ...). I think we should remove this historical limitation, as there is no reason to keep it any longer. The benefit is that such a change will be backward compatible. Nicolas, thanks for this. Works very well now. The fontification doesn't as I guess org-fontify-meta-lines-and-blocks-1 hasn't been updated. I suggest adding +constants: to the first cond entry in this function? Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] Strange newline characters in org-export-as-html
Hi Grant, I just tested the minimal example with Org 8.2.5h and fci-mode activated but didn't notice anything strange. Do you still have the problem with Org 8.2.5h? If so, can you give the full Org version by hitting M-x org-version RET ? Thanks, -- Bastien
Re: [O] [PATCH] Update documentation for :exports (applicable to blocks only, not inline)
Hi John, John Hendy jw.he...@gmail.com writes: The trailing whitespace is the result of my texi ignorance. In a previous patch, Nicolas clarified that sentences needed to end in two spaces, and I add them at the end of my last sentence thinking they might be required to identify a new next bit. Understanding now that an endline/carriage return is sufficient and the spaces are not needed. Yes, two spaces are only needed to separate sentences on the same line. Thanks in advance for rewriting the patch, I know it can be tiresome. -- Bastien
Re: [O] Export problem with #+BEGIN_EXAMPLE block
Hi Christian, Christian Wittern cwitt...@gmail.com writes: However, with my own setup, which is loading 8.25a, I still get the disappearing example block. Please report the full Org version by hitting M-x org-version RET. Now I have no idea where to look for the culprit. Do you have any suggestion at how to proceed with the investigation? I am not consciously doing anything with the export settings at all, but I have used org for 8 years now, so something might have crept in during that time... I suggest to isolate all items of your Org configuration into a single separate file that you load from emacs.el, then bisect to find what can be wrong there. HTH, -- Bastien
Re: [O] Google + org-mode agenda? can it be done?
Hi Dror, Dror Atariah dror...@gmail.com writes: It seems like the function org-export-icalendar-combine-agenda-files (as discussed in the first link provided by @Matt) has to be replace with org-icalendar-combine-agenda-files when working with a new version of org. Am I right? Yes you are, -- Bastien
Re: [O] Single Search Hit and Quick Jump
Hi Esben, Esben Stien b...@esben-stien.name writes: Bastien b...@gnu.org writes: You can have a custom agenda command like this one: (setq org-agenda-custom-commands '((c Level 3 courge tags +LEVEL=3 ((org-agenda-regexp-filter-preset '(+corge)) Yeah, that works nicely;), but it's a hardcoded search string. How would you pass a search string, like C-c a s? I would not. I would simply have a +LEVEL=3 agenda view and manually do = search-string in the agenda buffer. `=' is certainly not known enough as a filter agenda command. I looked at org-search-view, but got lost pretty quick. Stay with us :) -- Bastien
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
Hi Charles, Charles Berry ccbe...@ucsd.edu writes: This seems to have broken org-edit-src-exit. :-( I cannot figure out what triggers it (hence no ECM), but I sometimes get an 'End of buffer' error from inside the while loop. I just pushed a fix. Can you confirm you don't see the error anymore? Thanks! -- Bastien
Re: [O] Inactive timestamps in planning types?
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: can inactive timestamps appear in - title-stamps (the timestamps attached to headlines) Yes. - planning types like deadline, scheduled and closed No. It does not seem to make much sense to me, but maybe I'm overlooking something. I'm not sure what does not make sense, if it's the question or the possible answers :) -- Bastien
Re: [O] Inactive timestamps in planning types?
Bastien b...@gnu.org writes: Hi Bastien, Thorsten Jolitz tjol...@gmail.com writes: can inactive timestamps appear in - title-stamps (the timestamps attached to headlines) Yes. - planning types like deadline, scheduled and closed No. Thx It does not seem to make much sense to me, but maybe I'm overlooking something. I'm not sure what does not make sense, if it's the question or the possible answers :) probably the question, but Org-mode allows to write down (and parse and export) combinations of timestamps and planning info that are correct syntax but make no sense either. In other contexts than plain-text buffers one would probably restrict possible user-input to what makes sense, but its not always obvious what makes sense and what not with so many possibilities ... -- cheers, Thorsten
Re: [O] M-: (org-display-outline-path) doesn't work correctly
Thorsten Jolitz tjol...@gmail.com writes: Ok, I see ... that seems to be a common pattern in Org-mode to make functions behave differently if called (non-)interactively, that sometimes causes confusion when using M-: instead of M-x. Note that using M-: will always hide any (message foo) might have been called because M-: outputs the return value of the function. Usually you can recover those by inspecting the *Messages* buffer, but in this case org uses org-unlogged-message so you can't see it there either. Try this : M-: (prog1 (org-display-outline-path) (sit-for 2)) RET It shows the message (for up to 2 seconds), and then it is hidden by the return value (a string with properties) when the call to M-: terminates. -- Nico.
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: due to the relatively frequent mismatches between language names extracted from major-mode names and language identifiers used by Org-Babel I try to build the definite translation alist between both names. To avoid checking myself by hand what ,--- | M-: major-mode RET `--- really returns in all those modes, I would like to ask those who actually use these languages for help. Here is the list of languages that needs to be completed: I assume that checked means the language was checked in the mode (i.e., running the major-mode command)? Here are a few extra values. Regarding OCaml, a mode often used is tuareg-mode, but there are other modes for it. Since tuareg is a requirement, I'll assume we also mean the corresponding mode has to be used. |+++-+--| | Language | Requirements | Identifier | M-: major-mode | checked? | |+++-+--| | ABC| abcm2ps, abc-mode | abc| | | |+++-+--| | Asymptote | asymptote, asy-mode| asymptote | | | |+++-+--| | Awk| awk| awk| | | |+++-+--| | C | none | C | c-mode | X | |+++-+--| | C++| none | cpp| c++-mode| X | |+++-+--| | Calc | none | calc | calc-mode | X | |+++-+--| | Clojure| Clojure, Clojure Mode, | clojure| | | || CIDER, Leiningen || | | |+++-+--| | CSS| none | css| | | |+++-+--| | D | D | D | d-mode | X | |+++-+--| | Ditaa | ditaa (bundled with| ditaa | | | || Org-mode) || | | |+++-+--| | Dot| dot| dot| | | | (Graphviz) ||| | | |+++-+--| | Emacs Lisp | none | emacs-lisp | emacs-lisp-mode | X | |+++-+--| | Eukleides | eukleides | eukleides | | | ||| (contrib) | | | |+++-+--| | Fomus | fomus (music notation) | fomus | | | ||| (contrib) | | | |+++-+--| | Fortran| fortran| F90| | | |+++-+--| | Gnuplot| gnuplot, gnuplot-mode | gnuplot| | | |+++-+--| | Groovy | Emacs-Groovy-Mode | groovy | | | ||| (contrib) | | | |+++-+--| | Haskell| haskell, haskell-mode, | haskell| | | || inf-haskell, lhs2tex || | | |+++-+--| | J | J, j-mode | J | | | |+++-+--| | Java | java | java | | | |+++-+--| |
Re: [O] org-capture doesn't narrow correctly if :prepend is t
Hi Adam and Thomas, Thomas Proschinger thomas.proschin...@gmail.com writes: Carsten Dominik carsten.dominik at gmail.com writes: Hi Adam, it is in my queue, but I have not yet had time to look at it. - Carsten +1 for this issue. It's still there in 8.2.5h. Looking forward to a fix! This is now fixed, thanks! -- Bastien
Re: [O] `org-cycle-hook' vs `outline-view-change-hook'
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: Or should it work even for bigger files and there must be an error on my side (e.g. in loops/recursions)? I'm not sure how powerful Emacs is w.r.t. this, i.e. how easy it is to bring it to the its limits with such a hook that is triggered all the time. Maybe you can show us some code? The shortest the better. At least that's the way I may be able to help myself. Best, -- Bastien
Re: [O] Is anyone spending money for Org-mode?
Carsten Dominik carsten.domi...@gmail.com writes: I would like to pass donations Undoubtedly, to Nicolas Goaziou.
Re: [O] Is anyone spending money for Org-mode?
On 12/03/14 20:50, William Denton wrote: How much money is coming in? Might there be something that could be paid for that would be helpful, such as getting professionally done subtitles/captions on one of the videos? Or something else that's in the class of tasks that someone could volunteer to do but if it's possible to spend a bit of money to get it really well done then it ends up being worth it. I have no strong opinion about the money but wanted to mention this as a possible idea. My continuing thanks to Bastien, Nicholas, Carsten and everyone else for such amazing work on Org! Bill Just to throw in another possibility, what about helping to sponsor an org conference? Obviously not paying for a whole conference, but perhaps helping speakers to attend. Ian.
Re: [O] [PATCH] Fix clock table when there are links in headings.
Hi Bastien, 2014-03-03 16:32 GMT+04:00 Bastien b...@gnu.org: This screenshot https://www.dropbox.com/s/g3obxpigr8gg69f/-Org%20Agenda-%20-%20emacs_017.png shows how it looked before the patch. It's no good unless you have very good memory for numbers ) Thanks for the patch. `org-all-links-display-format' is a bit redundant with `org-link-prettify'. Would you mind rewriting the change using `org-link-prettify'? I can't figure out how to use 'org-link-prettify' function. It only accepts one link that is already parsed. But for clocktable whole heading string needs to be transformed, and it can contain multiple links. E.g. [[a][b]] and [[c][d]] must be transformed to b and d. 'org-all-links-display-format' does exactly this.
Re: [O] Inactive timestamps in planning types?
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: probably the question, but Org-mode allows to write down (and parse and export) combinations of timestamps and planning info that are correct syntax but make no sense either. Can you point at such a combinaison and at some real bug/problem that can emerge from it? Thanks in advance, -- Bastien
Re: [O] [bug] #+constants line has to be at column 0
Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: The fontification doesn't as I guess org-fontify-meta-lines-and-blocks-1 hasn't been updated. I suggest adding +constants: to the first cond entry in this function? this is now fixed in master -- *sorry* for not crediting you in the commit message, my memory thought Alan reported this. -- Bastien
Re: [O] Insert TODO Item at Bottom
Esben Stien b...@esben-stien.name writes: I wonder if my terminal blocks the shift: Yes it does :) -- Bastien
Re: [O] [PATCH] Fix clock table when there are links in headings.
Hi Alexey, I assumed you use the latest Org version, but maybe not. What does M-x org-version RET reports? Actually, my bracket links are displayed correctly in the clocktable (i.e. as bracket links, not with curly braces.) Maybe I'm missing something, -- Bastien
Re: [O] M-: (org-display-outline-path) doesn't work correctly
Nicolas Richard theonewiththeevill...@yahoo.fr writes: Thorsten Jolitz tjol...@gmail.com writes: Ok, I see ... that seems to be a common pattern in Org-mode to make functions behave differently if called (non-)interactively, that sometimes causes confusion when using M-: instead of M-x. Note that using M-: will always hide any (message foo) might have been called because M-: outputs the return value of the function. Usually you can recover those by inspecting the *Messages* buffer, but in this case org uses org-unlogged-message so you can't see it there either. Try this : M-: (prog1 (org-display-outline-path) (sit-for 2)) RET It shows the message (for up to 2 seconds), and then it is hidden by the return value (a string with properties) when the call to M-: terminates. Thanks for the hint, this does the job: #+begin_src emacs-lisp ( . (outshine-use-outorg (lambda () (message %s (substring-no-properties (org-display-outline-path 'WHOLE-BUFFER-P)) #+end_src only that promptly another message is shown (I can't use sit-for in the program): ,- | Wrote /home/my/tmpdir/myfile `- I have to get rid of that one ... -- cheers, Thorsten
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: due to the relatively frequent mismatches between language names extracted from major-mode names and language identifiers used by Org-Babel I try to build the definite translation alist between both names. To avoid checking myself by hand what ,--- | M-: major-mode RET `--- really returns in all those modes, I would like to ask those who actually use these languages for help. Here is the list of languages that needs to be completed: I assume that checked means the language was checked in the mode (i.e., running the major-mode command)? Exactly. There might actually be a mistake from me in the table, because I checked sometime ago and can't repeat the check right now: it should be ess-mode instead of ess? Here are a few extra values. Regarding OCaml, a mode often used is tuareg-mode, but there are other modes for it. Since tuareg is a requirement, I'll assume we also mean the corresponding mode has to be used. thank you, so I marked calc, latex, ocaml, and sh as cross-ckecked now, and unmarked R. Unfortunately the table arrives almost unreadable here, so I rather post the current state of the association list (; means cross-ckecked): #+begin_src emacs-lisp (defconst outorg-language-name-assocs '((abc-mode . abc) (asymptote-mode . asymptote) (awk-mode . awk) (c-mode . C); (c++-mode . cpp); (calc-mode . calc) ; (clojure-mode . clojure) (css-mode . css) (d-mode . D); (ditaa-mode . ditaa) (dot-mode . dot) (emacs-lisp-mode . emacs-lisp) ; (eukleides-mode . eukleides) (fomus-mode . fomus) (fortran-mode . F90) (gnuplot-mode . gnuplot) (groovy-mode . groovy) (haskell-mode . haskell) (j-mode . J) (java-mode . java) (javascript-mode . js) (julia-mode . julia) (latex-mode . latex); (ledger-mode . ledger) (lilypond-mode . ly) (lisp-mode . lisp) (make-mode . makefile) (mathomatic-mode . mathomatic) (matlab-mode . matlab) (maxima-mode . max) (mscgen-mode . mscgen) (tuareg-mode . ocaml) ; (octave-mode . octave) (org-mode . org); (oz-mode . oz) (perl-mode . perl) (picolisp-mode . picolisp) ; (plantuml-mode . plantuml) (python-mode . python) (ess . R) (ruby-mode . ruby) (sass-mode . sass) (scala-mode . scala) (scheme-mode . scheme) (shen-mode . shen) (sh-mode . sh) ; (sql-mode . sql) (sqlite-mode . sqlite) (tcl-mode . tcl)) Associations between major-mode-name and org-babel language names.) #+end_src -- cheers, Thorsten
Re: [O] [PATCH] org-plot: Handle explicit date/time index
Hi Yasushi, I applied the patch. Thanks for it. I slightly modified the commit message, please review it: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=e2b6c506 Let's see if other users of org-plot.el report problems. Thanks! -- Bastien
Re: [O] Exporting to multiple files
Hi Marcin, Marcin Borkowski mb...@wmi.amu.edu.pl writes: It occurred to me that I could just walk through the file, creating temporary buffers with my subtrees, demote them and export them one by one to HTML. This seems doable (and even not too complicated), but is there a better/simpler way, or has someone already invented that wheel? Well, no. I thought about it a while ago and ended up willing to competely rewrite ox-publish.el... so I stopped there :) -- Bastien
Re: [O] `org-cycle-hook' vs `outline-view-change-hook'
Bastien b...@gnu.org writes: Hi Bastien, Thorsten Jolitz tjol...@gmail.com writes: Or should it work even for bigger files and there must be an error on my side (e.g. in loops/recursions)? I'm not sure how powerful Emacs is w.r.t. this, i.e. how easy it is to bring it to the its limits with such a hook that is triggered all the time. Maybe you can show us some code? The shortest the better. At least that's the way I may be able to help myself. not so easy to build a MWE in that case, but probably the only way to get some help. I'll try ... -- cheers, Thorsten
Re: [O] Agenda with blocked tasks
Hi Karl, Karl Voit devn...@karl-voit.at writes: Is it possible to define an agenda that contains only items which are blocked by :BLOCKER:-conditions or similar? For sure! Why not simply check for the BLOCKER property? Otherwise, see the org-agenda-skip-* family. -- Bastien
Re: [O] M-: (org-display-outline-path) doesn't work correctly
Thorsten Jolitz tjol...@gmail.com writes: only that promptly another message is shown (I can't use sit-for in the program): sit-for was just to demonstrate the problem introduced solely by M-:. That problem is not present when using interactive commands (i.e. those a user can actually use), and no sit-for should be necessary in all pratical situations. ,- | Wrote /home/my/tmpdir/myfile `- Obviously you should find out what's writing to that file after your (message ...) statement. I'm not an outshine/outorg user, I have no idea what does it. -- Nico.
Re: [O] [PATCH] org-plot: Handle explicit date/time index
Hi Bastien, At Thu, 13 Mar 2014 12:58:00 +0100, Bastien wrote: I applied the patch. Thanks for it. I slightly modified the commit message, please review it: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=e2b6c506 No problem at all. Thanks, -- yashi
Re: [O] Exporting to multiple files
You could have a look at o-blog for example. It does something which is not too far from what you want (IIUC). It does it in a way similar to what you describe. Regards, Fabrice 2014-03-09 10:34 GMT+01:00 Marcin Borkowski mb...@wmi.amu.edu.pl: Dnia 2014-03-09, o godz. 02:34:09 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi all, I'd like to export an Org-mode file to /multiple/ HTML files. For instance, I might want to convert all first and second level headings to files, and third-level headings to h1, fourth-level ones to h2 inside these files etc. Is that possible? I looked into the docs, but didn't find anything like this. Of course, there's an issue of /naming/ these files. Basing the names on the text of the heading would be the best thing to have, but it's not strictly necessary for me - numbers or (as a /very last/ resort) some kind of SHA hashes might do as well. (In fact, I'd like to write a custom HTML exporter based on the HTML one, so that I'd be fine with some Elisp to do this as opposed to just setting some variables.) It occurred to me that I could just walk through the file, creating temporary buffers with my subtrees, demote them and export them one by one to HTML. This seems doable (and even not too complicated), but is there a better/simpler way, or has someone already invented that wheel? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University -- Fabrice Popineau - SUPELEC Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 --
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Thorsten Jolitz tjol...@gmail.com writes: thank you, so I marked calc, latex, ocaml, and sh as cross-ckecked now, and unmarked R. Unfortunately the table arrives almost unreadable here, so I rather post the current state of the association list (; means cross-ckecked): It's fine with gnus: as a matter of idle curiosity, what mail reader are you using? Nick
Re: [O] verbatim/code text and line breaks with auto fill mode
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: OTOH, `latex' back-end could remove newline characters from verbatim and code contents. Is it only for the LaTeX backend? Or something we can add to `org-export-before-processing-hook'. In any case, yes, would be great if you could fix this somehow. Thanks! -- Bastien
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Thorsten Jolitz wrote: |+++-+--| | shell | a shell| sh | | | |+++-+--| Regarding this one, I remember some posts saying `sh' was renamed into `shell', but I'm not sure anymore whether that was fully equivalent or only in some edge cases. Best regards, Seb -- Sebastien Vauban
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Thorsten Jolitz tjol...@gmail.com writes: Hi List, due to the relatively frequent mismatches between language names extracted from major-mode names and language identifiers used by Org-Babel I try to build the definite translation alist between both names. The `org-src-lang-modes' variable should hold this list, elements not in the list simply append -mode to the end of the source name. Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] Bug: org-catch-invisible-edits [8.2.5h (8.2.5h-30-gdd810b-elpa @ ~/.emacs.d/elpa/org/)]
Hi Paul, Paul Stansell paulstans...@gmail.com writes: Today I came across org-catch-invisible-edits, but I'm struggling to get it to work. Since I've never had it working it's possible that I'm misunderstanding it or doing something wrong, or maybe it's broken. In my .emacs file I put (setq org-catch-invisible-edits 'show) but both 'M-x query-replace' and 'M-x replace-string' still replace hidden strings in folded sections of an org file. The name of the option is a bit misleading: your setup will catch *insertions* not editions. To put it simply, it's only active when inserting a character, not when using general-purpose editing commands like replace-string. I'm not sure it's worth using another name, though. -- Bastien
Re: [O] Babel should not work in the subtree marked as not exported
So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, but wouldn't setting the :noeval property to yes and :export property to none on the subtree work? One may also want to COMMENT the subtree to inhibit it's export wholepiece (not just code blocks). Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] preview and default class [8.2.5h (release_8.2.5h-677-g55b0a3 @ /home/youngfrog/sourcetrees/org-mode/lisp/)]
Hi Nicolas, Nicolas Richard theonewiththeevill...@yahoo.fr writes: Also, it took me a lot of time to find out that org-format-latex-header was used for previewing latex fragments. I suggest that we mention it in the manual in (info (org) Previewing LaTeX fragments). It's already mentionned in (info (org) LaTeX fragments) in a footnote, but I think the variable must be found in the Previewing section too. Agreed. Here's a patch to do it, but maybe the whole footnote should be moved to the Previewing section instead ? 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! -- Bastien
Re: [O] how to force org-mode to interpret number as string
Stefan Huchler stefan.huch...@mail.de writes: So to complete your solution, is there a way to wrap around of all values in a table (or only on numbers)? something like: #tblfm: $3 = $3 (or for all columns?) Then I think I am satisfied ;) This may help: | a | 3 | |+---| | z3 | | #+TBLFM: @2$1='(concat z @1$2);L The quotes around @1$2 tells to use the @1$2 reference as a string in the sexp. If you remove them, you get an error. HTH, -- Bastien
Re: [O] Finer-grained control of published files
Hi Brett, Brett Viren b...@bnl.gov writes: What I hope for is something equivalent to git's .gitignore functionality where I can place, say, .orgignore files full of regexp patterns anywhere in my org source tree and have org-publish honor them. I like this idea. Is there anything in this direction? Please test the attached patch against the tip of the master branch and let me know if it works: it checks against a .oxignore file, one regexp on each line. If you find it useful, I'll commit this for the next version. Thanks, Changes in stash@{0}^2^..stash@{0} 1 file changed, 32 insertions(+), 19 deletions(-) lisp/ox-publish.el | 51 --- Modified lisp/ox-publish.el diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index ad8eb32..6f20151 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -435,37 +435,50 @@ This splices all the components into the list. retval)) (defun org-publish-get-base-files-1 - (base-dir optional recurse match skip-file skip-dir) + (base-dir optional recurse match skip-file-regexp skip-dir-regexp) Set `org-publish-temp-files' with files from BASE-DIR directory. If RECURSE is non-nil, check BASE-DIR recursively. If MATCH is non-nil, restrict this list to the files matching the regexp -MATCH. If SKIP-FILE is non-nil, skip file matching the regexp -SKIP-FILE. If SKIP-DIR is non-nil, don't check directories -matching the regexp SKIP-DIR when recursing through BASE-DIR. +MATCH. If SKIP-FILE-REGEXP is non-nil, skip file matching this +regexp. If SKIP-DIR-REGEXP is non-nil, don't check directories +matching the regexp SKIP-DIR-REGEXP when recursing through BASE-DIR. (mapc (lambda (f) (let ((fd-p (file-directory-p f)) (fnd (file-name-nondirectory f))) (if (and fd-p recurse (not (string-match ^\\.+$ fnd)) - (if skip-dir (not (string-match skip-dir fnd)) t)) + (if skip-dir-regexp (not (string-match skip-dir-regexp fnd)) t)) (org-publish-get-base-files-1 - f recurse match skip-file skip-dir) + f recurse match skip-file-regexp skip-dir-regexp) (unless (or fd-p ;; this is a directory - (and skip-file (string-match skip-file fnd)) + (and skip-file-regexp (string-match skip-file-regexp fnd)) (not (file-exists-p (file-truename f))) (not (string-match match fnd))) - (pushnew f org-publish-temp-files) - (let ((all-files (if (not recurse) (directory-files base-dir t match) - ;; If RECURSE is non-nil, we want all files - ;; matching MATCH and sub-directories. - (org-remove-if-not - (lambda (file) - (or (file-directory-p file) - (and match (string-match match file - (directory-files base-dir t) - (if (not org-publish-sitemap-requested) all-files - (sort all-files 'org-publish-compare-directory-files) + (let* ((oxi (expand-file-name (concat base-dir .oxignore))) + reoxi + (notmatch (when (file-exists-p oxi) + (with-temp-buffer + (insert-file-contents oxi) + (goto-char (point-min)) + (while (re-search-forward ^\\(.+\\)$ nil t) + (if ( 0 (length (org-trim (match-string 1 + (push (match-string 1) reoxi + (if reoxi (mapconcat 'identity reoxi \\| + (all-files (if (not recurse) + (directory-files base-dir t match) + ;; If RECURSE is non-nil, we want all files + ;; matching MATCH and sub-directories. + (org-remove-if-not + (lambda (file) + (or (file-directory-p file) + (and match (string-match match file + (directory-files base-dir t + (all-files2 (org-remove-if (lambda (file) + (and notmatch (string-match notmatch file))) + all-files))) + (if (not org-publish-sitemap-requested) all-files2 + (sort all-files2 'org-publish-compare-directory-files) (defun org-publish-get-base-files (project optional exclude-regexp) Return a list of all files in PROJECT. @@ -512,7 +525,7 @@ matching filenames. org-publish-temp-files)) (org-publish-get-base-files-1 base-dir recurse match ;; FIXME distinguish exclude regexp - ;; for skip-file and skip-dir? + ;; for skip-file-regexp and skip-dir-regexp? exclude-regexp exclude-regexp) (mapc (lambda (f) (pushnew -- Bastien
Re: [O] Bug: Failure to Tangle Source Block without Header [8.2.5h (8.2.5h-30-gdd810b-elpa @ /Users/sean/Dropbox/.emacs.d/elpa/org-20140303/)]
Hi Sean, Sean Allred seall...@smcm.edu writes: With the following file: #+BEGIN_SRC org ,#+BEGIN_SRC sh :tangle test.sh ./test ,#+END_SRC ,* header #+END_SRC calling `org-babel-tangle` fails with stack trace: Fixed, thanks. -- Bastien
Re: [O] feature request: agenda time stamp manipulation
Hi Tory, torys.ander...@gmail.com (Tory S. Anderson) writes: I've written the following code/function which seems to fulfill my needs in the agenda to be able to manipulate plain time stamps in the same way we can manipulate deadlines and schedules, so that entries added with i can then be customized to a particular hour, or be otherwise altered. Hopefully it will be of use to others. Thanks -- if you want, you can add this to http://orgmode.org/worg/org-hacks.html Just send me your public key and I'll give you write access to the Worg repository, which consists in Org pages that you simply edit and publish on the server. Best, -- Bastien
Re: [O] Bug: org-element-parse-buffer doesn't work in 8.2.5h [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/sindikat/.emacs.d/elpa/org-20140303/)]
Hi, sindi...@mail36.net (sindi...@mail36.net) writes: Create an org-mode buffer that contains at least one headline. Example: --- text * headline --- Run `(org-element-parse-buffer)'. The following error will pop up: I cannot reproduce this, from the maint or the master branch. -- Bastien
Re: [O] Namespace problem org-mode / Clojure
Hi, Soapy Smith soapy-sm...@comcast.net writes: I installed the update and ran Volker's test code. It works! The namespace is preserved from block-to-block. Thank you Bastien! You're welcome! I experimented with the :session option, however, I am now not sure I understand how it is supposed to work. Me neither :) I see there are discussions on the cider-emacs mailing list about session-handling for cider -- let makes sure someone there can test sessions in Org Babel and report any problem or possible enhancement. Thanks in advance, -- Bastien
Re: [O] fontification of blocks inside blocks
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: I've just had to write an org block inside another org block, which looks like this: #+attr_latex: :options {0.5\textwidth} #+begin_column #+begin_src ocaml let o1 = object method m = 0 method p = foo end;; #+end_src #+end_column Unfortunately when I do so I lose the nice fontification of the ocaml code inside the inner block. Is there a way to get it back? Well, that's a long awaited ... no. I guess it would somehow make sense, but the fontification engine is complex enough not to try to implement such nested fontification. But maybe some Emacs angel can pass by and implement this. -- Bastien
Re: [O] org-element-context doesn't parse consistently link with spaces
Hi Nicolas, Nicolas Richard theonewiththeevill...@yahoo.fr writes: Could you review this ? thanks. Applied, thanks! -- Bastien
Re: [O] Issue using [:exports both] for inline R code?
Hi John and Eric, Eric Schulte schulte.e...@gmail.com writes: Inline code blocks were provided to allow results of code block execution to be placed /inline/ within textual elements such as paragraphs or lists. They are not designed to support code export. The manual should be updated to make this limitation clear. I'm not familiar enough with inline code blocks to update the documentation myself, can someone take care of providing a patch for this? Thanks, -- Bastien
[O] change JS CSS paths when publishing?
Hi, I've been using ox-deck to export my lectures as slides. Internet connectivity in one of my lecture halls is a little unreliable, so I keep a local copy of deck.js (which contains js and css files) on my laptop. Without those files, the slideshow just exports as plain HTML. I would like to provide those lectures on the web for my students. (Ideally, in fact, I would like to provide a couple of versions of each lecture: one deck slideshow, one plain html, and maybe one pdf or odt version.) Howver, the deck publish ocmmand writes paths to the local copies of deck's css and js files. I would like to rewrite these paths in the published files, to use the version of deck on my server instead. So, my question: how can I rewrite those paths when I publish? I guess there are two possible ways: - defadvice on org-deck-publish-to-html? - use a :completion-function on the project definition? But honestly I have no experience with writing defadvices, and I am not sure how the completion-function is supposed to work (like, what arguments it takes). If anyone has done something similar, I would be be very grateful to hear about it! Thanks, Matt
[O] Remove redundant tags of headlines
Hello, FYI, the code to Remove redundant tags of headlines (see http://orgmode.org/worg/org-hacks.html#sec-1-8-1) is not functioning anymore. --8---cut here---start-8--- (defun dmj/org-remove-redundant-tags () Remove redundant tags of headlines in current buffer. A tag is considered redundant if it is local to a headline and inherited by a parent headline. (interactive) (when (eq major-mode 'org-mode) (save-excursion (org-map-entries '(lambda () (let ((alltags (split-string (or (org-entry-get (point) ALLTAGS) ) :)) local inherited tag) (dolist (tag alltags) (if (get-text-property 0 'inherited tag) (push tag inherited) (push tag local))) (dolist (tag local) (if (member tag inherited) (org-toggle-tag tag 'off) t nil --8---cut here---end---8--- The problem seems to be that `org-map-entries' return a sequence of `nil'. I tried Edebugging it, but Edebug does not jump into the execution of the anonymous function... Best regards, Seb -- Sebastien Vauban
Re: [O] export ICal without evaluate code block
Hi Simon, Simon Thum simon.t...@gmx.de writes: Greppig org confirms icalendar is likely the only exception. While i find this surprising I guess there is a good reason, right? The good reason is that it's very unlikely for a user to need Babel evaluation in an org-mode buffer before exporting this buffer to a .ics file. But we may as well be wrong, of course. -- Bastien
Re: [O] Bug: horizontal line incorrectly drawn when numbers are prefixed with plus sign [8.2.5h (8.2.5h-6-g8e1386-elpa @ /Users/jason/.emacs.d/elpa/org-20140203/)]
Hi Jason, Jason Lewis ja...@dickson.st writes: If you enter a table like this in org, the +4 will get a strike-through line through it incorrectly. This is horrible but true. I don't have any fix for this right now. It just put more pressure on having the fontification engine right (and somehow get rid of `org-emphasis-regexp-components'.) -- Bastien
[O] Org plus contrib (and ditaa.jar)
An issue I've repeatedly encountered when trying to use Babel with ditaa is that ditaa.jar never seems to be available despite a few claims in the documentation that it is distributed with Org. Since I'm already trying to find the source of my octave issues from my previous post, I thought I may have installed Org improperly and decided to wipe out my .emacs.d and start over. I see that now Org has its own elpa repository (so far, so good), so I added it as my second (well, first in customize) package-archives entry after removing my .emacs.d directory to run my 24.3.1 build from my home directory (with .emacs modified only using Custom, and only containing standard org- and package- settings). I refreshed the package list, and installed the org-plus-contrib. Everything seemed successful (Total of 161 files compiled, 1 failed, 4 skipped); I got some errors in the install output buffer, but nothing mentioning ditaa explicitly except Compiling ... ob-ditaa.el. So now when I exit Emacs I expect the following command to produce output: find ~/.emacs.d/ -name ditaa.jar but it still does not. Lowering my expectations slightly, I hope for output from the following: find ~/.emacs.d/ -name contrib but still nothing. I assume I am installing Org improperly somehow, despite the fact that my version shows correctly: Org-mode version 8.2.5h (8.2.5h-32-g9639ed-elpaplus @ /home/pregier/.emacs.d/elpa/org-plus-contrib-20140310/) Am I missing something obvious? Phil
Re: [O] org-entities: why \lang instead of \langle?
Hi Anders, Anders Johansson mejlaande...@gmail.com writes: Maybe these aliases could also be added, like what is done for e.g. clubs: (langle \\langle t lang; ⟨) (rangle \\rangle t rang; ⟩) Indeed, done in master, thanks for this idea. -- Bastien
Re: [O] Remove redundant tags of headlines
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I tried Edebugging it, but Edebug does not jump into the execution of the anonymous function... Just give a name to the anonymous function... and you're back on edebugging. :) -- Bastien
Re: [O] change JS CSS paths when publishing?
Hi Matt, Matt Price mopto...@gmail.com writes: I would like to provide those lectures on the web for my students. (Ideally, in fact, I would like to provide a couple of versions of each lecture: one deck slideshow, one plain html, and maybe one pdf or odt version.) Howver, the deck publish ocmmand writes paths to the local copies of deck's css and js files. I would like to rewrite these paths in the published files, to use the version of deck on my server instead. IIUC, you can use something like this in your file: #+DECK_BASE_URL: http://some/server/url.js -- Bastien
Re: [O] [bug] #+constants line has to be at column 0
Bastien b...@gnu.org writes: Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: The fontification doesn't as I guess org-fontify-meta-lines-and-blocks-1 hasn't been updated. I suggest adding +constants: to the first cond entry in this function? this is now fixed in master -- *sorry* for not crediting you in the commit message, my memory thought Alan reported this. Works perfectly! Thanks. No worries re: credit. It's not something that matters. Org itself is thanks enough. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] [bug] Fontification of bold and italics
Hi Sébastien, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: With recent Org, sentences such as [1]: Explanation *answers the question why?*: show *why* the facts make sense. Explanation *makes people /care/*, so they are more motivated about learning more. Why would I want to do /that/? are badly fontified. Tested with a minimal Emacs file. I vaguely remember this is a side-effect of another choice we made on purpose, but if you can bisect and find the commit, I'd be interested. -- Bastien
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
|+++-+--| | Language | Requirements | Identifier | M-: major-mode | checked? | |+++-+--| [...] |+++-+--| | Dot| dot| dot| | | | (Graphviz) ||| | | |+++-+--| I have (add-to-list 'org-src-lang-modes '(dot . graphviz-dot)) in my customisations for this and the graphviz-dot-mode.el file comes with the emacs-goodies-el package in Debian. There may be another dot mode around? -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] Octave/Matlab Code Export Issue?
Phil Regier preg...@math.ku.edu writes: I'm having trouble with Octave export, and I am not quite sure where to look. In an Org file I have the following: #+BEGIN_SRC octave a = [1;3;5;7;9] b = [2;4;6;8] ans=a; #+END_SRC octave When exporting to LaTeX I get the following: \#+BEGIN\_SRC octave a = [1;3;5;7;9] b = [2;4;6;8] ans=a; \#+END\_SRC octave Remove octave from the #+end_src line. There should be nothing else on that line. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] Octave/Matlab Code Export Issue?
Wow; I'm embarrassed. Thanks so much for the assist; terribly sorry to spam the list with such a simple error. X( Phil - Original Message - From: Eric S Fraga e.fr...@ucl.ac.uk To: Phil Regier preg...@math.ku.edu Cc: emacs-orgmode@gnu.org Sent: Thursday, March 13, 2014 11:08:36 AM Subject: Re: [O] Octave/Matlab Code Export Issue? Remove octave from the #+end_src line. There should be nothing else on that line. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] [Bug] marking repeating task done destroys property/logbook drawers
Hi Matt, Matt Lundin m...@imapmail.org writes: When I mark a repeating task done (with the settings in the minimal.el file below), org mangles the :LOGBOOK: and :PROPERTY: drawers when trying to insert a :LAST_REPEAT: property. I can't reproduce this. Karl can, so there is something weird here. I am using... - Emacs version: 24.3.1 - Org-mode version: 8.2.5h Can you use M-x org-version RET (or C-u M-x org-version RET to insert the output in your mail) ? Running edebug suggested that org-entry-put (which is invoked by org-auto-repeat-maybe) places the :LAST_REPEAT: in the wrong place. However, I couldn't discern why, since invocations of org-entry-put otherwise seem to work fine. Thanks for any further investigation, it's hard to know what can be wrong without being to reproduce this. -- Bastien
Re: [O] Octave/Matlab Code Export Issue?
Phil Regier pregier at math.ku.edu writes: I'm having trouble with Octave export, and I am not quite sure where to look. In an Org file I have the following: #+BEGIN_SRC octave a = [1;3;5;7;9] b = [2;4;6;8] ans=a; #+END_SRC octave Instead try this: --8---cut here---start-8--- #+NAME: abc #+BEGIN_SRC octave a = [1;3;5;7;9] b = [2;4;6;8] ans=a; #+END_SRC --8---cut here---end---8--- Note that the #+END_SRC line has no trailing language nor anything else: 14.1 Structure of code blocks = Live code blocks can be specified with a `src' block or inline.(1) The structure of a `src' block is #+NAME: name #+BEGIN_SRC language switches header arguments body #+END_SRC HTH, Chuck
Re: [O] bug in org-store-link? (was bug in org-create-link)
mirko mirko.vuko...@gmail.com writes: I wrote the incorrect function name. This is about org-store-link in org.el, not org-create-link. This should be fixed now, thanks for reporting this. -- Bastien
[O] special table from clock
Hi there, I know, this is a very special question, but I hope you have some ideas about that. I'd like to create a table from my org file appointments: Table for March 2014 | Day | Kind | Eltern | Familie | km | |-+--++-+| | 1 | | 4 | 3 | 32 | | 2 | || || | 3 |2 || || | 4 |6 || 4 | 32 | | | || || This is where Day is the day of the month, Kind, Eltern, Familie are something like categories the appt belongs to, maybe not categories but subcategories. km is the distance of driving for that job. The count below the subcategories are not hours, that are quater hours, so a number of 4 tells me it is one hour. At the end of the table I'd like to have it summarized per subcategory and the km. But I'm unsure how to store the data for that in my APPT entries: I could use properties (but how?) and I would really like to use the CLOCK entries for calculating the times. Thanks for your Ideas, Martin
Re: [O] Bug: org-catch-invisible-edits [8.2.5h (8.2.5h-30-gdd810b-elpa @ ~/.emacs.d/elpa/org/)]
Hi Bastien, Thanks for that info on org-catch-invisible-edits. It wasn't clear to me as the documentation implies that it helps when you inadvertently edit an invisible part of the buffer, but it seems that the edits have to be results of key presses (not yanks or replaces, etc). I'm not sure how useful I would find the function. I'd like a way to stop any edits (including yanks etc.) on invisible parts of a buffer. I experimented with org-catch-invisible-edits by typing and deleting characters in folded sections of a simple org file. It seem to work well if the insertions or deletions occur at one hidden level down. In this case it opens the folded section and shows the edit after a short delay. But if I edit or delete two hidden sections down it doesn't seem to work properly as it only open the first hidden section and so the edit, which is another level down, is not shown. For example, for the org file below, editing the line level 2 when both Section 1 and Section 2 are folded (hidden) causes only Section 1 to be unfolded with Section 2 still folded inside it. Thus, the edits are not visible. * section 1 level 1 ** section 2 level 2 Kind regards, Paul On 13 March 2014 14:24, Bastien b...@gnu.org wrote: Hi Paul, Paul Stansell paulstans...@gmail.com writes: Today I came across org-catch-invisible-edits, but I'm struggling to get it to work. Since I've never had it working it's possible that I'm misunderstanding it or doing something wrong, or maybe it's broken. In my .emacs file I put (setq org-catch-invisible-edits 'show) but both 'M-x query-replace' and 'M-x replace-string' still replace hidden strings in folded sections of an org file. The name of the option is a bit misleading: your setup will catch *insertions* not editions. To put it simply, it's only active when inserting a character, not when using general-purpose editing commands like replace-string. I'm not sure it's worth using another name, though. -- Bastien
Re: [O] Org release 8.2.5g (minor release from maint)
Hi Bastien, Bastien b...@gnu.org writes: Any reason why Debian developers are not using 24.3 as the stable version of Emacs? It has been out for now one year. Well, the way that the Debian stable release works is that they ship the latest stable version of a package which is available at the time of their pre-release freeze. After the freeze, packages only receive updates for critical bugs and security fixes for the lifetime of the release. The current release (Debian Wheezy) was frozen on 2012-06-30 and released 2013-05-04. I think Emacs 24 probably just barely missed the Wheezy release, as 24.1 was released 2012-06-10. My guess is that the Debian maintainers either didn't consider 24.1 stable enough yet for Wheezy, or they just weren't sure and didn't want to take the chance. The next release (Jessie) is not yet frozen, and some post-24 Emacs will certainly be included when it is. Anyway, I don't think Org should be beholden to distributions' release cycles in general. Users like me who are happy with an older Emacs but want a newer Org are probably a very small minority (but speak up if you're out there!). And for these users, it is probably only a minor inconvenience to have to install cl-lib or a newer Emacs. That is at least true in my case. If introducing a dependency on cl-lib right now will be the best thing for Org, I have no real objections; if it can be put off for a while without significant cost, that would be great, but it isn't necessary. Best, Richard
Re: [O] Bug: Org-agenda-files replaces directories with explicit filenames [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/sindikat/.emacs.d/elpa/org-20140303/)]
Hi, sindi...@mail36.net (sindi...@mail36.net) writes: I have a directory tasks/ in org-agenda-files variable. When i add a file to org-agenda-files variable through C-c [ command (org-agenda-file-to-front), the directory path is replaced by paths of the files, that are currently in that directory. It is bad, because when i add some files to tasks/ later on, they will not contribute to my agenda. Actually I don't understand the problem: the command adds a file to the list of agenda files, not the entire directory. Adding the entire directory is not what most users would want. What I'm missing? This question was also posted on StackOverflow: http://stackoverflow.com/questions/10569746/org-agenda-files-replaces-directories-with-explicit-filenames Copied the comment there. -- Bastien
Re: [O] Org plus contrib (and ditaa.jar)
This actually does help; thanks! I had tried copying ditaa.jar from ditaa SVN, but that still did not work; copying from Org git, however, works like a charm. Not sure why the first method failed, but I like this approach better anyway, so I'm happy. Thanks again! Phil - Original Message - From: Eric S Fraga e.fr...@ucl.ac.uk To: Phil Regier preg...@math.ku.edu Cc: emacs-orgmode@gnu.org Sent: Thursday, March 13, 2014 11:10:54 AM Subject: Re: [O] Org plus contrib (and ditaa.jar) I have no idea whether it is included in the elpa distribution or not. If you track the git version, it is most definitely there under .../contrib/scripts/ditaa.jar. Just in case this helps! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] Octave/Matlab Code Export Issue?
Phil Regier preg...@math.ku.edu writes: Wow; I'm embarrassed. Thanks so much for the assist; terribly sorry to spam the list with such a simple error. X( No need to be embarrassed. This error catches me out *all* the time which is why I know what to look for. It would probably help if the fontification didn't make it look like a valid line or if a check for unmatched #+begin_src lines were performed. The latter, however, is non-trivial I believe. Anyway, glad it works. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-709-g99f1ff
Re: [O] [RFC] Association list between major-mode-names and babel identifiers
Sebastien Vauban sva-n...@mygooglest.com writes: Thorsten Jolitz wrote: |+++-+--| | shell | a shell| sh | | | |+++-+--| Regarding this one, I remember some posts saying `sh' was renamed into `shell', but I'm not sure anymore whether that was fully equivalent or only in some edge cases. Currently a bash code block will be run with bash, and a shell code block will be run with sh. I believe both will use shell-script-mode. Best regards, Seb -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] Change key binding in math mode only
Hi Rafael, Rafael rvf0...@gmail.com writes: I remembered that Org knows already if point is inside a math expression, so by looking at the source I came up with the following, that seems to work. Sorry for the noise. That's not noise... #+BEGIN_SRC emacs-lisp (defun org-cdlatex-real-numbers () (interactive) (if (org-inside-LaTeX-fragment-p) (insert \\mathbb{R}) (insert R) )) (add-hook 'org-mode-hook (lambda () (local-set-key (kbd R) 'org-cdlatex-real-numbers ))) #+END_SRC ... that's a contribution -- thanks for it! -- Bastien
Re: [O] Org release 8.2.5g (minor release from maint)
Hi Richard, Richard Lawrence richard.lawre...@berkeley.edu writes: Bastien b...@gnu.org writes: Eric Schulte schulte.e...@gmail.com writes: Great, so should Org-mode require cl-lib and stop supporting the following functions? I guess so. But I'm unclear yet whether this removes compatibility with older Emacsen. I'll check this. I believe it does remove compatibility with anything pre-24.0. At least, there is no cl-lib in GNU Emacs 23.4.1, which is the version currently in Debian stable. Any reason why Debian developers are not using 24.3 as the stable version of Emacs? It has been out for now one year. Otherwise yes, let's try to stay as much backward-compatible as possible. -- Bastien
Re: [O] bug in org-store-link? (was bug in org-create-link)
Yep, I saw that when I updated git recently. Thanks :-) On Thu, Mar 13, 2014 at 11:28 AM, Bastien b...@gnu.org wrote: mirko mirko.vuko...@gmail.com writes: I wrote the incorrect function name. This is about org-store-link in org.el, not org-create-link. This should be fixed now, thanks for reporting this. -- Bastien
Re: [O] Exporting to multiple files
Hi Marcin, Marcin Borkowski mb...@wmi.amu.edu.pl writes: I'd like to export an Org-mode file to /multiple/ HTML files. For instance, I might want to convert all first and second level headings to files, and third-level headings to h1, fourth-level ones to h2 inside these files etc. Is that possible? I looked into the docs, but didn't find anything like this. I once wrote a function that does something like this. (I haven't used it since the pre-8.0 days, though, so it probably needs updating.) It creates individual PDFs from the subtrees under a headline, then concatenates them into one PDF using an external program (pdftk). Naming is done based on the EXPORT_FILE_NAME property as usual. Maybe you can use it as a skeleton: #+BEGIN_SRC elisp ;; utilities for exporting the subtrees of a tree as individual PDFS ;; and as a single, concatenated PDF (defun org-export-individual-pdfs-and-concat () (interactive) (setq export-files nil pdf-files nil ; point must be in main tree to be exported (not a subtree) concat-pdf-name (get-property-or-fail (point) CONCATENATED_PDF_NAME)) (progn (org-map-entries (lambda () (setq org-map-continue-from (outline-next-heading)) (org-mark-subtree) ; org-map-entries positions point at the beginning of each subtree (if org-map-continue-from ; non-nil if outline-next-heading found a heading (let ((org-trust-scanner-tags t)) (push (get-property-or-fail (point) EXPORT_FILE_NAME) export-files))) (mapcar 'message (org-get-tags)) (org-export-as-pdf nil)) ; TODO: why doesn't this respect noexport tag? nil 'tree) (concat-pdfs (nreverse (mapcar 'tex-name-to-pdf-name export-files)) concat-pdf-name))) (defun get-property-or-fail (pom property) (or ; probably some opportunity for optimization here...see function ; documentation for org-map-entries (org-entry-get pom property) (error (format Entry at %s does not define property %s (org-heading-components) property (defun tex-name-to-pdf-name (filename) (concat (file-name-sans-extension filename) .pdf)) (defun concat-pdfs (in-files out-file) (shell-command (format pdftk %s cat output %s (mapconcat (lambda (s) s) in-files ) ; join pdf names with spaces out-file))) #+END_SRC Another option that occurs to me -- though it may not serve your needs -- is to export your Org file to texinfo format. I believe the texinfo compiler can then generate separate separate HTML files for the different sections in your .texi file. Might be worth a try. -- Best, Richard
Re: [O] [Bug] marking repeating task done destroys property/logbook drawers
Hi Bastien, Bastien b...@gnu.org writes: Hi Matt, Matt Lundin m...@imapmail.org writes: When I mark a repeating task done (with the settings in the minimal.el file below), org mangles the :LOGBOOK: and :PROPERTY: drawers when trying to insert a :LAST_REPEAT: property. I can't reproduce this. Karl can, so there is something weird here. I am using... - Emacs version: 24.3.1 - Org-mode version: 8.2.5h Can you use M-x org-version RET (or C-u M-x org-version RET to insert the output in your mail) ? Running edebug suggested that org-entry-put (which is invoked by org-auto-repeat-maybe) places the :LAST_REPEAT: in the wrong place. However, I couldn't discern why, since invocations of org-entry-put otherwise seem to work fine. Thanks for any further investigation, it's hard to know what can be wrong without being to reproduce this. This was a problem with org-element's cache. It was solved with the following commit: a8568372ad8bba841af7f7d1fdf9b64d38426c3a Here's the original post of the thread containing the solution: http://permalink.gmane.org/gmane.emacs.orgmode/83015 Matt
Re: [O] mark parent of current heading
On Wed, Mar 12, 2014 at 5:15 AM, Thorsten Jolitz tjol...@gmail.com wrote: Matt Price mopto...@gmail.com writes: is it possible to mark, not the current subtree, but one level up from the current subtree? I would like to add that level to the org bindings for expand-region, https://github.com/magnars/expand-region.el/blob/master/the-org-mode-expansions.el you are probably looking for something more sophisticated, but this (untested) snippet should do the job when you are on a subheadline: #+begin_src emacs-lisp (save-excursion (org-up-element) (org-mark-subtree))) #+end_src Thanks Thorsten, This is in fact almost exactly what I was looking for, but it seems expand-region needs something rather more sophisticated, I'll get back to the list when I have it figured out. Thank you! Matt
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
Bastien bzg at gnu.org writes: Hi Charles, Charles Berry ccberry at ucsd.edu writes: This seems to have broken org-edit-src-exit. I cannot figure out what triggers it (hence no ECM), but I sometimes get an 'End of buffer' error from inside the while loop. I just pushed a fix. Can you confirm you don't see the error anymore? Time to failure seems longer. But now I get an infinite loop. The error message is gone. C-g stops the loop, but attempting to exit via C-c ' re-indents the code and the loop starts again. Chuck
Re: [O] [Bug] marking repeating task done destroys property/logbook drawers
Matt Lundin m...@imapmail.org writes: This was a problem with org-element's cache. Okay, thanks for following up! -- Bastien
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
Charles Berry ccbe...@ucsd.edu writes: Time to failure seems longer. But now I get an infinite loop. Er, sorry for the confusion; should be fixed again. -- Bastien
Re: [O] Issue using [:exports both] for inline R code?
On Thu, Mar 13, 2014 at 10:03 AM, Bastien b...@gnu.org wrote: Hi John and Eric, Eric Schulte schulte.e...@gmail.com writes: Inline code blocks were provided to allow results of code block execution to be placed /inline/ within textual elements such as paragraphs or lists. They are not designed to support code export. The manual should be updated to make this limitation clear. I'm not familiar enough with inline code blocks to update the documentation myself, can someone take care of providing a patch for this? Wait, that's what this was for :) - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00445.html I'll re-do with changelog and no extraneous whitespace hopefully tonight. John Thanks, -- Bastien
Re: [O] Is anyone spending money for Org-mode?
Carsten Dominik carsten.domi...@gmail.com writes: Dear all, I am still receiving donations for Org-mode, even though right now I am only formally the maintainer of Org (it is very difficult to make time free for me, currently). I would like to pass donations on to someone here who has expenses related to Org, because this does not feel right anymore. We used to have to pay for webhosting (which was generously donated by Jason), but dreamhost is hosting us now for free. Therefore i am not aware of any costs beyond the $15/yr I am paying for the domain. Please let me know if you know a good way to spend donations at this moment. My suggestion would be to use the money to pay for enhancements to Org. Take a look at the list of projects for Org, find the most difficult and complex project(s), put the money into a fund to be given to the developer(s) who provide the best approach to solving the problems involved. Wasn't there a website somewhere that provided a means for managing this type of idea? (Pledgie?) -- David Masterson
Re: [O] Bug: Org-agenda-files replaces directories with explicit filenames [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/sindikat/.emacs.d/elpa/org-20140303/)]
Bastien b...@gnu.org writes: Hi, sindi...@mail36.net (sindi...@mail36.net) writes: I have a directory tasks/ in org-agenda-files variable. When i add a file to org-agenda-files variable through C-c [ command (org-agenda-file-to-front), the directory path is replaced by paths of the files, that are currently in that directory. It is bad, because when i add some files to tasks/ later on, they will not contribute to my agenda. Actually I don't understand the problem: the command adds a file to the list of agenda files, not the entire directory. Adding the entire directory is not what most users would want. What I'm missing? Actually, Bernt Hansen's paper suggests that it's easier to put directories into the org-agenda-files list so that he can just have a few places where all his agendas are kept and anytime he adds a new file to his list of agendas, he doesn't have to change his configuration and, so, doesn't forget the new file. -- David Masterson
[O] [ANN] ox-opml.el -- Export Org files to OPML
All, I just wanted to pass along a project I've been working on in the hope some of you find useful: https://github.com/edavis/org-opml ox-opml.el is an export backend that takes Org mode outlines and exports them to OPML. OPML is a standard file format used by RSS aggregators and note/outliner applications. I've tried dozens of outliner applications but none of them top Org mode for me. The only thing I needed was a way to export my Org notes to OPML. I couldn't find anything after looking around, so I decided to write my own exporter. This is my first elisp of any real complexity, but I'm pretty happy with how it turned out. I used the HTML and RSS export backends to get familiar with the export system. So, please, take it for a spin. I'm looking for any and all feedback/bug reports/pull requests. If there's enough interest, I'd love to see it eventually land in contrib. - Eric (PS: Please copy me on any replies as I'm not subscribed to the list. Thanks!)
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
Bastien bzg at gnu.org writes: Charles Berry ccberry at ucsd.edu writes: Time to failure seems longer. But now I get an infinite loop. Er, sorry for the confusion; should be fixed again. It is not. I am now back to getting the 'End of Buffer' msg Chuck
Re: [O] Issue using [:exports both] for inline R code?
John Hendy jw.he...@gmail.com writes: Wait, that's what this was for :) - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00445.html I'll re-do with changelog and no extraneous whitespace hopefully tonight. Okay, absolutely no hurry! And thanks in advance :) -- Bastien
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
Charles Berry ccbe...@ucsd.edu writes: Bastien bzg at gnu.org writes: Charles Berry ccberry at ucsd.edu writes: Time to failure seems longer. But now I get an infinite loop. Er, sorry for the confusion; should be fixed again. It is not. I am now back to getting the 'End of Buffer' msg Ok, let me take some fresh air and come back to this later on. -- Bastien
Re: [O] Is anyone spending money for Org-mode?
Here's an impractical option. I see roughly 280 different contributors to Org-mode. git log|grep ^Author|sed 's/^.*: //;s/.*$//'|less|sort|uniq|less Maybe buy every contributor an Org-mode mug? -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] [PATCH] org.el (org-delete-property): Remove bogus properties
Hi Bastien, I've pushed a bugfix related to the patch. `org-entry-delete' was being called with 3 args, although it takes 2. I hope I understood it correctly. Could you please check? regards, Oleh On Wed, Mar 12, 2014 at 7:22 PM, Bastien b...@gnu.org wrote: Hi Oleh, Oleh ohwoeo...@gmail.com writes: Can someone have a look at this patch and check it in? I applied a different patch, things are a bit more complicate: (org-get-category) always returns a non-empty string (at least after `org-refresh-category-properties' as been called once), while (org-entry-get (point) CATEGORY) is the real check we need to perform. Thanks for raising this! -- Bastien
Re: [O] Is anyone spending money for Org-mode?
Hi all, one question that was asked: How much donations come in? That varies. Some month it is $10, occasionally it can be $100. What Bastien and I have done in the past is use this money in a more or less private way. I think Bastien has at some point replaced his laptop in this way, and all in all I have done the same, I think. This felt OK previously, but it is not longer the right thing as far as I am concerned. I have seen a few good ideas here. 1. Send it to the FSF. That is a possibility, but lets first try to do something more Org specific 2. A Mug for every contributor. Stretches the available budget, and is work. We could make a list of contributors and start from the most commits or something. 3. Help organise a conference. That would be a very good goal. Are there any plans to organise a conference? 4. Redistribute to the most active developers for lighting up their day. I propose the following: Starting March 1, I will report here the donations I get once a month, and we will keep track of it and find a good way to spend it. So far this month: $66. Lets revisit the discussion in 2 or three months. Maybe by then there will be plans for a conference, if not, we see. - Carsten On Thu, Mar 13, 2014 at 8:55 PM, Eric Schulte schulte.e...@gmail.comwrote: Here's an impractical option. I see roughly 280 different contributors to Org-mode. git log|grep ^Author|sed 's/^.*: //;s/.*$//'|less|sort|uniq|less Maybe buy every contributor an Org-mode mug? -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
On Thu, 13 Mar 2014, Bastien wrote: Charles Berry ccbe...@ucsd.edu writes: Bastien bzg at gnu.org writes: Charles Berry ccberry at ucsd.edu writes: Time to failure seems longer. But now I get an infinite loop. Er, sorry for the confusion; should be fixed again. It is not. I am now back to getting the 'End of Buffer' msg Ok, let me take some fresh air and come back to this later on. Perhaps - (forward-char 1 + (forward-line 1 as the latter will not throw an error when (eobp) ? Chuck
Re: [O] [PATCH] org.el (org-delete-property): Remove bogus properties
Oleh ohwoeo...@gmail.com writes: I've pushed a bugfix related to the patch. `org-entry-delete' was being called with 3 args, although it takes 2. I hope I understood it correctly. Could you please check? Looks good, thanks for the fix, -- Bastien
Re: [O] [Patch] don't add indent for empty line when exiting, a code edit
On 13.03.2014 20:46, Bastien wrote: Ok, let me take some fresh air and come back to this later on. How about this: (while (re-search-forward \\(^\\).+ nil t) (replace-match indent nil nil nil 1))) -- Florian Beck
Re: [O] Babel should not work in the subtree marked as not exported
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, Thanks for jumping in. but wouldn't setting the :noeval property to yes and :export property to none on the subtree work? Well, the property-setting works, but that is really cumbersome. In a typical org file, it takes 5 keystrokes to toggle the :noexport: tag (C-c C-c n TAB RET). But I do not want to count the keystrokes it take to additionally set these properties. Just to confirm. This is what you suggest, correct? --8---cut here---start-8--- * test ** Not exported:noexport: :PROPERTIES: :noeval: yes :export: none :END: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- One may also want to COMMENT the subtree to inhibit it's export wholepiece (not just code blocks). This does not seem to work, as the test.png is also created here. Again, just to confirm. This is your suggestion, correct? --8---cut here---start-8--- * test ** COMMENT Not exported #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- So, my question to this thread is: What is the easiest way to disable a subtree during export completely so that also none of the code blocks is evaluated (regardless of its :session argument). Or even more precisely: Couldn't the COMMENT keyword do exactly that? I do not expect code from inside a COMMENT subtree to be considered during export. Regards, Andreas
Re: [O] verbatim/code text and line breaks with auto fill mode
Hello, Bastien b...@gnu.org writes: Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: OTOH, `latex' back-end could remove newline characters from verbatim and code contents. Is it only for the LaTeX backend? No idea. Or something we can add to `org-export-before-processing-hook'. Hook are usually for user consumption. There is probably a better way to handle it. In any case, yes, would be great if you could fix this somehow. We first need to know what is the problem. Does Org allow newline characters in verbatim objects? If it does, what backends do not support it? Regards, -- Nicolas Goaziou
Re: [O] Finer-grained control of published files
Bastien b...@gnu.org writes: Please test the attached patch against the tip of the master branch and let me know if it works: it checks against a .oxignore file, one regexp on each line. If you find it useful, I'll commit this for the next version. I had some unrelated trouble with the head of master so I applied your patch to the 8.2.5h tag. It applied cleanly with a little fuzz. It seems to work great! I played with various ways to ignore and couldn't make it fail. One thing, and I know it's going back on what I asked originally, but I wonder if file globs would be the more natural pattern matching here than regexp? Either way, this will really help publishing from my messy source directories Thanks! -Brett. pgpd7fBn1fVHN.pgp Description: PGP signature
Re: [O] Babel should not work in the subtree marked as not exported
On Mar 13, 2014 5:49 PM, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, Thanks for jumping in. but wouldn't setting the :noeval property to yes and :export property to none on the subtree work? Well, the property-setting works, but that is really cumbersome. In a typical org file, it takes 5 keystrokes to toggle the :noexport: tag (C-c C-c n TAB RET). But I do not want to count the keystrokes it take to additionally set these properties. Just to confirm. This is what you suggest, correct? --8---cut here---start-8--- * test ** Not exported :noexport: :PROPERTIES: :noeval: yes :export: none :END: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- One may also want to COMMENT the subtree to inhibit it's export wholepiece (not just code blocks). This does not seem to work, as the test.png is also created here. Again, just to confirm. This is your suggestion, correct? --8---cut here---start-8--- * test ** COMMENT Not exported #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- So, my question to this thread is: What is the easiest way to disable a subtree during export completely so that also none of the code blocks is evaluated (regardless of its :session argument). Or even more precisely: Couldn't the COMMENT keyword do exactly that? I do not expect code from inside a COMMENT subtree to be considered during export. Can we track down why I got different results for R vs. ditaa in my message above? Couldn't we be chasing our tails if this is ditaa specific? R is behaving like expected (no eval if tree marked noexport), ditaa is not. John Regards, Andreas
Re: [O] Babel should not work in the subtree marked as not exported
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, Thanks for jumping in. but wouldn't setting the :noeval property to yes and :export property to none on the subtree work? Well, the property-setting works, but that is really cumbersome. In a typical org file, it takes 5 keystrokes to toggle the :noexport: tag (C-c C-c n TAB RET). But I do not want to count the keystrokes it take to additionally set these properties. Not that bad C-c C-x p n RET yes, I get 8 to set noeval, if you've done it already in that Org file. You could also easily wrap this behavior into a function and bind that to a key-chord. Just to confirm. This is what you suggest, correct? --8---cut here---start-8--- * test ** Not exported :noexport: :PROPERTIES: :noeval: yes :export: none :END: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- One may also want to COMMENT the subtree to inhibit it's export wholepiece (not just code blocks). This does not seem to work, as the test.png is also created here. Again, just to confirm. This is your suggestion, correct? --8---cut here---start-8--- * test ** COMMENT Not exported #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- Close, I meant the following alternative --8---cut here---start-8--- * test ** COMMENT Not exported :PROPERTIES: :noeval: yes :END: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah --8---cut here---end---8--- So, my question to this thread is: What is the easiest way to disable a subtree during export completely so that also none of the code blocks is evaluated (regardless of its :session argument). My example immediately above. Or even more precisely: Couldn't the COMMENT keyword do exactly that? I do not expect code from inside a COMMENT subtree to be considered during export. No. This has been raised previously and there was a consensus that it is often desirable for code in a COMMENT section to be evaluated on export. Personally I often stuff code blocks into COMMENT sections which I want run as part of my publishing process (e.g., to create resources used in the exported document). Best, Regards, Andreas -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] change JS CSS paths when publishing?
Ooops, forgot to send to the list! Forwarding my last reply to Bastien, and then answering my own question below, sort of: On Thu, Mar 13, 2014 at 1:29 PM, Matt Price mopto...@gmail.com wrote: On Thu, Mar 13, 2014 at 11:57 AM, Bastien b...@gnu.org wrote: Hi Matt, Matt Price mopto...@gmail.com writes: I would like to provide those lectures on the web for my students. (Ideally, in fact, I would like to provide a couple of versions of each lecture: one deck slideshow, one plain html, and maybe one pdf or odt version.) Howver, the deck publish ocmmand writes paths to the local copies of deck's css and js files. I would like to rewrite these paths in the published files, to use the version of deck on my server instead. IIUC, you can use something like this in your file: #+DECK_BASE_URL: http://some/server/url.js I would like to use the local copies of the deck.js files when I simply export to deck; but server copies when I publish. So I think I would need a simple function like this that modifies the buffer before (or, I guess after!) it gets written to a *published* (but not *exported*) file: (defun mwp-update-published-paths () (interactive) (let ((case-fold-search t)) (goto-char (point-min)) (while (search-forward /home/matt/src/deck.js nil t) (replace-match http://sandbox.hackinghistory.ca/Tools/deck.js; t t I just am not quite sure how and when to run it, and what argument to pass it (like, can I do normal buffer operations, or do I need to operate on the file contents as a string or something?). I found an easy way around my problem, by writing my own trivial publishing function: --- (defun mwp-org-deck-publish-to-html (plist filename pub-dir) Publish an org file to deck.js HTML Presentation. FILENAME is the filename of the Org file to be published. PLIST is the property list for the given project. PUB-DIR is the publishing directory. Returns output file name. (let ((org-deck-base-url http://sandbox.hackinghistory.ca/Tools/deck.js/;)) (org-publish-org-to 'deck filename .html plist pub-dir)) ) --- Then I just set :org-publishing-function to mwp-org-deck-publish-to-html, and I'm all set. There are doubtless more elegant ways to do this but this will do for now. Now I just need to figure out a better way to manage images -- I like to keep them all in the same place, and I need to keep my course lectures in different directories, so it would be nice to be able to use absolute file links. But there's probably a way around that as well. For now I'm pretty happy! Thanks again, matt -- Bastien
Re: [O] Babel should not work in the subtree marked as not exported
how about call lines? to me, they should not run if they are not supposed to be exported. is this a bug? * babel should not export a call line via todo kw *** NEXT to reproduce set org-export-with-tasks to nil *** NEXT this should not run #+call: hi(a=2) *** hi #+name: hi #+begin_src sh :var a=1 echo hi $a #+end_src -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.