Re: [O] Repeating the customization survey?
On 23.10.2013, at 21:25, Samuel Wales samolog...@gmail.com wrote: Will this use a function that people can run on their files? Not on files. Just in an emacs session, I will provide a command to run. - Carsten It /was/ interesting and a good workout for Org. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] Help on spreadsheet/calc references and improvements
Applied, thanks. Michael, would you like to have write access to the git repo? - Carsten On 23.10.2013, at 17:12, Michael Brand michael.ch.br...@gmail.com wrote: Hi Carsten, Bastien and Nicolas On Fri, Oct 18, 2013 at 9:07 PM, Michael Brand michael.ch.br...@gmail.com wrote: On Sun, Oct 6, 2013 at 7:03 PM, Michael Brand michael.ch.br...@gmail.com wrote: @maintainers: According to the below I tried to improve the Org manual with the attached patch, please review and apply. I would like to remind to review and apply the patch attached on [2013-10-06 Sun] to this thread (0001-Improve-manual-for-table-formulas.patch.txt). I would like to remind to review and apply the patch attached on [2013-10-06 Sun] to this thread (0001-Improve-manual-for-table-formulas.patch.txt). Michael
Re: [O] Drag images from Firefox to org-mode
Torsten Wagner writes: Thunderlink (a thunderbird plugin), instead is able to fetch the message-id, which is unique and independent on the mail position. If there is an interest to extend the drag and drop to emails, I could ask the developer of thunderlink if there is a way to change the drag and drop url to the message-id e.g. with the help of his plugin. Thunderlink itself works already quite well with org-mode. The newest version on git-hub allows to create direct org-mode links which one could simply copy and paste from the clipboard. Guess only a small amount of work would be needed to make it drag and drop ready too. That's interesting. Last year I finally switched to mu4e after many happy years with Thunderbird, in large part so I could finally store robust links to messages from Org. If there's a solution for Thunderbird I imagine many people would be glad to hear about it. (I don't think I'll go back, though; mu4e rocks.) Christian
Re: [O] make new links show as figures?
Hi Rick and John, r...@rickster.com writes: On 2013-10-22 21:53, John Kitchin wrote: Is it possible to define new links that would be rendered as inline images? I am imagining something like chemdraw:benzene.png which would show the benzene.png file inline, but when I click on it would open a chemdraw file for editing. unfortunately, it seems that `org-display-inline-images' has a hardcoded regex which searches only for =file:= links. Wouldn't a better way be to define =chemdraw= as a babel language? ob-plantuml, ob-dot and ob-mscgen are all examples of babel languages which generate images. This may be related to a question I had a couple weeks ago (see http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Alan
Re: [O] Repeating the customization survey?
Dear Carsten, Carsten Dominik writes: in 2009, we ran a customization survey, to figure out which variables are actually used by active Org-mode users. The results can be seen here: http://orgmode.org/worg/org-configs/org-customization-survey.html [...] Any takers? I would like to help. I'm not regular contributor to org-mode, so this means I don't have deep knowledge of the internal structure of org-mode. However, maybe this helps me to bootstrap myself into the project. Would you be so kind to tell me the name of the function that lists all the changed variables. Then I can play a little bit with that and see which additional information may be useful. Best regards -- Florian Adamsky http://florian.adamsky.it/
Re: [O] odt export with 'header'
Andreas Leha writes: Hi Christian, [bringing this back on the list] Oops. 3. Give the first page the page style OrgFirstPage. Which I had to create new. Is that intended? (...) It doesn't strictly have to be that style, or an Org-prefixed style at all, but it's strange that you don't have them. Yes, which style is used seems not essential (as it works with my self-created OrgFirstPage style). But I guess, that getting (at one point) orgmode to automatically assign the desired style to the first page will be only possible, if the intended style is used. Yes, very true. What is the value of the variable `org-odt-styles-file'? If nil, what is your `org-odt-styles-dir'? You should find an `OrgOdtStyles.xml' in one of those. That was the correct pointer. org-odt-styles-file is indeed nil, and org-odt-styles-dir is pointing to the wrong directory! I gather that it is derived from org-odt-styles-dir-list. That list contains the correct directory, but only at the third position. (...) Isn't that supposed to be set automagically during the install process? It is set when ox-odt is loaded, ultimately based on info from the install, I guess, but making a number of guesses about other possible locations to look. Org-odt-styles-dir will then look for the first directory in the list that contains the two required files (OrgOdtStyles.xml, OrgOdtContentTemplate.xml). The order of the directories listed shouldn't matter, as long as you don't have more than one directory containing files with the right names. Not sure I can help with this. I have now a (setq org-odt-styles-dir /home/andreas/local/emacs/org-mode-install/etc/styles) in my .emacs Is that the correct fix here? For now, if it works... 2. (The same happens for email) And if you enable #+OPTIONS: email:t ...? Does not seem to change anything here. Right. I can't actually find a useful field to insert for email, apart from InsertFieldsDocumentSenderE-mail, which is populated from the user data registered for LibreOffice on your user account, not from the document information, which does not contain email info. If you'll always be using the same email address, just include it; if you need to specify different email addresses for different documents, there may not be a very simple solution. 3. The date always shows the current date, but I'd like to see the #+DATE: value. [...] Try this: Insert Fields Other Tab:DocInformation Type:Created, Select:Date [...] The field you suggest seems to give me what it says: the creation date. Yes, try using a timestamp instead: #+DATE: [2013-10-10] That works, thanks. I do not always use a real date here (but sometimes also sth like '3rd meeting of ...'). But that is not a real problem -- I can easily restrict myself to using real dates only. Yes, I think that restriction will be necessary. Yours, Christian
Re: [O] odt export with 'header'
Uh, I said: Right. I can't actually find a useful field to insert for email, apart from InsertFieldsDocumentSenderE-mail, which is populated from the user data registered for LibreOffice on your user account, not from the document information, which does not contain email info. But actually, I *can* think of one simple but ugly workaround for now: anything you put in a #+DESCRIPTION line is included as Subject metadata, so you could put an email address there and insert a Subject field where you want to display it. As long as you don't actually need to use it for, well, a description of the subject. Yours, Christian
Re: [O] odt export with 'header'
Christian Moe m...@christianmoe.com writes: [...] 3. Give the first page the page style OrgFirstPage. Which I had to create new. Is that intended? (...) It doesn't strictly have to be that style, or an Org-prefixed style at all, but it's strange that you don't have them. Yes, which style is used seems not essential (as it works with my self-created OrgFirstPage style). But I guess, that getting (at one point) orgmode to automatically assign the desired style to the first page will be only possible, if the intended style is used. Yes, very true. With the correct (i.e. much more recent) style file I have this page style and, thus, this issue is solved. What is the value of the variable `org-odt-styles-file'? If nil, what is your `org-odt-styles-dir'? You should find an `OrgOdtStyles.xml' in one of those. That was the correct pointer. org-odt-styles-file is indeed nil, and org-odt-styles-dir is pointing to the wrong directory! I gather that it is derived from org-odt-styles-dir-list. That list contains the correct directory, but only at the third position. (...) Isn't that supposed to be set automagically during the install process? It is set when ox-odt is loaded, ultimately based on info from the install, I guess, but making a number of guesses about other possible locations to look. Org-odt-styles-dir will then look for the first directory in the list that contains the two required files (OrgOdtStyles.xml, OrgOdtContentTemplate.xml). The order of the directories listed shouldn't matter, as long as you don't have more than one directory containing files with the right names. Not sure I can help with this. Well, I do have more than one directory containing files with the right names, as emacs ships with its own orgmode and its own style files. These tend to be older than the orgmode (plus style files) I use (via git), so I will set the directory manually. (Even if I do not expect too much changes on these style files in the near future.) I have now a (setq org-odt-styles-dir /home/andreas/local/emacs/org-mode-install/etc/styles) in my .emacs Is that the correct fix here? For now, if it works... It does, so issue is solved for me. 2. (The same happens for email) And if you enable #+OPTIONS: email:t ...? Does not seem to change anything here. Right. I can't actually find a useful field to insert for email, apart from InsertFieldsDocumentSenderE-mail, which is populated from the user data registered for LibreOffice on your user account, not from the document information, which does not contain email info. If you'll always be using the same email address, just include it; if you need to specify different email addresses for different documents, there may not be a very simple solution. No worries. Most documents will use the same email address, so I hard coded that into my template. [...] All in all, I do have my template set up now. And besides the needed manual switch of the firstPage style it runs smoothly. Many thanks! That will be a time saver and even more a hassle saver for me in the future. Regards, Andreas
Re: [O] org-slidy and other HTML slideshows in org 8.x?
Jay Dixit jaydixit.w...@gmail.com writes: Hey everyone, I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy) to create HTML-based slideshows using org-mode, but it doesn't seem to be working. I'm not sure, but I suspect this is because the syntax for org's HTML export may have changed? Here are the options used by org-slidy. https://gist.github.com/7129945 I tried to fix it by taking out the -export from the commands, but it didn't work. Does anyone know the new correct syntax for these options? I'm having similar issues trying to use Takumi Kinjo's org-html5presentation (https://github.com/kinjo/org-html5presentation.el) and org-impress-js (https://github.com/kinjo/org-impress-js.el). I get errors like void-variable org-export-html-special-string-regexps, but I don't know enough to translate the commands into org-8ese. Does anyone know how to do this? Finally, are there other HTML-based slideshows that are compatible with org 8 besides s5 and deck.js? There's ox-reveal on Github. The author announced it a while back. https://github.com/yjwen/org-reveal/ The implementation has some limitations ATM but for simple stuff it's OK. E.g. I couldn't get inheritance between headlines working, the style of description lists is forced bold plus some other annoyances. I like reveal.js, but it lacks a good theme for more, say, 'academic' stuff, where text tends to be aligned to the left and description lists are typeset in a nicer manner etc. –Rasmus -- . . . The proofs are technical in nature and provides no real understanding.
Re: [O] Full org-mode on unrooted Android
Drat. I had that problem at the beginning too. I filed a bug report and a little later, things worked. I assumed they had fixed it. I'll have a look in that directory to see what's there. Meanwhile, perhaps a reboot, or a rerun the command download system in Zshaolin. On Tue, Oct 15, 2013 at 10:14 AM, Carsten Dominik carsten.domi...@gmail.com wrote: On 8.10.2013, at 12:36, Scot Becker scot.bec...@gmail.com wrote: Just a quick note to say that it's possible to get a full Emacs+org-mode on (unrooted) Android using an app called 'zshaolin'. You can either download the app from the Google Play store for approx $3 or download the toolchain and source from their website and compile it yourself (which I haven't tried). https://play.google.com/store/apps/details?id=org.dyne.zshaolinhl=en http://www.dyne.org/software/zshaolin/ (for source, follow links to their FTP site, about 2/3 down the page) Emacs is version 24.1.50. I just tried it, and when I start emacs I get an error message that the directory /sdcard/emacs/etc is not present. Emacs seems to look there for a file called charsets. Does anyone know what I am missing here? Thanks - Carsten The following needs to be added to the .zshrc for org-mode to work: export TMPDIR=${HOME}/tmp They only claim 'barebone' Emacs, and I haven't tested extensively to see what that means, but so far it works for me. I have no affiliation with the people at dyne.org, just happy to have working portable, org-mode. I use a Bluetooth keyboard with a 7 tablet on Android 4.3. It looks like compiling in this case may not be for the faint of heart, but if someone tries it, perhaps they can post any notes to the list here. Cheers, Scot
Re: [O] odt export with 'header'
Christian Moe m...@christianmoe.com writes: Uh, I said: Right. I can't actually find a useful field to insert for email, apart from InsertFieldsDocumentSenderE-mail, which is populated from the user data registered for LibreOffice on your user account, not from the document information, which does not contain email info. But actually, I *can* think of one simple but ugly workaround for now: anything you put in a #+DESCRIPTION line is included as Subject metadata, so you could put an email address there and insert a Subject field where you want to display it. As long as you don't actually need to use it for, well, a description of the subject. Wow, thanks for the hint. I've already included that into my template. Not for email, though, but for a description of the subject. I saw, that the keywords get exported, as well. I am (mis)using that for some kind of ID now. This is really nice. Thanks a lot, Andreas
Re: [O] trying to write a guidebook for students using org , need help with formating
Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] Beamer export: How to handle overlayarea
Hi James, On Thu, Oct 24, 2013 at 08:43:59AM +0800, James Harkins wrote: On Oct 24, 2013 12:58 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Headlines also support 'BEAMER_ACT' and 'BEAMER_OPT' properties. The former is translated as an overlay/action specification, or a default overlay specification when enclosed within square brackets. The latter specifies options for the current frame or block, and will automatically be enclosed within square brackets. That would help. I'd still like to see something more like a for-dummies explanation of passing options and arguments to LaTeX entities. I'm not saying the documentation is woefully inadequate (hardly that -- Suvayu's page got me rather far, and I got stuck on a couple of details). My experience was: it never would have occurred to me on my own to use the headline text for LaTeX code, and if there was a hint anywhere in the docs to suggest that this would be the way to go, I didn't find it. That's a conceptual leap that passed me by. I think I agree with you on this. It is a conceptual leap. I'll add a TODO item on that Worg page about these kind of tricks. Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] make new links show as figures?
On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: Hi Rick and John, r...@rickster.com writes: On 2013-10-22 21:53, John Kitchin wrote: Is it possible to define new links that would be rendered as inline images? I am imagining something like chemdraw:benzene.png which would show the benzene.png file inline, but when I click on it would open a chemdraw file for editing. unfortunately, it seems that `org-display-inline-images' has a hardcoded regex which searches only for =file:= links. Wouldn't a better way be to define =chemdraw= as a babel language? ob-plantuml, ob-dot and ob-mscgen are all examples of babel languages which generate images. This may be related to a question I had a couple weeks ago (see http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Indeed, currently this is not possible. I would be interested to get a patch to this effect. - Carsten Alan
[O] subscribing mailing list
Hi, I started using org mode. please put me on the mailing list. many thanks. Ming-Hong
Re: [O] Problem with automatic recursive adding of org-agenda-files
[I got a private reply from Tor Eriksson which was obviously meant for the list, so I am taking the liberty of reposting it here.] Tor Eriksson teriksson2...@gmail.com writes: Eric, Nick, Nicolas, thanks for the feedback. I tried (setq org-agenda-files '(~/org/)) instead, but on my installation it only finds files in this particular dir, not files in subdirs to that dir (which is what I want as well). Now, I tried C-c C-c (in org mode) right on the expression responsible for set org-agenda-files in my .emacs.d starterkit file (described in the earlier e-mail). To my surprise, this loads all the files into org-agenda-files correctly, including the file I renamed. Of course, if I now look in the agenda all my dates are there. However, when shuting off emacs and restarting it, it goes back to the old behaviour of loading all files except the newly renamed file. It is really strange. So, when starting from scratch via .emacs.d/starterkit, the file name of the new file fails to be set but all other file names are set correctly/pushed into org-agenda-files. When evaluating, with C-c C-c, the code in starterkit which loads the files to org-agenda-files, all files load correctly. Anyone having an explanation to this? If you have any suggestion for debugging please provide some short instruction, I am fairly good in programming in general but I am not super conversant with Emacs in particular. I suspect you are somehow setting the variable again later in your .emacs (or your custom file or ...), thereby overwriting its earlier value. Or there is something going on with starterkit perhaps, but somebody else will have to chime in here - I know nothing about starterkit. I would be really greatful if we could solve this. -- Nick
[O] reverse column or row.
Hello I think that one could solve the hebrew problem I mentioned yesterday, if there were a function like org-table-reverse-column (or org-table-reverse-row) acting like reverse-region but just for columns or rows. Unfortunately there is no function as reverse-rectangle or something like this to start with. Anybody has an idea? Thanks Uwe Brauer
Re: [O] Problem with automatic recursive adding of org-agenda-files
Nick, thanks for reposting and for your comment. Sorry, I mistakenly sent the e-mail to you instead of the list. Just a further comment on this problem: I have the impression that this behaviour of all files not being correctly added to the org-agenda-files started when I chose the option R[emove] file from org-agenda-files proposed by org. This occured when org tried to build the agenda but realised that one of the files named in org-agenda-files was not there. After that, it is my impression, the problems started. I have knowingly not made any alteration to the emacs init sequence of my emacs. Could there be something in the org code for agenda that spurs this behaviour? How could I debug this? /Tor 2013/10/24 Nick Dokos ndo...@gmail.com [I got a private reply from Tor Eriksson which was obviously meant for the list, so I am taking the liberty of reposting it here.] Tor Eriksson teriksson2...@gmail.com writes: Eric, Nick, Nicolas, thanks for the feedback. I tried (setq org-agenda-files '(~/org/)) instead, but on my installation it only finds files in this particular dir, not files in subdirs to that dir (which is what I want as well). Now, I tried C-c C-c (in org mode) right on the expression responsible for set org-agenda-files in my .emacs.d starterkit file (described in the earlier e-mail). To my surprise, this loads all the files into org-agenda-files correctly, including the file I renamed. Of course, if I now look in the agenda all my dates are there. However, when shuting off emacs and restarting it, it goes back to the old behaviour of loading all files except the newly renamed file. It is really strange. So, when starting from scratch via .emacs.d/starterkit, the file name of the new file fails to be set but all other file names are set correctly/pushed into org-agenda-files. When evaluating, with C-c C-c, the code in starterkit which loads the files to org-agenda-files, all files load correctly. Anyone having an explanation to this? If you have any suggestion for debugging please provide some short instruction, I am fairly good in programming in general but I am not super conversant with Emacs in particular. I suspect you are somehow setting the variable again later in your .emacs (or your custom file or ...), thereby overwriting its earlier value. Or there is something going on with starterkit perhaps, but somebody else will have to chime in here - I know nothing about starterkit. I would be really greatful if we could solve this. -- Nick
Re: [O] Problem with automatic recursive adding of org-agenda-files
Tor Eriksson teriksson2...@gmail.com writes: I have the impression that this behaviour of all files not being correctly added to the org-agenda-files started when I chose the option R[emove] file from org-agenda-files proposed by org. This occured when org tried to build the agenda but realised that one of the files named in org-agenda-files was not there. After that, it is my impression, the problems started. I don't remember how the Remove option work, but perhaps you should search for the string org-agenda-files in your .emacs (or init.el if you use that), perhaps it has sneaked in a custom-set-variables declaration. -- N.
Re: [O] make new links show as figures?
On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: Hi Rick and John, r...@rickster.com writes: On 2013-10-22 21:53, John Kitchin wrote: Is it possible to define new links that would be rendered as inline images? I am imagining something like chemdraw:benzene.png which would show the benzene.png file inline, but when I click on it would open a chemdraw file for editing. unfortunately, it seems that `org-display-inline-images' has a hardcoded regex which searches only for =file:= links. This may be related to a question I had a couple weeks ago (see http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Indeed, currently this is not possible. I would be interested to get a patch to this effect. Carsten- In terms of inlining images in the description portion per the linked posting, do you think that it should depended on the value if the =include-linked= argument? (IMHO no, since the default usage of `org-display-inline-images' doesn't set this argument). I would be glad to take a stab at this enhancement. John- In reviewing `org-display-inline-images', and the handling of org links in general, i see no safe (and not overly complex) way of making added link types expand inline images. In the case mentioned, i still feel that adding chemdraw as a babel language is the correct approach. However, if we add the expansion of images in the description, would that work: [[chemdraw:file.cdxml][file:file.png]] rick
Re: [O] subscribing mailing list
Homer MH Chen chen.ho...@gmail.com writes: Hi, I started using org mode. please put me on the mailing list. many thanks. Visit http://orgmode.org/community.html and click on the link to subscribe, then follow the directions. Nick
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] Problem with automatic recursive adding of org-agenda-files
Nicolas, thanks for the idea. That was exactly right. In my custom.el file, the org-agenda-files turned out to be set with a static value of some files. I don't know how it got there, but now I have deleted the entry in the custom.el file and everything is back in order. Many thanks for solving this problem; it feels great to be able to again use my system for monitoring dates for different set terms I closely have to follow. It would have been a mess should I had to reconstruct those dates some other way. Case closed! /Tor 2013/10/24 Nicolas Richard theonewiththeevill...@yahoo.fr Tor Eriksson teriksson2...@gmail.com writes: I have the impression that this behaviour of all files not being correctly added to the org-agenda-files started when I chose the option R[emove] file from org-agenda-files proposed by org. This occured when org tried to build the agenda but realised that one of the files named in org-agenda-files was not there. After that, it is my impression, the problems started. I don't remember how the Remove option work, but perhaps you should search for the string org-agenda-files in your .emacs (or init.el if you use that), perhaps it has sneaked in a custom-set-variables declaration. -- N.
Re: [O] Full org-mode on unrooted Android
On 24.10.2013, at 12:30, Scot Becker scot.bec...@gmail.com wrote: Drat. I had that problem at the beginning too. I filed a bug report and a little later, things worked. I assumed they had fixed it. I'll have a look in that directory to see what's there. Meanwhile, perhaps a reboot, or a rerun the command download system in Zshaolin. Download system? I don't see this command. - Carsten On Tue, Oct 15, 2013 at 10:14 AM, Carsten Dominik carsten.domi...@gmail.com wrote: On 8.10.2013, at 12:36, Scot Becker scot.bec...@gmail.com wrote: Just a quick note to say that it's possible to get a full Emacs+org-mode on (unrooted) Android using an app called 'zshaolin'. You can either download the app from the Google Play store for approx $3 or download the toolchain and source from their website and compile it yourself (which I haven't tried). https://play.google.com/store/apps/details?id=org.dyne.zshaolinhl=en http://www.dyne.org/software/zshaolin/ (for source, follow links to their FTP site, about 2/3 down the page) Emacs is version 24.1.50. I just tried it, and when I start emacs I get an error message that the directory /sdcard/emacs/etc is not present. Emacs seems to look there for a file called charsets. Does anyone know what I am missing here? Thanks - Carsten The following needs to be added to the .zshrc for org-mode to work: export TMPDIR=${HOME}/tmp They only claim 'barebone' Emacs, and I haven't tested extensively to see what that means, but so far it works for me. I have no affiliation with the people at dyne.org, just happy to have working portable, org-mode. I use a Bluetooth keyboard with a 7 tablet on Android 4.3. It looks like compiling in this case may not be for the faint of heart, but if someone tries it, perhaps they can post any notes to the list here. Cheers, Scot
Re: [O] Full org-mode on unrooted Android
Carsten Dominik carsten.domi...@gmail.com writes: Hi Carsten: Download system? I don't see this command. He meant check to see if you have the latest in Install System. Charles -- I did this 'cause Linux gives me a woody. It doesn't generate revenue. (Dave '-ddt-` Taylor, announcing DOOM for Linux) signature.asc Description: PGP signature
Re: [O] Full org-mode on unrooted Android
0.7.1, and to problem is still present. - Carsten On 24.10.2013, at 17:57, Charles Philip Chan cpc...@bell.net wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Carsten: Download system? I don't see this command. He meant check to see if you have the latest in Install System. Charles -- I did this 'cause Linux gives me a woody. It doesn't generate revenue. (Dave '-ddt-` Taylor, announcing DOOM for Linux) signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] org-slidy and other HTML slideshows in org 8.x?
On 2013-10-23 23:12, Jay Dixit wrote: Hey everyone, I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy [1]) to create HTML-based slideshows using org-mode, but it doesn't seem to be working. I'm not sure, but I suspect this is because the syntax for org's HTML export may have changed? Attached is a quick hack --- ox-slidy.el, an org 8 exporter which inherits from ox-s5. It has a lot of stuff hardcoded that should be variables, but it works. rick(require 'ox-s5) (org-export-define-derived-backend 'slidy 's5 :menu-entry '(?S Export to SLIDY HTML Presentation ((?H To temporary buffer org-slidy-export-as-html) (?h To file org-slidy-export-to-html) (?o To file and open (lambda (a s v b) (if a (org-slidy-export-to-html t s v b) (org-open-file (org-slidy-export-to-html nil s v b))) :options-alist '((:html-link-home HTML_LINK_HOME nil nil) (:html-link-up HTML_LINK_UP nil nil) (:slidy-background SLIDY_BACKGROUND nil org-slidy-background newline) (:html-head-include-default-style HTML_INCLUDE_DEFAULT_STYLE nil nil) (:html-head-include-scripts HTML_INCLUDE_SCRIPTS nil nil)) :translate-alist '((template . org-slidy-template))) (defgroup org-export-slidy nil Options for exporting Org mode files to Slidy HTML Presentations. :tag Org Export Slidy :group 'org-export-html) (defcustom org-slidy-background img id=\head-icon\ alt=\graphic with four colored squares\ src=\http://www.w3.org/Talks/Tools/Slidy2/graphics/icon-blue.png\; / Contents for the background div :group 'org-export-slidy :type 'string) (defcustom org-slidy-style http://www.w3.org/Talks/Tools/Slidy2/styles/w3c-blue.css; Slidy theme stylesheet url. :group 'org-export-slidy :type 'string) (defun org-slidy-template (contents info) Return complete document string after HTML conversion. CONTENTS is the transcoded contents string. INFO is a plist holding export options. (let ((org-html--pre/postamble-class background) (info (plist-put (plist-put info :html-preamble (plist-get info :slidy-background)) :html-postamble nil))) (mapconcat 'identity (list (org-html-doctype info) (format html xmlns=\http://www.w3.org/1999/xhtml\; lang=\%s\ xml:lang=\%s\ (plist-get info :language) (plist-get info :language)) head link rel='stylesheet' href='http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css' media='screen, projection, print' type='text/css' / (when org-slidy-style (format link rel='%s' type='%s' media='%s' href='%s' / stylesheet text/css screen, projection, print org-slidy-style)) script src='http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js' type='text/javascript'/script (org-html--build-meta-info info) (org-html--build-head info) (org-html--build-mathjax-config info) /head body (org-html--build-pre/postamble 'preamble info) (org-html--build-pre/postamble 'postamble info) (format %s id=\%s\ class=\presentation\ (nth 1 (assq 'content org-html-divs)) (nth 2 (assq 'content org-html-divs))) ;; title page (format %s id='title-slide' class='slide cover' (plist-get info :html-container)) (format-spec org-s5-title-slide-template (org-html-format-spec info)) (format /%s (plist-get info :html-container)) ;; table of contents. (let ((depth (plist-get info :with-toc))) (when depth (org-slidy-toc depth info))) contents (format /%s (nth 1 (assq 'content org-html-divs))) /body /html\n) \n))) (defun org-slidy-export-as-html (optional async subtreep visible-only body-only ext-plist) Export current buffer to an HTML buffer. If narrowing is active in the current buffer, only export its narrowed part. If a region is active, export that region. A non-nil optional argument ASYNC means the process should happen asynchronously. The resulting buffer should be accessible through the `org-export-stack' interface. When optional argument SUBTREEP is non-nil, export the sub-tree at point, extracting information from the headline properties first. When optional argument VISIBLE-ONLY is non-nil, don't export contents of hidden elements. When optional argument BODY-ONLY is non-nil, only write code between \body\ and \/body\ tags. EXT-PLIST, when provided, is a property list with external parameters overriding Org default settings, but still inferior to file-local settings. Export is done in a buffer named \*Org SLIDY Export*\, which will be displayed when `org-export-show-temporary-export-buffer' is non-nil. (interactive) (org-export-to-buffer 'slidy *Org SLIDY Export* async subtreep visible-only body-only ext-plist (lambda () (nxml-mode (defun org-slidy-export-to-html (optional async subtreep visible-only body-only ext-plist) Export current buffer to a SLIDY HTML file. If narrowing is active
Re: [O] Full org-mode on unrooted Android
Carsten Dominik carsten.domi...@gmail.com writes: Hi Carsten: 0.7.1, and to problem is still present. Strange, what happens when you do a: , | ls /sdcard/emacs/etc/charsets ` I see a list of charsets files (files with extension .map) on my Nexus 7. If you don't see them, try reinstalling the system to see if it helps. Charles -- However, complexity is not always the enemy. -- Larry Wall (Open Sources, 1999 O'Reilly and Associates) signature.asc Description: PGP signature
Re: [O] [BUG] Exporting to HTML a document with a #+CALL
Vladimir Lomov lomov...@gmail.com writes: Hello, ** Eric Schulte [2013-10-22 08:44:18 -0600]: This issue only manifests with the Emacs compiled from source, and as such I can not reproduce it. If this bug makes it into a released version of Emacs I can address it then. Until then perhaps this should be reported to the emacs-dev list. I found which revision introduced this behaviour (114069) but I don't know how to prepare minimal example which would show incorrect behaviour and wouldn't use Org syntax. Is that possible at all? I have been wondering the same thing for over a month now. This problem has been present in the snapshots of Emacs since early September. I haven't run into the problem in any non-org use of Emacs unfortunately. There's something about calls in babel that exercises the buffer management in Emacs more than other uses. Nevertheless, I'll try to write a bug report based on Org example but only tomorrow. P.S. I suppose there must be another problem commit because error message was changed somewhere between commits 114100 and 114200, I don't have time right now to dig deeper. Which is why I believe you thought you had a different problem than the one I reported back in September! I'm glad you've tracked this down as well. Keep us posted. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.1-87-g8e841c
[O] Want to copy a sparse tree to a buffer
Hi, I'm looking for a way to effectively copy a sparse tree to another buffer. I'm restructuring some files, and what I have is a large datetree, with sub trees one per day tagged by external ticket number ** 2013-09 September *** 2013-09-03 Tuesday PPTDEV-300 tswap :300: * LOG 2013-09-03 Tue toci updates CLOCK: [2013-09-03 Tue 14:03]--[2013-09-03 Tue 17:13] = 3:10 CLOCK: [2013-09-03 Tue 10:40]--[2013-09-03 Tue 14:03] = 3:23 might be some notes here too * TODO do this thing * NOTES workingnotes PPTDEV-59 Misc :59: * LOG 2013-09-03 Tue email, morning CLOCK: [2013-09-03 Tue 08:44]--[2013-09-03 Tue 09:29] = 0:45 .. What I need to do is grab all subtrees matching e.g. 300 copy them into one contiguous block in another file. I can generate a sparse tree for the tag, but it only displays the headlines and so org-copy-visible fails to copy the clock lines, or any other next not included in the headline Any ideas for a simple way to do this? Thanks, Subhan -- Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] Ignored in-buffer settings and after-export hook
Hello, Daniel Gerber daniel.g.ger...@gmail.com writes: Hello, I guess I can, but it means re-doing the mapping sources to exported file names. AFAICT, there is only one place where both the source and the output name are known: in `org-publish-file', right after a file has been published. We may add a hook there. Since, at that time, the current buffer can be anything, both file names need to be passed as arguments to the hook. Also, files skipped during the publishing process won't trigger it. What do you think? It would be fine! It has been a long time, but would you mind testing the following patch? Regards, -- Nicolas Goaziou From 5b54cd3f1cef9ca4385da5d6e1d9b9d076847d3e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Tue, 27 Aug 2013 10:12:41 +0200 Subject: [PATCH] ox-publish: Introduce `org-publish-after-publishing-hook' * lisp/ox-publish.el (org-publish-after-publishing-hook): New variable. (org-publish-file): Call hook with file name and output file name as arguments. Small refactoring. (org-publish-attachment): Return output file. --- lisp/ox-publish.el | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index cfa7967..36cc790 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -54,6 +54,12 @@ This will cache timestamps and titles for files in publishing projects. Blocks could hash sha1 values here.) +(defvar org-publish-after-publishing-hook nil + Hook run each time a file is published. +Every function in this hook will be called with two arguments: +the name of the original file and the name of the file +produced.) + (defgroup org-publish nil Options for publishing a set of Org-mode and related files. :tag Org Publishing @@ -600,11 +606,12 @@ publishing directory. Return output file name. (unless (file-directory-p pub-dir) (make-directory pub-dir t)) - (or (equal (expand-file-name (file-name-directory filename)) - (file-name-as-directory (expand-file-name pub-dir))) - (copy-file filename - (expand-file-name (file-name-nondirectory filename) pub-dir) - t))) + (let ((output (expand-file-name (file-name-nondirectory filename) pub-dir))) +(or (equal (expand-file-name (file-name-directory filename)) + (file-name-as-directory (expand-file-name pub-dir))) + (copy-file filename output t)) +;; Return file name. +output)) @@ -625,8 +632,10 @@ See `org-publish-projects'. (project-plist (cdr project)) (ftname (expand-file-name filename)) (publishing-function - (or (plist-get project-plist :publishing-function) - (error No publishing function chosen))) + (let ((fun (plist-get project-plist :publishing-function))) + (cond ((null fun) (error No publishing function chosen)) + ((listp fun) fun) + (t (list fun) (base-dir (file-name-as-directory (expand-file-name @@ -648,19 +657,14 @@ See `org-publish-projects'. (concat pub-dir (and (string-match (regexp-quote base-dir) ftname) (substring ftname (match-end 0)) -(if (listp publishing-function) - ;; allow chain of publishing functions - (mapc (lambda (f) - (when (org-publish-needed-p - filename pub-dir f tmp-pub-dir base-dir) - (funcall f project-plist filename tmp-pub-dir) - (org-publish-update-timestamp filename pub-dir f base-dir))) - publishing-function) - (when (org-publish-needed-p - filename pub-dir publishing-function tmp-pub-dir base-dir) - (funcall publishing-function project-plist filename tmp-pub-dir) - (org-publish-update-timestamp - filename pub-dir publishing-function base-dir))) +;; Allow chain of publishing functions. +(dolist (f publishing-function) + (when (org-publish-needed-p filename pub-dir f tmp-pub-dir base-dir) + (let ((output (funcall f project-plist filename tmp-pub-dir))) + (org-publish-update-timestamp filename pub-dir f base-dir) + (run-hook-with-args 'org-publish-after-publishing-hook + filename + output (unless no-cache (org-publish-write-cache-file (defun org-publish-projects (projects) -- 1.8.4.1
Re: [O] org-babel generated images and +ATTR_LATEX
Mark Edgington edgimar at gmail.com writes: Anyhow, something that wasn't clear to me about your example is how you make the filename which is generated via org-babel-temp-file available for use within the code-block? Babel takes care of that (plantuml interprets the :file argument as the name of the file it should generate). I'm not sure the best way to get the file name in to a Python block. You could probably pass the generated name in as a :var parmater.
Re: [O] Help on spreadsheet/calc references and improvements
Hi Carsten On Thu, Oct 24, 2013 at 8:18 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Applied, thanks. I can not see the commit, is it pushed? Michael, would you like to have write access to the git repo? Thank you for the trust. As I would like anyway to have a review of my patches before commit, I think it would not help when I would do the commit myself. I hope that it is still ok when I prefer a review, independent of the simplicity of the patch. Michael
Re: [O] reverse column or row.
Hi Uwe On Thu, Oct 24, 2013 at 2:40 PM, Uwe Brauer o...@mat.ucm.es wrote: I think that one could solve the hebrew problem I mentioned yesterday, if there were a function like org-table-reverse-column (or org-table-reverse-row) acting like reverse-region but just for columns or rows. Unfortunately there is no function as reverse-rectangle or something like this to start with. Anybody has an idea? This again I see in the category of fun with combinations of reverse-region (to reverse lines) and org-table-transpose-table: Reverse row(s): Isolate the row(s) by adding an empty line before and after, transpose, reverse, transpose, remove added empty lines. Reverse column(s): Transpose the whole table before and after the steps above. Michael
Re: [O] make new links show as figures?
I don't think making chemdraw a babel language is the answer here. The way I know chemdraw is as a standalone binary executable that is all gui. there is no scripting. maybe you could build an xml file by hand, but i would never dream of that! maybe I am missing how you would use it. [[chemdraw:file.cdxml][file:file.png]] Is pretty close to what I had in mind. I would define the link click function to just strip off the png, and open the file.cdxml for example, then you do not need both of those pieces. I suppose this means you would have had to export the file as a new png after editing it to make a change though. The real examples I had in mind were some clean way to integrate emacs with my tablet and drawing pictures that are inline in a buffer. Clicking on the link would open the image in my tablet drawing program, where I would draw on it with a pen, and then save the figure. this is not all images though, just some. Hence the differentiation by a different link. In my course notes, I often have hand-drawn pictures in them. Right now I go through a somewhat annoying process of drawing in powerpoint, selecting the drawing and right clicking to save as an image, which I then put in as a link. I havent had time to find a much better solution. A link could save me some of that hassle, except that the link doesn't show in the buffer as an inline image. I also wanted a figure link that would export different ways. For example in html export it would export as html, for latex as eps, and for pdflatex as pdf, but it would show inline in some supported format. I know I can use filters to do that on export to replace or remove extensions, but I haven't had time to write one, and I thought a link would be a nice alternative. We typically make all three versions (png, eps, pdf) of figures, and put the png files in org so they show inline, but we often have to switch them out to one of the other formats at the end for manuscript submission. A link like figure:filename that would somehow show inline if a filename.png existed would solve this problem. Those are what I was thinking about for using other links as images. j John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, Oct 24, 2013 at 9:45 AM, Rick Frankel r...@rickster.com wrote: On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schmitt@polytechnique.**orgalan.schm...@polytechnique.org wrote: Hi Rick and John, r...@rickster.com writes: On 2013-10-22 21:53, John Kitchin wrote: Is it possible to define new links that would be rendered as inline images? I am imagining something like chemdraw:benzene.png which would show the benzene.png file inline, but when I click on it would open a chemdraw file for editing. unfortunately, it seems that `org-display-inline-images' has a hardcoded regex which searches only for =file:= links. This may be related to a question I had a couple weeks ago (see http://article.gmane.org/**gmane.emacs.orgmode/77567http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Indeed, currently this is not possible. I would be interested to get a patch to this effect. Carsten- In terms of inlining images in the description portion per the linked posting, do you think that it should depended on the value if the =include-linked= argument? (IMHO no, since the default usage of `org-display-inline-images' doesn't set this argument). I would be glad to take a stab at this enhancement. John- In reviewing `org-display-inline-images', and the handling of org links in general, i see no safe (and not overly complex) way of making added link types expand inline images. In the case mentioned, i still feel that adding chemdraw as a babel language is the correct approach. However, if we add the expansion of images in the description, would that work: [[chemdraw:file.cdxml][file:**file.png]] rick
Re: [O] Create sub-directories and files from within org
how would you do that? in a template or in a hook? would directory creation be a side effect of a sexp in the template? John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, Oct 22, 2013 at 8:11 AM, Skip Collins skip.coll...@gmail.comwrote: On Mon, Oct 21, 2013 at 9:10 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: You can do something like this: Neat! I will give it a shot. I might also try to incorporate it into a capture template.
Re: [O] make new links show as figures?
Carsten- On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: This may be related to a question I had a couple weeks ago (see http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Indeed, currently this is not possible. I would be interested to get a patch to this effect. I agree, expanding images in the link description per the mentioned posting makes sense. Do you think inlining images in the description In terms of implementation of this, and inlining
Re: [O] org-slidy and other HTML slideshows in org 8.x?
On 2013-10-23 23:12, Jay Dixit wrote: #+OPTIONS: H:1 num:nil toc:nil n:nil @:t ::t |:t ^:t f:t LaTeX:t #+BIND: org-export-html-style-include-default nil #+BIND: org-export-html-style-include-scripts t #+BIND: org-export-html-auto-preamble nil #+BIND: org-export-html-auto-postamble nil #+BIND: org-export-html-style !-- configuration parameters -- meta name='duration' content='5' / meta name='font-size-adjustment' content='2' / !-- style sheet links -- link rel='stylesheet' href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script src='htmlslidy-slides.js' type='text/javascript'/script script src='slidy.js' type='text/javascript'/script script src='jquery.js' type='text/javascript'/script script src='org-slidy-slides.js' type='text/javascript'/script #+BIND: org-export-html-style-extra #+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function #+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function #+BIND: org-html-head-include-default-style: nil #+BIND: org-html-include-scripts nil #+HTML_HEAD:
Re: [O] make new links show as figures?
Carsten- On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: This may be related to a question I had a couple weeks ago (see http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic seems to be to display inline images when the link points to an image, it would be great to extend it when the description, or part of the link, points to an image. Indeed, currently this is not possible. I would be interested to get a patch to this effect. I agree, expanding images in the link description per the mentioned posting makes sense. Do you think inlining images in the description In terms of implementation of this, and inlining
Re: [O] org-slidy and other HTML slideshows in org 8.x?
On 2013-10-23 23:12, Jay Dixit wrote: #+OPTIONS: H:1 num:nil toc:nil n:nil @:t ::t |:t ^:t f:t LaTeX:t #+BIND: org-export-html-style-include-default nil #+BIND: org-export-html-style-include-scripts t #+BIND: org-export-html-auto-preamble nil #+BIND: org-export-html-auto-postamble nil #+BIND: org-export-html-style !-- configuration parameters -- meta name='duration' content='5' / meta name='font-size-adjustment' content='2' / !-- style sheet links -- link rel='stylesheet' href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script src='htmlslidy-slides.js' type='text/javascript'/script script src='slidy.js' type='text/javascript'/script script src='jquery.js' type='text/javascript'/script script src='org-slidy-slides.js' type='text/javascript'/script #+BIND: org-export-html-style-extra #+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function #+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function #+BIND: org-html-head-include-default-style: nil #+BIND: org-html-include-scripts nil #+HTML_HEAD:
Re: [O] Babel issue after upgrade to Org 8?
The `org-babel-do-load-languages' function is defined in the current version of Emacs and with the current Org-mode. Maybe the debian package is screwed up in some way? I get the following $ emacs --batch --eval '(message defined? %S (functionp (quote org-babel-do-load-languages)))' defined? t with the following version of Emacs $ emacs --version GNU Emacs 24.3.1 Copyright (C) 2013 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Best, Rasmus rasm...@kth.se writes: SabreWolfy sabrewolfy at gmail.com writes: I've recently updated my Debian unstable installation and Emacs now reports this on startup: Symbol's function definition is void: org-babel-do-load-language My .emacs includes: (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) I've searched for a solution and read the notes about upgrading to Org 8 (which may have occurred during the update?), but have not found a solution. Can someone point me in the right direction, please? Thanks. I just had this problem after upgrading from Ubuntu 13.04 to 13.10. I have not changed my .emacs file, and the part which loads babel in my .emacs file reads (org-babel-do-load-languages 'org-babel-load-languages '((python . t) )) The error I get reads, Symbol's function definition is void: org-babel-do-load-languages I'm on org-mode 8.0.6 (Ubuntu package: https://launchpad.net/ubuntu/+source/org-mode/8.0.6-3 ), and I believe this package is straight from the Debian packages. Did this problem ever get resolved? Needless to say, everything worked before the upgrade. Thanks, Rasmus -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] ebnf2ps for babel
Hi Michael, Thanks for sharing this. Michael Gauland mikely...@amuri.net writes: I've had a play with adding babel support for ebnf2ps, to generate railroad diagrams for a grammar. I'd appreciate any comments on the attached code. I think you could probably remove the following lines. (require 'ob-ref) (require 'ob-comint) (require 'ob-eval) Aside from that nothing looks amiss. Would anyone else find this useful? Personally, I hope I don't have to write a grammar any time soon, but you never know what's around the corner... If you could re-send ob-ebnf2ps as a patch (as generated with git format-patch), and also add ebnf2ps to the `org-babel-load-languages' variable in org.el I'd be very happy to apply this to the repository. Thanks, Kind Regards, Mike Gauland ;;; ob-ebnf.el --- org-babel functions for ebnf evaluation ;; Copyright (C) your name here ;; Author: Michael Gauland ;; Keywords: literate programming, reproducible research ;; Homepage: http://orgmode.org ;; Version: 0.01 ;;; License: ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Commentary: ;;; Org-Babel support for using ebnf2ps to generate encapsulated postscript ;;; railroad diagrams. It recogises these arguments: ;;; ;;; :file is required; it must include the extension '.eps.' All the rules ;;; in the block will be drawn in the same file. This is done by ;;; inserting a '[file' comment at the start of the block (see the ;;; documentation for ebnf-eps-buffer for more information). ;;; ;;; :style specifies a value in ebnf-style-database. This provides the ;;;ability to customise the output. The style can also specify the ;;;gramnmar syntax (by setting ebnf-syntax); note that only ebnf, ;;;iso-ebnf, and yacc are supported by this file. ;;; Requirements: ;;; Code: (require 'ob) (require 'ob-ref) (require 'ob-comint) (require 'ob-eval) (require 'ebnf2ps) ;; optionally declare default header arguments for this language (defvar org-babel-default-header-args:ebnf '((:style . nil))) ;; Use ebnf-eps-buffer to produce an encapsulated postscript file. ;; (defun org-babel-execute:ebnf (body params) Execute a block of Ebnf code with org-babel. This function is called by `org-babel-execute-src-block' (save-excursion (let* ((dest-file (cdr (assoc :file params))) (dest-dir (file-name-directory dest-file)) (dest-root (file-name-sans-extension (file-name-nondirectory dest-file))) (dest-ext (file-name-extension dest-file)) (style (cdr (assoc :style params))) (current-dir default-directory) (result nil)) (with-temp-buffer (when style (ebnf-push-style style)) (let ((comment-format (cond ((string= ebnf-syntax 'yacc) /*%s*/) ((string= ebnf-syntax 'ebnf) ;%s) ((string= ebnf-syntax 'iso-ebnf) (*%s*)) (t (setq result (format EBNF error: format %s not supported. ebnf-syntax)) (setq ebnf-eps-prefix dest-dir) (insert (format comment-format (format [%s dest-root))) (newline) (insert body) (newline) (insert (format comment-format (format ]%s dest-root))) (ebnf-eps-buffer) (when style (ebnf-pop-style result ))) (provide 'ob-ebnf) ;;; ob-ebnf.el ends here -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] Status of hooks
I am under the impression that some parts of org-mode/contrib have not been upgraded to the latest org-export hooks names: C:\Home\.emacs.d\vendor\org-mode\lispgrep -e org-export-.*-hook *.el org-bibtex-extras.el:;; (add-hook 'org-export-first-hook org-eval.el:This should go into the `org-export-preprocess-hook'. org-eval.el:(add-hook 'org-export-preprocess-hook 'org-eval-replace-snippts) org-mtags.el:(add-hook 'org-export-preprocess-hook 'org-mtags-replace) org-static-mathjax.el:(add-hook 'org-export-html-final-hook 'org-static-mathjax-hook-installer) org-wikinodes.el:(add-hook 'org-export-define-heading-targets-headline-hook org-wikinodes.el:(add-hook 'org-export-preprocess-after-radio-targets-hook ox-icalendar.el:(let ((org-export-before-processing-hook ox-icalendar.el: org-export-before-processing-hook))) ox.el:;; Eventually, two hooks (`org-export-before-processing-hook' and ox.el:;; `org-export-before-parsing-hook') are run at the beginning of the ox.el:(defvar org-export-before-processing-hook nil ox.el:(defvar org-export-before-parsing-hook nil ox.el: (run-hook-with-args 'org-export-before-processing-hook ox.el: (run-hook-with-args 'org-export-before-parsing-hook Maybe not of a very high priority, but I thought it was better to mention it. -- Fabrice