[Orgmode] Re: Request for opinions: [ANN] List improvement v.2o
Hi Carsten and Nicolas, Carsten Dominik wrote: On Jul 22, 2010, at 11:08 PM, Nicolas Goaziou wrote: 2. Some existing documents will break because we now need an end-of-list that is clearly defined, and not by indentation. Nicolas proposes a double empty line or some special string to be defined. Breaking existing documents is always bad, of cause. I still hope we can do something about this if we think really hard, like making text that is less indented than the list *also* terminate a list. From what I understood, without testing anything of it (yet), I would really urge for a support of old documents (the ones with simple constructions) by adopting a rule like the one you propose, where indentation could terminate the list. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: problem with babel and R
OK, I understand that using :results org, the results is not altered, there is no post processing. But I don't want a post processing, I would like a way to tell babel where is the begining *and the end* of the output produces by a particular R source block. I think an #+end_results: foo at the end of the output could do the job. Then, the option replace could work in all situation, even if a blank line is inserted somewhere in the org output. No? David On Tue, Aug 17, 2010 at 17:15, Eric Schulte schulte.e...@gmail.com wrote: Hi David, David Hajage dhaj...@gmail.com writes: Thank you very much for your answer. My pleasure But when I run the following code directly into R, no extra lines is added by the ascii function: library(ascii) Le chargement a nécessité le package : proto options(asciiType = org) ascii(head(esoph)) # no extra line | | agegp | alcgp | tobgp| ncases | ncontrols | |---+---+---+--++---| | 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 | | 2 | 25-34 | 0-39g/day | 10-19| 0.00 | 10.00 | | 3 | 25-34 | 0-39g/day | 20-29| 0.00 | 6.00 | | 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 | | 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 | | 6 | 25-34 | 40-79 | 10-19| 0.00 | 7.00 | ah, my fault, this isn't an ascii issue. In fact, the solution was to run 'library(ascii)' in another source block. When I run only this: Thanks for pointing this out, I see what's happening now. The :results output header argument (see [1] for information on header arguments) informs Org-mode to collect all of the output of the source code block. This means that when library(ascii) is run, an empty line is collected and appended to the output. Removing the output header argument should fix this issue. My I ask why you are using the ascii package for simple table output? It seems to me that this would be much simpler using the pure Org-mode solution I suggested in my previous email. #+begin_src R :session *R* :results output org replace ascii(head(esoph)) #+end_src #+results: foo | | agegp | alcgp |tobgp | ncases | ncontrols | |---+---+---+--++---| | 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 | | 2 | 25-34 | 0-39g/day |10-19 | 0.00 | 10.00 | | 3 | 25-34 | 0-39g/day |20-29 | 0.00 | 6.00 | | 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 | | 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 | | 6 | 25-34 | 40-79 |10-19 | 0.00 | 7.00 | Everything is then OK. I have no idea why library(ascii)... generates an extra empty line in the results. If I understand, the results is all the text directly under #+results:, until the first empty line. But what happens if the result contains empty lines? Here an example with ascii and Hmisc package: This is not quite right, see [2] for a discussion of results handling. The org option to results is a special case in which no post-processing of the results takes place, and the raw output is inserted into the org-mode buffer. Under normal usage w/o this header argument, results are either tabular or are textual. If tabular a single table can easily be recognized and handled, if textual they are normally enclosed in a block (example, html, latex, etc...), the block then allows for empty lines while still making it clear where the results end. library(ascii) library(Hmisc) ascii(describe(esoph[, 1:3])) #+CAPTION: esoph[, 1:3] - 3 Variable - 88 Observations *agegp* | n | missing | unique | | 88 | 0 | 6 | | | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ | | Frequency | 15| 15| 16| 16| 15| 11 | | % | 17| 17| 18| 18| 17| 12 | *alcgp* | n | missing | unique | | 88 | 0 | 4 | 0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%) *tobgp* | n | missing | unique | | 88 | 0 | 4 | 0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%) As you can see, describe() generate a description of my data, and ascii generate org-mode markup as result. The result contains empty rows. Since there is no special characters indicating the end of the results in babel, replace option will not work in this case. Is there any workaround? When using :results org there is no workaround, as the explicit purpose of this setting is for your results to be inserted directly into the Org-mode buffer w/o any interpretation or alteration. In general I would recommend keeping a 1-to-1 mapping between code blocks and result items, which should resolve this issue. Of course, ascii is not usefull in this case, but it can coerce into org-mode markup many other R objects (see my previous
[Orgmode] Re: [Org-Babel] and R... non-numeric cells
Hi Dan, Dan Davison wrote: Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l || \s{Année 2010} | \s{Année 2011} | \s{Année 2012} | \s{Année 2013} | |++++| | RFO| 2596376.30 | 150.00 | 50.00 | 50.00 | | RFO réseau structurant | 3804467.00 | 6534066.00 | 3804467.00 | 0.00 | | Équipements| 100.00 | 15.00 | 5.00 | 5.00 | |++++| | Total (HTVA) | 7400843.30 | 8184066.00 | 4354467.00 | 55.00 | #+TBLFM: @5$2=vsum(@-...@-ii);%.2f::@5$3=vsum(@-...@-ii);%.2f::@5$4=vsum(@-...@-ii);%.2f::@5$5=vsum(@-...@-ii);%.2f whose graphical representation is: #+srcname: barplot-investment(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - as.matrix(ptable[2:4, -1]) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[-nrow(ptable),1], legend.location=topright) #+end_src That works perfectly for him (on Ubuntu 9.04, R 2.7.1, Emacs 22.2.1, Org 6.35) Not for me... on Ubuntu 10.04, R 2.10.1, Emacs 23.1.1, Org 7.01, ESS 5.10: I get the message *Error in as.matrix(ptable[2:4, -1])/1e+06 : non-numeric argument to binary operator* Thanks a lot for your detailed explanation. It helped a lot. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] row and col spaning in table?
Giovanni Ridolfi wrote: David Hajage dhaj...@gmail.com writes: and I was wondering if row and col spaning was possible? Currently not. But, if this is your case, you should use the table.el package. Yes. Still, I'd tentatively suggest adding a feature to span Org-table cells across rows and columns -- on *export* only. (Sorry if this has been thought of before.) Why? For static tables with complex layout, the table.el integration is just what the doctor ordered and works really smoothly, and clearly one would not want to mess up the ease and speed of Org-tables by adding complexity like row and column spanning in the table editor. But what if, say, one is using the spreadsheet functionality, frequently updates the content for publication, and would like to e.g. span headers over multiple sub-headers? It seems less than optimal to maintain and update a separate Org table, then convert it to table.el and manually edit it every time one wants to publish, spanning the same cells each time. For this purpose, it would be nice to be able to define reusable cell spans the same way table formulas are entered, and with the same syntax. Here's an idea for how it might look: #+CAPTION: Foo and bar sales by region | Region | Sales | | | | | | | | || Q1| | Q2 | | Q3 | | Q4 | | || foo | bar | foo | bar | foo | bar | foo | bar | |+---+-+-+-+-+-+-+-| | North | 350 | 46 | 253 | 34 | 234 | 42 | 382 | 68 | | South | 462 | 84 | 511 | 78 | 435 | 45 | 534 | 89 | #+TBLSPAN: A1..A3::A2..I1::B2..C2::D2..E2::F2..G2::H2..I2 The exporter would read the TBLSPAN line to see what cells should be merged. It would concatenate the cell contents (if any), and add the appropriate HTML, LaTeX or DocBook formatting. [1] ++-+ | Region | Sales | |+-+---+---+---+ || Q1 |Q2 |Q3 |Q4 | |+---+-+-+-+-+-+-+-+ || foo | bar | foo | bar | foo | bar | foo | bar | ++---+-+-+-+-+-+-+-+ | North | 350 | 46 | 253 | 34 | 234 | 42 | 382 | 68 | ++---+-+-+-+-+-+-+-+ | South | 462 | 84 | 511 | 78 | 435 | 45 | 534 | 89 | ++---+-+-+-+-+-+-+-+ Another example: | | Col A | Col B | | |---+---+---+-| | Row 1 | A1| B1| C1 | | | A1b | B1b | C1b | | Row 2 | A2| B2| C2 | | | A2b | B2b | C2b | #+TBLSPAN: @1$...@1$4::@2$...@3$2::@4$...@5$4 would result in output like: +---+-+---+ | | A | B | +---+-+-+-+ | 1 | A1 | B1 | C1 | | | +-+-+ | | A1b | B1b | C1b | +---+-+-+-+ | 2 | A2 | B2 C2 | | +-+ | | | A2b | B2b C2b | +---+-+---+ [1] HTML: =rowspan= and =colspan= attributes of the =th= and =td= elements. LaTeX: =\multicolumn= and =\multirow= commands. DocBook: =namest=, =nameend= and =morerows= attributes of the =entry= element. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Request for opinions: [ANN] List improvement v.2o
Carsten Dominik wrote: 2. Some existing documents will break because we now need an end-of-list that is clearly defined, and not by indentation. Nicolas proposes a double empty line or some special string to be defined. Breaking existing documents is always bad, of cause. I still hope we can do something about this if we think really hard, like making text that is less indented than the list *also* terminate a list. +1 Ending lists by indentation most closely resembles how one would end a list in ordinary typed prose (with a single blank line before a following paragraph, not two, certainly not with an end-of-list symbol). Since Org is currently capable of understanding this natural syntax, the change would be a real step backwards. Speaking for myself I know it would break a *lot* of my stuff. Otherwise, Nicolas Goaziou's changes look nice. I hope a way can be found to have it both ways. Yours, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] row and col spaning in table?
Well, it seems a good solution to me! David On Wed, Aug 18, 2010 at 09:32, Christian Moe m...@christianmoe.com wrote: Giovanni Ridolfi wrote: David Hajage dhaj...@gmail.com writes: and I was wondering if row and col spaning was possible? Currently not. But, if this is your case, you should use the table.el package. Yes. Still, I'd tentatively suggest adding a feature to span Org-table cells across rows and columns -- on *export* only. (Sorry if this has been thought of before.) Why? For static tables with complex layout, the table.el integration is just what the doctor ordered and works really smoothly, and clearly one would not want to mess up the ease and speed of Org-tables by adding complexity like row and column spanning in the table editor. But what if, say, one is using the spreadsheet functionality, frequently updates the content for publication, and would like to e.g. span headers over multiple sub-headers? It seems less than optimal to maintain and update a separate Org table, then convert it to table.el and manually edit it every time one wants to publish, spanning the same cells each time. For this purpose, it would be nice to be able to define reusable cell spans the same way table formulas are entered, and with the same syntax. Here's an idea for how it might look: #+CAPTION: Foo and bar sales by region | Region | Sales | | | | | | | | || Q1| | Q2 | | Q3 | | Q4 | | || foo | bar | foo | bar | foo | bar | foo | bar | |+---+-+-+-+-+-+-+-| | North | 350 | 46 | 253 | 34 | 234 | 42 | 382 | 68 | | South | 462 | 84 | 511 | 78 | 435 | 45 | 534 | 89 | #+TBLSPAN: A1..A3::A2..I1::B2..C2::D2..E2::F2..G2::H2..I2 The exporter would read the TBLSPAN line to see what cells should be merged. It would concatenate the cell contents (if any), and add the appropriate HTML, LaTeX or DocBook formatting. [1] ++-+ | Region | Sales | |+-+---+---+---+ || Q1 |Q2 |Q3 |Q4 | |+---+-+-+-+-+-+-+-+ || foo | bar | foo | bar | foo | bar | foo | bar | ++---+-+-+-+-+-+-+-+ | North | 350 | 46 | 253 | 34 | 234 | 42 | 382 | 68 | ++---+-+-+-+-+-+-+-+ | South | 462 | 84 | 511 | 78 | 435 | 45 | 534 | 89 | ++---+-+-+-+-+-+-+-+ Another example: | | Col A | Col B | | |---+---+---+-| | Row 1 | A1| B1| C1 | | | A1b | B1b | C1b | | Row 2 | A2| B2| C2 | | | A2b | B2b | C2b | #+TBLSPAN: @1$...@1$4::@2$...@3$2::@4$...@5$4 would result in output like: +---+-+---+ | | A | B | +---+-+-+-+ | 1 | A1 | B1 | C1 | | | +-+-+ | | A1b | B1b | C1b | +---+-+-+-+ | 2 | A2 | B2 C2 | | +-+ | | | A2b | B2b C2b | +---+-+---+ [1] HTML: =rowspan= and =colspan= attributes of the =th= and =td= elements. LaTeX: =\multicolumn= and =\multirow= commands. DocBook: =namest=, =nameend= and =morerows= attributes of the =entry= element. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Archive Tasks
Thanks for your reply! I think this is not what i am looking for. Quote from Bernt: This ensures that any level 2 task that I archive from this heading (I archive by subtree) gets saved in the archive file under the appropriate level 1 heading.. My problem is, that i have level 3 tasks. --- file: main.org --- * Tasks ** Client X :PROPERTIES: :ARCHIVE: %s_archive::** Client X :END: *** DONE Task Client X ** Client Y :PROPERTIES: :ARCHIVE: %s_archive::** Client Y :END: *** DONE Task Client Y --- file: main.org_archive --- * Tasks ** Client A ** Client X ** Client Z * Whatever --- The first Task (Task Client X) will now be archived correctly. But only because there is already a heading Client X in my archive file (and only one heading Client X). The second task will be archived at the end of the archive file, but not under the first level heading Tasks. With the current setup i have to make sure - that there is already a heading for every client in my archive file and - that there is only one heading with that name It would be great if i could tell org, that my level 3 tasks should be archived under * Tasks - ** Client X, so that Org will create the heading client X itself (and the heading Tasks, too, if it doesn't already exist) at the right position in my archive file. Any ideas? Karl Am 18.08.10 07:22, schrieb Puneeth: Karl, On Wed, Aug 18, 2010 at 10:36 AM, Karl Maihofer ignora...@gmx.de wrote: Is there a way to tell org, that there should be a first level called Tasks and a second called Client 1? Bernt's setup describes how to do this. http://doc.norang.ca/org-mode.html#OrgFileStructure -- Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Request for opinions: [ANN] List improvement v.2o
Hello, Christian Moe writes: Ending lists by indentation most closely resembles how one would end a list in ordinary typed prose (with a single blank line before a following paragraph, not two, certainly not with an end-of-list symbol). Just to clear up things: you can still end a list with a single blank line with `org-empty-line-terminates-plain-lists', just not by default. Moreover, I posted in this list a function that can ease moving documents from the existing list format to this one. It should prevent breaking stuff. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] properties in agenda prefix
Skip Collins skip.coll...@gmail.com writes: Why is CATEGORY the only property that can be included in org-agenda-prefix-format? What property would you find useful to have and why? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-feeds, atom, authentication gdata
Hi Ethan, Ethan Ligon li...@are.berkeley.edu writes: I long ago hacked together a system for gcalendar that involved a wget on an *.ics file and some elisp to get this into calendar entries. This works, in a hackish way, but is neither elegant nor particularly robust. I recently discovered GoogleCL and thought it could help build a better interaction between Google's services and Org: http://code.google.com/p/googlecl/ ... but I didn't digg that much into that direction. I'm used to discovering that all my clever ideas about ways to extend org's functionality have already been thought of, so I'm expecting one of you to point me to a thread from three years ago and point to the code that's sitting right there in contrib. :) -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] EmacsForMacOSX - copy paste in orgmode
Hi Juan, I hope you don't mind me mailing you directly. I copied orgmode list in cc. Do you have a way to copy / paste between say Firefox and Emacs / orgmode? It doesn't seem to work, and I've found some posts googling, but no apparent solution. It seems Acquamacs will do it, so I'd assume it's a matter of configuring .emacs? Thanks, Erwin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[beamer] Worg tutorial link broken (was Re: [Orgmode] Baffled by beamer blocks)
On Tue, 17 Aug 2010 18:11:52 -0500, John Hendy jw.he...@gmail.com wrote: [1 text/plain; ISO-8859-1 (7bit)] Eric -- is the link to the file download broken? It looks like a footnote or [[link][]] might have missed a bracket? I'm assuming that footnote 1 is supposed to link to the example file being used for the tutorial, that is. yes, the link is broken. I have no idea how to fix it; I didn't install this on Worg as I had problems with git etc. Maybe somebody else can fix this? Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Baffled by beamer blocks
On Tue, 17 Aug 2010 16:29:03 -0700, Philip J. Hollenback phil...@pobox.com wrote: Hm no luck. I tried the updated presentation.org and posted the resulting pdf on scribd: http://www.scribd.com/doc/36035983/Presentation some interesting problems: 1. title missing from title page 2. @important@ is rendered as @important@ 3. missing QED image and of course no blocks. I think something is going horribly wrong with the conversion to latex here but I'm unsure what. Is there some debugging I can turn on to try to figure out what isn't being loaded? I've definitely got the #+startup: beamer line now. What version of org are you using? This is very puzzling. The file I sent you works perfectly fine for me... and I have no special settings in my configuration that relate to beamer. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-feeds, atom, authentication gdata
On Wed, 18 Aug 2010 11:43:59 +0200, Bastien bastien.gue...@wikimedia.fr wrote: Ethan Ligon li...@are.berkeley.edu writes: I long ago hacked together a system for gcalendar that involved a wget on an *.ics file and some elisp to get this into calendar entries. This works, in a hackish way, but is neither elegant nor particularly robust. I recently discovered GoogleCL and thought it could help build a better interaction between Google's services and Org: http://code.google.com/p/googlecl/ ... but I didn't digg that much into that direction. Have a look at a message I posted to this list last month: http://article.gmane.org/gmane.emacs.orgmode/27214 HTH, eric -- MC . -.. --- - ..-. .-. .- --. .- .- - ..- -.-. .-.. .- -.-. ..- -.- NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/ PG Fingerprint: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D BF ++[+[]-]++..-.++.--. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-feeds, atom, authentication gdata
Eric S Fraga ucec...@ucl.ac.uk writes: Have a look at a message I posted to this list last month: http://article.gmane.org/gmane.emacs.orgmode/27214 Great! Thanks for reposting this. IMHO this deserves a place in Worg/org-hacks.org Would you add it? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] Baffled by beamer blocks
Eric S Fraga ucec...@ucl.ac.uk writes: with associated presentation file which seems to have been munged somehow on Worg (well, on the web site; the git repository has the right version) so here it is attached. I tried to fix it but it's actually a bug in the current HTML export: links within inlined footnotes get wrongly exported. Here is a test file to reproduce the problem. test.org Description: Binary data -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-feeds, atom, authentication gdata
On Wed, 18 Aug 2010 12:23:52 +0200, Bastien bastien.gue...@wikimedia.fr wrote: Eric S Fraga ucec...@ucl.ac.uk writes: Have a look at a message I posted to this list last month: http://article.gmane.org/gmane.emacs.orgmode/27214 Great! Thanks for reposting this. IMHO this deserves a place in Worg/org-hacks.org Would you add it? -- Bastien I'd like to. First, I will have to figure out where I went wrong last time I tried to add anything to Worg... I'll come back to this in a couple of weeks (no time right now unfortunately), probably at the same time I get around to writing a tutorial on using ledger with babel. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] EmacsForMacOSX - copy paste in orgmode
Hi Erwin, On Wed, Aug 18, 2010 at 3:31 PM, Erwin Panen erwinpa...@fastmail.fm wrote: Hi Juan, I hope you don't mind me mailing you directly. I copied orgmode list in cc. Do you have a way to copy / paste between say Firefox and Emacs / orgmode? I don't use MacOSX. But, I have the following elisp code in my dot-emacs (Linux). (setq x-select-enable-clipboard t) I think this should work for you too. I'm not sure, though. HTH, Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] Baffled by beamer blocks
On Wed, 18 Aug 2010 12:36:42 +0200, Bastien bastien.gue...@wikimedia.fr wrote: Eric S Fraga ucec...@ucl.ac.uk writes: with associated presentation file which seems to have been munged somehow on Worg (well, on the web site; the git repository has the right version) so here it is attached. I tried to fix it but it's actually a bug in the current HTML export: links within inlined footnotes get wrongly exported. Here is a test file to reproduce the problem. I can confirm this. The parsing of the footnote ends prematurely with the first ] in the link, it would appear. - Org-mode version 7.01trans (release_7.01h.156.g7679) - GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-08-14 on raven, modified by Debian -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-capture + autoload
It would be convenient if I could do a M-x customize-group org-capture and/or M-x customize-variable org-capture-templates without having triggered a prior org-capture. For now, I trigger a capture, abort it and then proceed ahead with customizing these. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-capture + autoload
It would be convenient if I could do a M-x customize-group org-capture and/or M-x customize-variable org-capture-templates without having triggered a prior org-capture. For now, I trigger a capture, abort it and then proceed ahead with customizing these. Ok. I need to do a C-c c C. It was sitting right there in front my eyes waiting to be noticed. I erred because I didn't expect to see something in the capture templates which I have not entered myself. That said, it would be convenient to have the variable customized the standard way. Some habits die hard. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] properties in agenda prefix
What property would you find useful to have and why? CUSTOM_ID could be handy right away. If arbitrary properties were accessible in agenda prefix, it would enable very flexible agenda constructs. Consider a setup in which headlines are given a tracking number that can be used as a reference number outside of org. The reference number would naturally be a property, not a tag. To get a nice list that includes the reference number, it must be assigned to CATEGORY. Consider also a group agenda in which items are flagged in the prefix with the names of their owners. Again, the names must now be assigned to CATEGORY. As a design goal, I think would it make sense for agenda and column modes to have some overlapping features and syntax, including the ability to access properties. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Question] Custom drawers overrule :PROPERTIES: drawer?
Hi, if I define a custom drawer like this: #+DRAWERS: COORDS the :PROPERTIES: drawer is not handeld as drawer anymore. Instead, I have to mention PROPERTIES in the options line shown above. Is this the intended behaviour? Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] EmacsForMacOSX - copy paste in orgmode
Hi Puneeth, Thanks for your help; This does indeed seem to enable copy/paste. Unfortunately Ctrl / Option - c/v/x do not work. Probably this has to do with my keybindings (I'm not very good at these :-) ). I have this in my .emacs: - ;; command-` to switch frames (global-set-key [?\M-`] 'other-frame) ; # This sets the key binding (setq mac-option-key-is-meta nil) (setq mac-command-key-is-meta t) (setq mac-command-modifier 'meta) (setq mac-option-modifier nil) Erwin On 18/08/10 12:43, Puneeth wrote: Hi Erwin, On Wed, Aug 18, 2010 at 3:31 PM, Erwin Panenerwinpa...@fastmail.fm wrote: Hi Juan, I hope you don't mind me mailing you directly. I copied orgmode list in cc. Do you have a way to copy / paste between say Firefox and Emacs / orgmode? I don't use MacOSX. But, I have the following elisp code in my dot-emacs (Linux). (setq x-select-enable-clipboard t) I think this should work for you too. I'm not sure, though. HTH, Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Request for opinions: [ANN] List improvement v.2o
Oops. Sorry. CM Nicolas Goaziou wrote: Hello, Christian Moe writes: Ending lists by indentation most closely resembles how one would end a list in ordinary typed prose (with a single blank line before a following paragraph, not two, certainly not with an end-of-list symbol). Just to clear up things: you can still end a list with a single blank line with `org-empty-line-terminates-plain-lists', just not by default. Moreover, I posted in this list a function that can ease moving documents from the existing list format to this one. It should prevent breaking stuff. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Links Lost and Export-Report
Hello, I currently have a showstopper-class problem with links. I am using Org-mode release_7.01h-129-g3363a with Emacs 23.2.1. I have (require 'org-install) (require 'org-id) in my .emacs file. This works fine: (1) org-link-to-org-use-id is t and when I do a C-c l (org-store-link), a a globally unique ID property is generated for the current section - so far so good. (2) I then change to another org-file and insert the link with C-c C-l (org-store-link), looking at the org source shows me that, indeed, the newly generated ID (id:3A50... in that example) has been used. (3) When I do a C-c C-o (org-open-at-point) on the new link, the target org-file is opened at exactly the right place - nice! (4) When I export the file as HTML, the link works exactly as expected: a href=some-file.html#ID-3A50... Here is the problem: I have two computers with very similar setups (Emacs and Org-mode: same versions; laptop and desktop) and synchronize org-files via a subversion repository. If I do a subversion update (sync the org-files to that computer) and then export to HTML on that computer, the previously working links do not work any more: there is no #ID-... in the link, in fact, the link is simply to the file that contains the link (not even the file I want to link to). Maybe Org-mode was not able to find the id? I notice that there is no file referenced in the automatically generated [[id:3A50...][My Link]] link. How does Org-mode look for files that might contain a specific id? The org manual says [...] and one that is globally unique and works even if the entry is moved from file to file implying that there is a strategy for looking for suitable candidates. I assume that Org-mode will look in currently open buffers first, but even if I load the correct target file, HTML export will not create the proper link. Perhaps a caching problem (I use global-auto-revert-mode)? Maybe the above is a problem with my particular setup, but another and related problem is this: Org-mode silently ignoring link problems and misspelled macro names is dangerous - it happened more than once in our case that HTML content went online with broken links and {{{my-misspelled-macro()}}} snippets. How about an (optional) report after generating more complex HTML contents: maybe it could be another org-file with links to offending Org code (unresolved links, unknown macro names) and an easy-to-parse summary line for batch jobs (done in 5.6s, *** 2 errors found)? I am perfectly willing to help with this, unfortunately, my elisp skills are fairly basic and I fear this requires some intimate knowledge of the export process. Many thanks in advance. Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] org-capture: file+function
I have run into couple of issues with file+function templates. Let me explain. I have the following entry in org-capture-templates ( (b Bookmarks entry (file+function ~/bookmark.org point) ** %c\n %i \n %?)) The intention is to add a bookmark entry at the cursor position. This entry gets triggered by an org-protocol://capture://b/... entry in the browser With the above setup I notice the following. 1. Entry doesn't get added at the cursor position. For example, create an empty bookmark.org like this. * Heading1 and position cursor at the end of the heading line. Trigger a bookmark entry. Notice that the entry gets added *before* the heading line. 2. Entry gets added with single '*' as opposed to '**' (Latter one was what was advised) IMHO, org-mode shouldn't override my advise when creating such file+function entries. To elaborate further, When I am researching a topic, I create a new headline in the bookmark.org and all subsequent bookmarks gets added to the cursor position. When I move on to another topic, I create another heading and position my cursor underneath it and all future bookmarks go under the new topic. I wonder whether this - create entry at the target file at the current cursor location - is a common workflow for others. If yes, may be having an escape sequence for this would be a good idea. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Publishing documents body-only
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm preparing some LaTeX documents using org-babel and R, and I'd like to export/publish these documents as body-only, so that they can be directly included by the master document. (I don't want to convert the whole book into org-mode). the org-export-as-latex function has the argument to allow export body-only, but it can not be easily accessed in any way. There is some mention on the mailing list of a :body-only project publishing property, but it does not seem to have any effect. When looking at org-publish-org-to in org-publish.el, there are the lines: - -- (setq export-buf-or-file (funcall (intern (concat org-export-as- format)) (plist-get plist :headline-levels) nil plist nil nil pub-dir)) - -- An from org-html.el, for example, we see, that the second-to-last argument could convey this body-only information to the individual export functions (same works for org-export-as-latex): - -- org-export-as-html is an interactive compiled Lisp function in `org-html.el'. (org-export-as-html arg optional hidden ext-plist to-buffer body-only pub-dir) - - I wonder if anyone out there capable of actually writing elisp code (myself being able to read it only), would care to implement some kind of access to this feature, that already seems to exist in the code? For completeness' worth, it would be nice to have it both in the publishing system as well as in the export options for individual files. (Perfect would be an org-mode setting in the file...) Of course, if there already is a way to access this functionality, I'd be delighted to hear. Best, Harri Kiiskinen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxr2RQACgkQ96/ytBLubNlq+ACgtdg2bod7cIneSPM0SDDCnSSF mksAn2uK/rlkMjSx2topRimOyDbPkUlD =zqQE -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Babel: interweaving code and results?
Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? Thank you very much. David ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Babel: interweaving code and results?
David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Babel: interweaving code and results?
Thanks! David On Wed, Aug 18, 2010 at 15:15, Erik Iverson er...@ccbr.umn.edu wrote: David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Baffled by beamer blocks
On Wed, Aug 18, 2010 at 9:23 AM, John Hendy jw.he...@gmail.com wrote: On Wed, Aug 18, 2010 at 5:09 AM, Eric S Fraga ucec...@ucl.ac.uk wrote: On Tue, 17 Aug 2010 16:29:03 -0700, Philip J. Hollenback phil...@pobox.com wrote: Hm no luck. I tried the updated presentation.org and posted the resulting pdf on scribd: http://www.scribd.com/doc/36035983/Presentation some interesting problems: 1. title missing from title page 2. @important@ is rendered as @important@ 3. missing QED image and of course no blocks. I think something is going horribly wrong with the conversion to latex here but I'm unsure what. Is there some debugging I can turn on to try to figure out what isn't being loaded? I've definitely got the #+startup: beamer line now. What version of org are you using? This is very puzzling. The file I sent you works perfectly fine for me... and I have no special settings in my configuration that relate to beamer. Eric, I have the title and QED image, but @important@ is rendered literally. See the attached .org, .pdf, and .tex files. Where is the markup for @w...@provided (who translates @ in org to red/emphasized text in the output PDF)? I can't find it in the orgmode manual: http://orgmode.org/manual/Emphasis-and-monospace.html#Emphasis-and-monospace John Eric, Update: As was perhaps obvious, @ is not getting translated to \alert{}. I couldn't remember what it was called. If I remove the @ markup and replace it directly with \alert{example}, it works perfectly. Not sure why it's not working. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Baffled by beamer blocks
On Wed, 18 Aug 2010 09:23:26 -0500, John Hendy jw.he...@gmail.com wrote: [...] Eric, I have the title and QED image, but @important@ is rendered literally. See the attached .org, .pdf, and .tex files. Where is the markup for @w...@provided (who translates @ in org to red/emphasized text in the output PDF)? I can't find it in the orgmode manual: http://orgmode.org/manual/Emphasis-and-monospace.html#Emphasis-and-monospace John I thought the processing of @...@ for alerts in beamer was the default but it turns out I have the following settings which add @ to convert text to alert in beamer and bold in HTML exports. --8---cut here---start-8--- (setq org-emphasis-alist (quote ((* bold b /b) (/ italic i /i) (_ underline span style=\text-decoration:underline;\ /span) (= org-code code /code verbatim) (~ org-verbatim code /code verbatim) (+ (:strike-through t) del /del) (@ org-warning b /b))) org-export-latex-emphasis-alist (quote ((* \\textbf{%s} nil) (/ \\emph{%s} nil) (_ \\underline{%s} nil) (+ \\texttt{%s} nil) (= \\verb=%s= nil) (~ \\verb~%s~ t) (@ \\alert{%s} nil))) ) --8---cut here---end---8--- I'm not sure what the default is but you can see what you've got by looking at these two variables. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Babel: interweaving code and results?
Erik Iverson er...@ccbr.umn.edu writes: David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? Hi David, This is actually quite easy, although I don't think anyone's flagged this possibility up: just do (setq org-babel-R-command R --silent --no-save) (Our default is --slave --no-save) There's an example session below. By the way, can I just check that you're aware of the ':exports both' option? That's the canonical Org way of exporting both code and results. It doesn't interleave them: it's more geared towards 'one code block - one result'. But I understand that there may be situations where interleaved is desired. Erik -- You might well be right that we should add an :interleave option to modify :results output like this. --8---cut here---start-8--- #+begin_src emacs-lisp org-babel-R-command #+end_src #+results: : R --slave --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : [1] 4 : [1] 6 #+begin_src emacs-lisp (setq org-babel-R-command R --silent --no-save) #+end_src #+results: : R --silent --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : 2+2 : [1] 4 : 3+3 : [1] 6 : --8---cut here---end---8--- [Maybe we can battle that trailing prompt character] Dan I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Babel: interweaving code and results?
exactly what I want! But an new option would be greater... Yes, I know about :exports both, but if code and results are interleaved, I don't need to export the code (in my case). That's why I use :exports results. Thank you very much for this. David On Wed, Aug 18, 2010 at 16:49, Dan Davison davi...@stats.ox.ac.uk wrote: Erik Iverson er...@ccbr.umn.edu writes: David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? Hi David, This is actually quite easy, although I don't think anyone's flagged this possibility up: just do (setq org-babel-R-command R --silent --no-save) (Our default is --slave --no-save) There's an example session below. By the way, can I just check that you're aware of the ':exports both' option? That's the canonical Org way of exporting both code and results. It doesn't interleave them: it's more geared towards 'one code block - one result'. But I understand that there may be situations where interleaved is desired. Erik -- You might well be right that we should add an :interleave option to modify :results output like this. --8---cut here---start-8--- #+begin_src emacs-lisp org-babel-R-command #+end_src #+results: : R --slave --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : [1] 4 : [1] 6 #+begin_src emacs-lisp (setq org-babel-R-command R --silent --no-save) #+end_src #+results: : R --silent --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : 2+2 : [1] 4 : 3+3 : [1] 6 : --8---cut here---end---8--- [Maybe we can battle that trailing prompt character] Dan I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Babel: interweaving code and results?
Dan Davison wrote: Erik Iverson er...@ccbr.umn.edu writes: David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? Hi David, This is actually quite easy, although I don't think anyone's flagged this possibility up: just do (setq org-babel-R-command R --silent --no-save) Yes, that's essentially what I ended up doing it appears. I never actually wrote code to process an option for it though. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Baffled by beamer blocks
On Wed, 18 Aug 2010 15:40:30 +0100, Eric S Fraga ucec...@ucl.ac.uk wrote: On Wed, 18 Aug 2010 09:23:26 -0500, John Hendy jw.he...@gmail.com wrote: [...] Eric, I have the title and QED image, but @important@ is rendered literally. See the attached .org, .pdf, and .tex files. Where is the markup for @w...@provided (who translates @ in org to red/emphasized text in the output PDF)? I can't find it in the orgmode manual: http://orgmode.org/manual/Emphasis-and-monospace.html#Emphasis-and-monospace John I thought the processing of @...@ for alerts in beamer was the default but it turns out I have the following settings which add @ to convert text to alert in beamer and bold in HTML exports. --8---cut here---start-8--- (setq org-emphasis-alist (quote ((* bold b /b) (/ italic i /i) (_ underline span style=\text-decoration:underline;\ /span) (= org-code code /code verbatim) (~ org-verbatim code /code verbatim) (+ (:strike-through t) del /del) (@ org-warning b /b))) org-export-latex-emphasis-alist (quote ((* \\textbf{%s} nil) (/ \\emph{%s} nil) (_ \\underline{%s} nil) (+ \\texttt{%s} nil) (= \\verb=%s= nil) (~ \\verb~%s~ t) (@ \\alert{%s} nil))) ) --8---cut here---end---8--- I'm not sure what the default is but you can see what you've got by looking at these two variables. I should also add that, if you are wanting to use the same org document for both beamer and normal latex export, you should add the following command to the org file setup: #+latex_header: \ifx\alert\undefined\let\alert\textbf\fi this defines \alert for non-beamer use to be equivalent to \textbf. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mode 7.01, error while scheduling item
(it would be better if you reloaded the appropriate .el files - org.el in this case - and *then* took the backtrace.) I am not an elisp expert, nor know the internals of orgmode, so sorry about that. There are two select-window calls in org-eval-in-calendar: which one fails? I presume the first one, but it might be a good idea to make sure. Another way to ask the same thing: is there a *Calendar* buffer popped up when you get the error? If not, why not? No calendar window pops up. I have no idea why. On Tue, Aug 17, 2010 at 1:24 PM, Nick Dokos nicholas.do...@hp.com wrote: Marcelo de Moraes Serpa celose...@gmail.com wrote: Hey guys, I'm still having this issue. I've tried downloading emacs again from emacsformacosx.com, but the problem is still there. Any ideas? Thanks, Marcelo. On Thu, Aug 5, 2010 at 1:37 PM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Hi Bastien, I've posted the backtrace, it should be in the thread, a few messages earlier. I didn't find the backtrace in gmane, but I did find it eventually in the list archive (I guess something thought it might be spam/malware and got rid of it?) I append it (shortened to get rid of most of the binary crud) to this mail for reference (it would be better if you reloaded the appropriate .el files - org.el in this case - and *then* took the backtrace.) There are two select-window calls in org-eval-in-calendar: which one fails? I presume the first one, but it might be a good idea to make sure. Another way to ask the same thing: is there a *Calendar* buffer popped up when you get the error? If not, why not? Can you edebug-defun the function org-eval-in-calendar and then step through it? More questions than answers, but maybe something will click. Nick Function: (defun org-eval-in-calendar (form optional keepdate) Eval FORM in the calendar window and return to current window. Also, store the cursor date in variable org-ans2. (let ((sf (selected-frame)) (sw (selected-window))) (select-window (get-buffer-window *Calendar* t)) (eval form) (when (and (not keepdate) (calendar-cursor-to-date)) (let* ((date (calendar-cursor-to-date)) (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date (setq org-ans2 (format-time-string %Y-%m-%d time (move-overlay org-date-ovl (1- (point)) (1+ (point)) (current-buffer)) (select-window sw) (org-select-frame-set-input-focus sf))) Backtrace: Debugger entered--Lisp error: (wrong-type-argument window-live-p nil) select-window(nil) org-eval-in-calendar(nil t) byte-code(... [def date offset-years year month day calendar calendar-forward-day time-to-days calendar-current-date nil 0 error There was no year zero 31 2 4 23 10 abs zerop 100 400 365 (12 31 -1) org-eval-in-calendar t current-local-map copy-keymap org-defkey org-calendar-select [mouse-1] org-calendar-select-mouse [mouse-2] [(meta shift left)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [(meta shift right)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [(meta shift up)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [(meta shift down)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [27 (shift left)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [27 (shift right)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [27 (shift up)] #[nil \300\301!\207 [org-eval-in-calendar ...] 2 nil nil] [27 (shift down)] ...] 9) org-read-date(nil to-time nil nil nil nil) byte-code(... [time what end org-scheduled-time-regexp org-deadline-time-regexp ts (scheduled deadline) org-back-to-heading t outline-next-heading re-search-forward scheduled match-string 1 apply encode-time org-parse-time-string org-get-compact-tod org-read-date nil to-time (scheduled deadline) org-insert-time-stamp looking-at \\( *\\)[^ \n]* 0 \n [ ]* throw exit [^ \n]*? [^ \n]* insert-before-markers -1 org-indent-to-column deadline closed replace-match --+[^]+ + 32 [ ]*\n 10 point-at-eol default-time default-input org-insert-labeled-timestamps-at-point org-scheduled-string ...] 7) org-add-planning-info(scheduled nil closed) org-schedule(nil) call-interactively(org-schedule nil nil) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-capture + autoload
Jambunathan K kjambunat...@gmail.com writes: It would be convenient if I could do a M-x customize-group org-capture and/or M-x customize-variable org-capture-templates without having triggered a prior org-capture. For now, I trigger a capture, abort it and then proceed ahead with customizing these. Add (require 'org-capture) to your .emacs -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [BUG] org-capture: file+function
jambu I wonder whether this - create entry at the target file at jambu the current cursor location - is a common workflow for jambu others. If yes, may be having an escape sequence for this jambu would be a good idea. Went for a jog. As a result I think there could be some disagreement on whether this is a bug. My current need is quite simple. I need some way to express this - 1. The captured entry goes in to the given target file. 2. It goes under the heading where the cursor is. The cursor may or maynot be on the target heading. 3. It goes as a subheading under the current heading. Append or prepend as specified. That said there should be a way to express this as well - the entry goes where the point is and the way it is specified. (ie dwim) Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Babel: interweaving code and results?
David Hajage dhaj...@gmail.com writes: exactly what I want! But an new option would be greater... It wouldn't be hard to add an :interleave (or :echo) option that has this effect for external R processes. But we should really address a couple of other issues: - implementation for :session (in principle sounds not hard, as it involves *not* doing something (i.e. not removing commands from comint output)). - implementation for other external interpreter processes If anyone has instructions for other interpreters then that would help. For bash, it's somewhat similar to 'bash -x'. I looked at man python and didn't see anything; perhaps it is accomplished by modifying the output stream when python is running rather than as a command line option to the interpreter. ruby? etc. Dan Yes, I know about :exports both, but if code and results are interleaved, I don't need to export the code (in my case). That's why I use :exports results. Thank you very much for this. David On Wed, Aug 18, 2010 at 16:49, Dan Davison davi...@stats.ox.ac.uk wrote: Erik Iverson er...@ccbr.umn.edu writes: David, On 08/18/2010 08:09 AM, David Hajage wrote: Hello, I am back with babel and R with a new question. Is it possible to interweave each line of code with its results? An example to explain what I mean: #+SRCNAME: foo #+BEGIN_SRC R :results output :exports results 2+2 3+3 #+END_SRC #+results: foo : [1] 4 : [1] 6 When exporting (to html or latex), I would like to print what is going on in the R console. So, I would like: #+results: foo : 2+2 : [1] 4 : 3+3 : [1] 6 Is it possible, or eventualy planned for the futur? Hi David, This is actually quite easy, although I don't think anyone's flagged this possibility up: just do (setq org-babel-R-command R --silent --no-save) (Our default is --slave --no-save) There's an example session below. By the way, can I just check that you're aware of the ':exports both' option? That's the canonical Org way of exporting both code and results. It doesn't interleave them: it's more geared towards 'one code block - one result'. But I understand that there may be situations where interleaved is desired. Erik -- You might well be right that we should add an :interleave option to modify :results output like this. --8---cut here---start-8--- #+begin_src emacs-lisp org-babel-R-command #+end_src #+results: : R --slave --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : [1] 4 : [1] 6 #+begin_src emacs-lisp (setq org-babel-R-command R --silent --no-save) #+end_src #+results: : R --silent --no-save #+begin_src R :results output 2+2 3+3 #+end_src #+results: : 2+2 : [1] 4 : 3+3 : [1] 6 : --8---cut here---end---8--- [Maybe we can battle that trailing prompt character] Dan I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] EmacsForMacOSX - copy paste in orgmode
Hi, I can copy/paste with no problems between mac applications an emacs (emacsformacosx). I have to OPTION-C / V on mac apps, and C-y or M-w on Emacs. I have the same configuration as you for mac-related stuff.. Regards, .j. On Wed, Aug 18, 2010 at 12:01:18PM +0200, Erwin Panen wrote: Do you have a way to copy / paste between say Firefox and Emacs / orgmode? It doesn't seem to work, and I've found some posts googling, but no apparent solution. It seems Acquamacs will do it, so I'd assume it's a matter of configuring .emacs? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Links Lost and Export-Report
Stefan Vollmar voll...@nf.mpg.de writes: Hello, I currently have a showstopper-class problem with links. I am using Org-mode release_7.01h-129-g3363a with Emacs 23.2.1. I have (require 'org-install) (require 'org-id) in my .emacs file. This works fine: (1) org-link-to-org-use-id is t and when I do a C-c l (org-store-link), a a globally unique ID property is generated for the current section - so far so good. (2) I then change to another org-file and insert the link with C-c C-l (org-store-link), looking at the org source shows me that, indeed, the newly generated ID (id:3A50... in that example) has been used. (3) When I do a C-c C-o (org-open-at-point) on the new link, the target org-file is opened at exactly the right place - nice! (4) When I export the file as HTML, the link works exactly as expected: a href=some-file.html#ID-3A50... Here is the problem: I have two computers with very similar setups (Emacs and Org-mode: same versions; laptop and desktop) and synchronize org-files via a subversion repository. If I do a subversion update (sync the org-files to that computer) and then export to HTML on that computer, the previously working links do not work any more: there is no #ID-... in the link, in fact, the link is simply to the file that contains the link (not even the file I want to link to). Maybe Org-mode was not able to find the id? I notice that there is no file referenced in the automatically generated [[id:3A50...][My Link]] link. How does Org-mode look for files that might contain a specific id? The org manual says [...] and one that is globally unique and works even if the entry is moved from file to file implying that there is a strategy for looking for suitable candidates. I assume that Org-mode will look in currently open buffers first, but even if I load the correct target file, HTML export will not create the proper link. Perhaps a caching problem (I use global-auto-revert-mode)? Maybe the above is a problem with my particular setup, but another and related problem is this: Org-mode silently ignoring link problems and misspelled macro names is dangerous - it happened more than once in our case that HTML content went online with broken links and {{{my-misspelled-macro()}}} snippets. How about an (optional) report after generating more complex HTML contents: maybe it could be another org-file with links to offending Org code (unresolved links, unknown macro names) and an easy-to-parse summary line for batch jobs (done in 5.6s, *** 2 errors found)? I am perfectly willing to help with this, unfortunately, my elisp skills are fairly basic and I fear this requires some intimate knowledge of the export process. I think you need to look in the ~/.emacs.d/.org-id-locations file. This maps link ids to files. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Links Lost and Export-Report
Dear Bernt, On 18.08.2010, at 18:13, Bernt Hansen wrote: Stefan Vollmar voll...@nf.mpg.de writes: Hello, I currently have a showstopper-class problem with links. I am using Org-mode release_7.01h-129-g3363a with Emacs 23.2.1. I have (require 'org-install) (require 'org-id) in my .emacs file. This works fine: (1) org-link-to-org-use-id is t and when I do a C-c l (org-store-link), a a globally unique ID property is generated for the current section - so far so good. (2) I then change to another org-file and insert the link with C-c C-l (org-store-link), looking at the org source shows me that, indeed, the newly generated ID (id:3A50... in that example) has been used. (3) When I do a C-c C-o (org-open-at-point) on the new link, the target org-file is opened at exactly the right place - nice! (4) When I export the file as HTML, the link works exactly as expected: a href=some-file.html#ID-3A50... Here is the problem: I have two computers with very similar setups (Emacs and Org-mode: same versions; laptop and desktop) and synchronize org-files via a subversion repository. If I do a subversion update (sync the org-files to that computer) and then export to HTML on that computer, the previously working links do not work any more: there is no #ID-... in the link, in fact, the link is simply to the file that contains the link (not even the file I want to link to). Maybe Org-mode was not able to find the id? [...] I think you need to look in the ~/.emacs.d/.org-id-locations file. This maps link ids to files. -Bernt I think it is very likely that this is part of problem - I synchronize the directories containing my org-files and have, so far, done nothing about ~/.emacs.d/.org-id-locations. What is the best way to deal with this? - Synchronize? - Delete? - Force re-generation? I have just taken a look at that file. It seems to map one id to one file. How does that help Org-mode if I rename an org-file that contains an id? Many thanks for your help! Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Emailing my org file
I really like the idea of having a single queue of random notes to sort through. And I really want that singe queue to be the * Notes section at the end of my plan.org file. Here's the thing: sometimes I don't have my org file and my handy-dandy remember.el macros handy. Like when I'm away from my PC. This is when I usually wind up emailing myself. Or (more recently) calling my Jott account which then emails me. In a perfect world I could somehow send emails into my Org file instead. My question: has anyone come up with a configuration where they are able to import emails sent to a specific address into Org bullets en masse? Thanks, -- Avdi ShipRise LLC: http://shiprise.net Wide Teams: http://wideteams.com Developer Blog: http://avdi.org/devblog/ York Coworking: http://www.meetup.com/york-coworking/ Twitter: http://twitter.com/avdi The Lazy Faire: http://thelazyfaire.org ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Links Lost and Export-Report
Stefan Vollmar voll...@nf.mpg.de writes: Dear Bernt, On 18.08.2010, at 18:13, Bernt Hansen wrote: Stefan Vollmar voll...@nf.mpg.de writes: Hello, I currently have a showstopper-class problem with links. I am using Org-mode release_7.01h-129-g3363a with Emacs 23.2.1. I have (require 'org-install) (require 'org-id) in my .emacs file. This works fine: (1) org-link-to-org-use-id is t and when I do a C-c l (org-store-link), a a globally unique ID property is generated for the current section - so far so good. (2) I then change to another org-file and insert the link with C-c C-l (org-store-link), looking at the org source shows me that, indeed, the newly generated ID (id:3A50... in that example) has been used. (3) When I do a C-c C-o (org-open-at-point) on the new link, the target org-file is opened at exactly the right place - nice! (4) When I export the file as HTML, the link works exactly as expected: a href=some-file.html#ID-3A50... Here is the problem: I have two computers with very similar setups (Emacs and Org-mode: same versions; laptop and desktop) and synchronize org-files via a subversion repository. If I do a subversion update (sync the org-files to that computer) and then export to HTML on that computer, the previously working links do not work any more: there is no #ID-... in the link, in fact, the link is simply to the file that contains the link (not even the file I want to link to). Maybe Org-mode was not able to find the id? [...] I think you need to look in the ~/.emacs.d/.org-id-locations file. This maps link ids to files. -Bernt I think it is very likely that this is part of problem - I synchronize the directories containing my org-files and have, so far, done nothing about ~/.emacs.d/.org-id-locations. What is the best way to deal with this? - Synchronize? - Delete? - Force re-generation? I think you can just regenerate the file with a call to M-x org-id-update-id-locations I have just taken a look at that file. It seems to map one id to one file. How does that help Org-mode if I rename an org-file that contains an id? This will probably make your ids and files out of sync so they don't work for links in those files anymore. Regenerating the list for all of the files you have with id links should fix the problem. I use the feature but don't rename my org files so I've never run into this issue (if it is one). Regards, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] properties in agenda prefix
Hi, Skip Collins skip.coll...@gmail.com writes: What property would you find useful to have and why? CUSTOM_ID could be handy right away. If arbitrary properties were accessible in agenda prefix, it would enable very flexible agenda constructs. Consider a setup in which headlines are given a tracking number that can be used as a reference number outside of org. The reference number would naturally be a property, not a tag. To get a nice list that includes the reference number, it must be assigned to CATEGORY. Consider also a group agenda in which items are flagged in the prefix with the names of their owners. Again, the names must now be assigned to CATEGORY. Yes, I agree `org-agenda-prefix-format' could use a more general syntax, e.g. allow user-defined properties. As a design goal, I think would it make sense for agenda and column modes to have some overlapping features and syntax, including the ability to access properties. I grasp the general idea but a more concrete use-case would help here again... thanks! -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-capture + autoload
It would be convenient if I could do a M-x customize-group org-capture and/or M-x customize-variable org-capture-templates without having triggered a prior org-capture. For now, I trigger a capture, abort it and then proceed ahead with customizing these. Add (require 'org-capture) to your .emacs I was wondering whether the symbol could be 'autoloaded' just as the org-capture defun is autoloaded. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: feature request: a basic conversation manager
In the context of the original post, is there a possible way to do this. 1. I mark a TODO entry in todo.org as done. 2. An org-id (say ID-TODO) gets created for the TODO entry if there is none yet. 3. The state transition to DONE triggers a capture rule. The conversation is collected in a capture buffer and filed as a heading under conversation.org.An org-id (say ID-CONV) is generated for the captured entry. 4. ID-TODO is noted in the conversation.org 5. ID-CONV is noted down in todo.org Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: feature request: a basic conversation manager
On Thu, 19 Aug 2010 00:31:05 +0530, Jambunathan K kjambunat...@gmail.com wrote: In the context of the original post, is there a possible way to do this. 1. I mark a TODO entry in todo.org as done. 2. An org-id (say ID-TODO) gets created for the TODO entry if there is none yet. 3. The state transition to DONE triggers a capture rule. The conversation is collected in a capture buffer and filed as a heading under conversation.org.An org-id (say ID-CONV) is generated for the captured entry. 4. ID-TODO is noted in the conversation.org 5. ID-CONV is noted down in todo.org Jambunathan K. I guess you could use the org-after-todo-state-change-hook together with the functionality of org-capture to implement this quite easily? Of course, this requires some emacs lisp knowledge. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-capture + autoload
Jambunathan K kjambunat...@gmail.com writes: It would be convenient if I could do a M-x customize-group org-capture and/or M-x customize-variable org-capture-templates without having triggered a prior org-capture. For now, I trigger a capture, abort it and then proceed ahead with customizing these. Add (require 'org-capture) to your .emacs I was wondering whether the symbol could be 'autoloaded' just as the org-capture defun is autoloaded. The org-capture file is autoloaded now the first time you use it ... and you want the definitions before you use it so you need to load it explicitly first -- which is what the above require does I think. I'm not aware of anything like that for symbols but I'm not an emacs lisp expert by any means. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mode 7.01, error while scheduling item
Marcelo de Moraes Serpa celose...@gmail.com wrote: (it would be better if you reloaded the appropriate .el files - org.el in this case - and *then* took the backtrace.) I am not an elisp expert, nor know the internals of orgmode, so sorry about that. No apology needed: it was meant as a (useful?) pointer for the future. You might try it now just to see what happens: M-x load-library RET org.el RET M-x set-variable RET debug-on-error RET t RET Then trigger the error and look at the backtrace. Then you can reload the compiled version if you want: M-x load-library RET org RET There are two select-window calls in org-eval-in-calendar: which one fails? I presume the first one, but it might be a good idea to make sure. Another way to ask the same thing: is there a *Calendar* buffer popped up when you get the error? If not, why not? No calendar window pops up. I have no idea why. So the problem is that org-read-date which is supposed to pop up the calendar, for some reason does not do so. What happens if you try to pop up a calendar by hand? M-x calendar RET Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Some useful timestamp s-expressions
In org, timestamps can be in the usual angle-bracket format, eg 2010-08-19 +2w, or you can use lisp s-expressions. These are in the same format as the s-expressions used in the 'diary'/'calendar' emacs packages. I only discovered these recently but have been able to use them to schedule some complex recurring items. I thought I would share the code here. 1. Recurring items with a limited number of occurrences For example, say you are taking night classes in Spanish. The class is every Wednesday evening at 7pm, starting on 18 August, and runs for 8 weeks. AFAIK Org's timestamps do not support limited occurrences of recurrent items -- you have to schedule the item with infinite recurrences, then delete it when it finishes. To schedule the Spanish classes, put the following in your .emacs: (defun diary-limited-cyclic (recurrences interval m d y) For use in emacs diary. Cyclic item with limited number of recurrences. Occurs every INTERVAL days, starting on -MM-DD, for a total of RECURRENCES occasions. (let ((startdate (calendar-absolute-from-gregorian (list m d y))) (today (calendar-absolute-from-gregorian date))) (and (not (minusp (- today startdate))) (zerop (% (- today startdate) interval)) ( (floor (- today startdate) interval) recurrences The item in the org file looks like this: ** 19:00-21:00 Spanish lessons %%(diary-limited-cyclic 8 7 8 18 2010) 2. Public holiday that is the nearest Monday to DATE In New Zealand each regional capital has an Anniversary Day. The date of Auckland's anniversary day is the nearest Monday to 29 January. Put this in your .emacs: (defun calendar-nearest-to (target-dayname target-day target-month) Recurring event that occurs in the nearest TARGET-DAYNAME to the date TARGET-DAY, TARGET-MONTH each year. (interactive) (let* ((dayname (calendar-day-of-week date)) (target-date (list target-month target-day (calendar-extract-year date))) (days-diff (abs (- (calendar-day-number date) (calendar-day-number target-date) (and (= dayname target-dayname) ( days-diff 4 Now we can schedule Auckland Anniversary Day. The first argument, 1, means Monday (days of the week are numbered starting with Sunday=0). *** Auckland Anniversary Day %%(calendar-nearest-to 1 29 1) 3. Public holiday on the 4th Monday in October. This does not require any additions to .emacs: *** Labour Day (NZ) %%(diary-float 10 1 4) 4. Easter Easter's date moves around from year to year according to a complicated set of criteria which I do not claim to understand. However the following code will allow you to schedule recurring events relative to Easter sunday. Note: the function da-easter is from: http://github.com/soren/elisp/blob/master/da-kalender.el Put the following in your .emacs: (defun da-easter (year) Calculate the date for Easter Sunday in YEAR. Returns the date in the Gregorian calendar, ie (MM DD YY) format. (let* ((century (1+ (/ year 100))) (shifted-epact (% (+ 14 (* 11 (% year 19)) (- (/ (* 3 century) 4)) (/ (+ 5 (* 8 century)) 25) (* 30 century)) 30)) (adjusted-epact (if (or (= shifted-epact 0) (and (= shifted-epact 1) ( 10 (% year 19 (1+ shifted-epact) shifted-epact)) (paschal-moon (- (calendar-absolute-from-gregorian (list 4 19 year)) adjusted-epact))) (calendar-dayname-on-or-before 0 (+ paschal-moon 7 (defun da-easter-gregorian (year) (calendar-gregorian-from-absolute (da-easter year))) (defun calendar-days-from-easter () When used in a diary sexp, this function will calculate how many days are between the current date (DATE) and Easter Sunday. (- (calendar-absolute-from-gregorian date) (da-easter (calendar-extract-year date Now we can schedule the public holidays associated with Easter as recurring events. Good Friday is 2 days before Easter, Easter Monday is one day after. *** Good Friday %%(= -2 (calendar-days-from-easter)) *** Easter Sunday %%(= 0 (calendar-days-from-easter)) *** Easter Monday %%(= 1 (calendar-days-from-easter)) Paul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Links Lost and Export-Report
Hello, many thanks to Bernt Hansen for finding the root of my problem. Here is a recipe to unhappiness: Start with two files a.org and b.org which are part of some files you have created with Org-mode in mind for efficently producing high quality HTML content. Set up Org-mode to use ids for links; do an org-store-link somewhere in file a.org, then an insert-store-link somewhere in file b.org. Enjoy short-lived happiness that everything works after exporting to HTML. Then: delete ~/.emacs.d/.org-id-locations This is a good way to simulate this common scenario: transfer your org files to another system, by preference with a version control system so you can be sure the files are identical on both systems and then continue working on that computer; keep in mind: this is the default state of affairs when working in a team! Also note that .org-id-locations uses absolute path names, so syncing that file across different user work stations will seldom work. Now observe that after exporting to HTML *none* of your ID based links work that refer to locations outside the originating org file. Moreover, observe that Org-mode certainly must have noticed something did not work and failed to mention it. org-id-update-id-locations will not help you, unless (a) you remember to use it (preferably before you have already put HTML files with broken links online; this goes for your co-workers, too!), (b) files a.org and b.org happen to be agenda files or (c) happen to be mentioned in org-id-locations (this I learned from describe function: org-id-update-id-locations). None of the above is likely. Org-mode for HTML publishing is an excellent tool (for lots and lots of other things, too, of course) and I think using globally unique ids is, in general, a great idea. This is why I get a bit emotional about this id link business (sorry). Here are some suggestions: - expand the use of ids, so that, in analogy to other links, the inserted link can also contain a file name if it refers to another org fileD, maybe like this: file-id:some-file.org#8329AEF0-4885-486A-A1B6-BB82B3E92184 - if an id is unknown, search all files in the current publishing project, using the same selection of org-files that will also be used for project-based publishing - be verbose about links that could not be resolved, warn and potentially stop processing at that file (and while at it, also complain about unresolved macro definitions and finish with a summary line) - mention in the org-manual that using ids is not recommended for using links between different files because they break so easily (this is hardly an option, is it?) Let me emphasize that I am really generally a very happy org user and I am quite willing to contribute (as far as I can) to a solution to what I think is a problem with id-based links. Warm regards, Stefan On 18.08.2010, at 19:15, Bernt Hansen wrote: Stefan Vollmar voll...@nf.mpg.de writes: [...] I think you need to look in the ~/.emacs.d/.org-id-locations file. This maps link ids to files. -Bernt I think it is very likely that this is part of problem - I synchronize the directories containing my org-files and have, so far, done nothing about ~/.emacs.d/.org-id-locations. What is the best way to deal with this? - Synchronize? - Delete? - Force re-generation? I think you can just regenerate the file with a call to M-x org-id-update-id-locations I have just taken a look at that file. It seems to map one id to one file. How does that help Org-mode if I rename an org-file that contains an id? This will probably make your ids and files out of sync so they don't work for links in those files anymore. Regenerating the list for all of the files you have with id links should fix the problem. I use the feature but don't rename my org files so I've never run into this issue (if it is one). -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Links Lost and Export-Report
Bernt Hansen be...@norang.ca writes: I think you can just regenerate the file with a call to M-x org-id-update-id-locations This works for agenda files only, as well as files mentioned in the variable `org-id-locations'. Thus you need to rename the element in the list in your id-locations file. E.G.: Change ~/.emacs.d/.org-id-locations: ((~/emacs/org/notes/index.org org:1234...) ... sh$ mv ~/emacs/org/notes/index.org ~/emacs/org/notes/Linux/index.org Change ~/.emacs.d/.org-id-locations accordingly: ((~/emacs/org/notes/Linux/index.org org:1234...) ... Shouldn't we have a command `org-move-file' or `org-rename-file' that takes care of id-locations? Best wishes Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: problem with babel and R
Hi David, #+end_results: foo (or some derivative syntax) sounds like a good idea, I'll add it to the Babel task list. Thanks -- Eric David Hajage dhaj...@gmail.com writes: OK, I understand that using :results org, the results is not altered, there is no post processing. But I don't want a post processing, I would like a way to tell babel where is the begining *and the end* of the output produces by a particular R source block. I think an #+end_results: foo at the end of the output could do the job. Then, the option replace could work in all situation, even if a blank line is inserted somewhere in the org output. No? David On Tue, Aug 17, 2010 at 17:15, Eric Schulte schulte.e...@gmail.com wrote: Hi David, David Hajage dhaj...@gmail.com writes: Thank you very much for your answer. My pleasure But when I run the following code directly into R, no extra lines is added by the ascii function: library(ascii) Le chargement a nécessité le package : proto options(asciiType = org) ascii(head(esoph)) # no extra line | | agegp | alcgp | tobgp| ncases | ncontrols | |---+---+---+--++---| | 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 | | 2 | 25-34 | 0-39g/day | 10-19| 0.00 | 10.00 | | 3 | 25-34 | 0-39g/day | 20-29| 0.00 | 6.00 | | 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 | | 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 | | 6 | 25-34 | 40-79 | 10-19| 0.00 | 7.00 | ah, my fault, this isn't an ascii issue. In fact, the solution was to run 'library(ascii)' in another source block. When I run only this: Thanks for pointing this out, I see what's happening now. The :results output header argument (see [1] for information on header arguments) informs Org-mode to collect all of the output of the source code block. This means that when library(ascii) is run, an empty line is collected and appended to the output. Removing the output header argument should fix this issue. My I ask why you are using the ascii package for simple table output? It seems to me that this would be much simpler using the pure Org-mode solution I suggested in my previous email. #+begin_src R :session *R* :results output org replace ascii(head(esoph)) #+end_src #+results: foo | | agegp | alcgp |tobgp | ncases | ncontrols | |---+---+---+--++---| | 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 | | 2 | 25-34 | 0-39g/day |10-19 | 0.00 | 10.00 | | 3 | 25-34 | 0-39g/day |20-29 | 0.00 | 6.00 | | 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 | | 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 | | 6 | 25-34 | 40-79 |10-19 | 0.00 | 7.00 | Everything is then OK. I have no idea why library(ascii)... generates an extra empty line in the results. If I understand, the results is all the text directly under #+results:, until the first empty line. But what happens if the result contains empty lines? Here an example with ascii and Hmisc package: This is not quite right, see [2] for a discussion of results handling. The org option to results is a special case in which no post-processing of the results takes place, and the raw output is inserted into the org-mode buffer. Under normal usage w/o this header argument, results are either tabular or are textual. If tabular a single table can easily be recognized and handled, if textual they are normally enclosed in a block (example, html, latex, etc...), the block then allows for empty lines while still making it clear where the results end. library(ascii) library(Hmisc) ascii(describe(esoph[, 1:3])) #+CAPTION: esoph[, 1:3] - 3 Variable - 88 Observations *agegp* | n | missing | unique | | 88 | 0 | 6 | | | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ | | Frequency | 15| 15| 16| 16| 15| 11 | | % | 17| 17| 18| 18| 17| 12 | *alcgp* | n | missing | unique | | 88 | 0 | 4 | 0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%) *tobgp* | n | missing | unique | | 88 | 0 | 4 | 0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%) As you can see, describe() generate a description of my data, and ascii generate org-mode markup as result. The result contains empty rows. Since there is no special characters indicating the end of the results in babel, replace option will not work in this case. Is there any workaround? When using :results org there is no workaround, as the explicit purpose of this setting is for your results to be inserted directly into the Org-mode buffer w/o any interpretation or alteration. In general I would recommend keeping a 1-to-1 mapping between code blocks
[Orgmode] org-publish skips the file name in inter-page links
Hi, here is a bug related to this syntax: a href=#id:jgg8k741eue0 To reproduce this you need latest Emacs (e.g. from Bazaar), latest org-mode, and 3 files in ~/org-linktest/ (remove the BEGIN_QUOTE etc): 1) ~/org-linktest/has_ids.org: #+BEGIN_QUOTE *** TODO first section :PROPERTIES: :ID: jgg8k741eue0 :END: Something good. #+END_QUOTE 2) ~/org-linktest/linker.org: #+BEGIN_QUOTE * Hi Go to [[id:jgg8k741eue0][first section]]… #+END_QUOTE 3) ~/org-linktest/linktest.el: #+BEGIN_QUOTE (add-to-list 'load-path /w/org-mode/lisp) ; or wherever you have latest org-mode (require 'org) (require 'org-publish) (setq org-publish-project-alist nil) (add-to-list 'org-publish-project-alist `(linktest :base-directory ~/org-linktest/ :publishing-directory ~/org-linktest/ :auto-postamble nil ) ) (setq org-publish-use-timestamps-flag nil) ; (org-publish-file ~/org-linktest/linker.org) (org-publish-project linktest t) #+END_QUOTE To reproduce: 1) Open: emacs -Q 2) Open linktest.el 3) Eval it (eval-buffer). linker.html and has_ids.html are created in ~/org-linktest/ Result: linker.html has this code for the link, which is wrong: p Go to a href=#id:jgg8k741eue0first section/a… /p/div It should be: p Go to a href=has_ids.html#id:jgg8k741eue0first section/a… /p/div Notes: - It works correctly when normal export (C-c C-e H) is used. - I tried to bisect the history tree from 5.23 to now and I saw the bug in all versions. Strange, since I thought this didn't happen before. Maybe it's in Emacs? Or it isn't a bug? But it feels like a bug. - It also happens with new-style IDs, which are longer Thanks, Daniel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] properties in agenda prefix
On Wed, Aug 18, 2010 at 10:43 AM, Bastien bastien.gue...@wikimedia.fr wrote: I grasp the general idea but a more concrete use-case would help here again... thanks! Perhaps I am trying to use agenda in a way that was never intended, to export printable lists in tabular form. Using agenda mode, I can generate an html list that has one line per item, albeit with limited formatting and without property information. This does not work easily with column mode, which is not printable, or org-mode export, which is not tabular. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Request for opinions: [ANN] List improvement v.2o
I have the opposite view. I did not tried yet the code because I am a naive git user and worry about messing things up adding another complex branch. However I must say that all my lists (and I have a lot of them!) do not satisfy me completely. The problem of breaking indentation and changing patterns in the middle of lists is often annoying. I am willing to have some work to rearrange all my lists if the implementation is changing the viewpoint we have about lists (therefore turning future impriovements easier) and the code is intrisically coherent as I think Nicolas code is. In other words, One vote for Nicolas code. Daniel 2010/8/18 Sébastien Vauban wxhgmqzgw...@spammotel.com Hi Carsten and Nicolas, Carsten Dominik wrote: On Jul 22, 2010, at 11:08 PM, Nicolas Goaziou wrote: 2. Some existing documents will break because we now need an end-of-list that is clearly defined, and not by indentation. Nicolas proposes a double empty line or some special string to be defined. Breaking existing documents is always bad, of cause. I still hope we can do something about this if we think really hard, like making text that is less indented than the list *also* terminate a list. From what I understood, without testing anything of it (yet), I would really urge for a support of old documents (the ones with simple constructions) by adopting a rule like the one you propose, where indentation could terminate the list. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some useful timestamp s-expressions
I think it will be great if this goes into worg? - Noorul On Aug 19, 2010, at 1:52 AM, Paul Sexton psex...@xnet.co.nz wrote: In org, timestamps can be in the usual angle-bracket format, eg 2010-08-19 +2w, or you can use lisp s-expressions. These are in the same format as the s-expressions used in the 'diary'/'calendar' emacs packages. I only discovered these recently but have been able to use them to schedule some complex recurring items. I thought I would share the code here. 1. Recurring items with a limited number of occurrences For example, say you are taking night classes in Spanish. The class is every Wednesday evening at 7pm, starting on 18 August, and runs for 8 weeks. AFAIK Org's timestamps do not support limited occurrences of recurrent items -- you have to schedule the item with infinite recurrences, then delete it when it finishes. To schedule the Spanish classes, put the following in your .emacs: (defun diary-limited-cyclic (recurrences interval m d y) For use in emacs diary. Cyclic item with limited number of recurrences. Occurs every INTERVAL days, starting on -MM-DD, for a total of RECURRENCES occasions. (let ((startdate (calendar-absolute-from-gregorian (list m d y))) (today (calendar-absolute-from-gregorian date))) (and (not (minusp (- today startdate))) (zerop (% (- today startdate) interval)) ( (floor (- today startdate) interval) recurrences The item in the org file looks like this: ** 19:00-21:00 Spanish lessons %%(diary-limited-cyclic 8 7 8 18 2010) 2. Public holiday that is the nearest Monday to DATE In New Zealand each regional capital has an Anniversary Day. The date of Auckland's anniversary day is the nearest Monday to 29 January. Put this in your .emacs: (defun calendar-nearest-to (target-dayname target-day target-month) Recurring event that occurs in the nearest TARGET-DAYNAME to the date TARGET-DAY, TARGET-MONTH each year. (interactive) (let* ((dayname (calendar-day-of-week date)) (target-date (list target-month target-day (calendar-extract-year date))) (days-diff (abs (- (calendar-day-number date) (calendar-day-number target-date) (and (= dayname target-dayname) ( days-diff 4 Now we can schedule Auckland Anniversary Day. The first argument, 1, means Monday (days of the week are numbered starting with Sunday=0). *** Auckland Anniversary Day %%(calendar-nearest-to 1 29 1) 3. Public holiday on the 4th Monday in October. This does not require any additions to .emacs: *** Labour Day (NZ) %%(diary-float 10 1 4) 4. Easter Easter's date moves around from year to year according to a complicated set of criteria which I do not claim to understand. However the following code will allow you to schedule recurring events relative to Easter sunday. Note: the function da-easter is from: http://github.com/soren/elisp/blob/master/da-kalender.el Put the following in your .emacs: (defun da-easter (year) Calculate the date for Easter Sunday in YEAR. Returns the date in the Gregorian calendar, ie (MM DD YY) format. (let* ((century (1+ (/ year 100))) (shifted-epact (% (+ 14 (* 11 (% year 19)) (- (/ (* 3 century) 4)) (/ (+ 5 (* 8 century)) 25) (* 30 century)) 30)) (adjusted-epact (if (or (= shifted-epact 0) (and (= shifted-epact 1) ( 10 (% year 19 (1+ shifted-epact) shifted-epact)) (paschal-moon (- (calendar-absolute-from-gregorian (list 4 19 year)) adjusted-epact))) (calendar-dayname-on-or-before 0 (+ paschal-moon 7 (defun da-easter-gregorian (year) (calendar-gregorian-from-absolute (da-easter year))) (defun calendar-days-from-easter () When used in a diary sexp, this function will calculate how many days are between the current date (DATE) and Easter Sunday. (- (calendar-absolute-from-gregorian date) (da-easter (calendar-extract-year date Now we can schedule the public holidays associated with Easter as recurring events. Good Friday is 2 days before Easter, Easter Monday is one day after. *** Good Friday %%(= -2 (calendar-days-from-easter)) *** Easter Sunday %%(= 0 (calendar-days-from-easter)) *** Easter Monday %%(= 1 (calendar-days-from-easter)) Paul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list.
Re: [Orgmode] properties in agenda prefix
Skip Collins skip.coll...@gmail.com wrote: On Wed, Aug 18, 2010 at 10:43 AM, Bastien bastien.gue...@wikimedia.fr wrote: I grasp the general idea but a more concrete use-case would help here again... thanks! Perhaps I am trying to use agenda in a way that was never intended, to export printable lists in tabular form. Using agenda mode, I can generate an html list that has one line per item, albeit with limited formatting and without property information. This does not work easily with column mode, which is not printable, or org-mode export, which is not tabular. Does org-write-agenda (C-x C-w in the agenda buffer) do what you want? Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some useful timestamp s-expressions
Really great Paul. Did you compared your Spanish classes examples with org-diary-class? Maybe (I did not tried!) your proposal is an improvement of this function. Thank you/ Gracias, Daniel 2010/8/18 Noorul Islam K M noo...@noorul.com I think it will be great if this goes into worg? - Noorul On Aug 19, 2010, at 1:52 AM, Paul Sexton psex...@xnet.co.nz wrote: In org, timestamps can be in the usual angle-bracket format, eg 2010-08-19 +2w, or you can use lisp s-expressions. These are in the same format as the s-expressions used in the 'diary'/'calendar' emacs packages. I only discovered these recently but have been able to use them to schedule some complex recurring items. I thought I would share the code here. 1. Recurring items with a limited number of occurrences For example, say you are taking night classes in Spanish. The class is every Wednesday evening at 7pm, starting on 18 August, and runs for 8 weeks. AFAIK Org's timestamps do not support limited occurrences of recurrent items -- you have to schedule the item with infinite recurrences, then delete it when it finishes. To schedule the Spanish classes, put the following in your .emacs: (defun diary-limited-cyclic (recurrences interval m d y) For use in emacs diary. Cyclic item with limited number of recurrences. Occurs every INTERVAL days, starting on -MM-DD, for a total of RECURRENCES occasions. (let ((startdate (calendar-absolute-from-gregorian (list m d y))) (today (calendar-absolute-from-gregorian date))) (and (not (minusp (- today startdate))) (zerop (% (- today startdate) interval)) ( (floor (- today startdate) interval) recurrences The item in the org file looks like this: ** 19:00-21:00 Spanish lessons %%(diary-limited-cyclic 8 7 8 18 2010) 2. Public holiday that is the nearest Monday to DATE In New Zealand each regional capital has an Anniversary Day. The date of Auckland's anniversary day is the nearest Monday to 29 January. Put this in your .emacs: (defun calendar-nearest-to (target-dayname target-day target-month) Recurring event that occurs in the nearest TARGET-DAYNAME to the date TARGET-DAY, TARGET-MONTH each year. (interactive) (let* ((dayname (calendar-day-of-week date)) (target-date (list target-month target-day (calendar-extract-year date))) (days-diff (abs (- (calendar-day-number date) (calendar-day-number target-date) (and (= dayname target-dayname) ( days-diff 4 Now we can schedule Auckland Anniversary Day. The first argument, 1, means Monday (days of the week are numbered starting with Sunday=0). *** Auckland Anniversary Day %%(calendar-nearest-to 1 29 1) 3. Public holiday on the 4th Monday in October. This does not require any additions to .emacs: *** Labour Day (NZ) %%(diary-float 10 1 4) 4. Easter Easter's date moves around from year to year according to a complicated set of criteria which I do not claim to understand. However the following code will allow you to schedule recurring events relative to Easter sunday. Note: the function da-easter is from: http://github.com/soren/elisp/blob/master/da-kalender.el Put the following in your .emacs: (defun da-easter (year) Calculate the date for Easter Sunday in YEAR. Returns the date in the Gregorian calendar, ie (MM DD YY) format. (let* ((century (1+ (/ year 100))) (shifted-epact (% (+ 14 (* 11 (% year 19)) (- (/ (* 3 century) 4)) (/ (+ 5 (* 8 century)) 25) (* 30 century)) 30)) (adjusted-epact (if (or (= shifted-epact 0) (and (= shifted-epact 1) ( 10 (% year 19 (1+ shifted-epact) shifted-epact)) (paschal-moon (- (calendar-absolute-from-gregorian (list 4 19 year)) adjusted-epact))) (calendar-dayname-on-or-before 0 (+ paschal-moon 7 (defun da-easter-gregorian (year) (calendar-gregorian-from-absolute (da-easter year))) (defun calendar-days-from-easter () When used in a diary sexp, this function will calculate how many days are between the current date (DATE) and Easter Sunday. (- (calendar-absolute-from-gregorian date) (da-easter (calendar-extract-year date Now we can schedule the public holidays associated with Easter as recurring events. Good Friday is 2 days before Easter, Easter Monday is one day after. *** Good Friday %%(= -2 (calendar-days-from-easter)) *** Easter Sunday %%(= 0 (calendar-days-from-easter)) *** Easter Monday %%(= 1 (calendar-days-from-easter)) Paul
Re: [Orgmode] Re: Links Lost and Export-Report
Dear Sebastian, I think your mail and my last one were sent almost at the same time. You are right about the limitations of org-id-update-id-locations. My last point about fixing .org-id-locations is that this is not feasible if you are working in a team (syncing via a code repository) on several loosely coupled org files that constitute parts of a web site: keeping .org-id-locations up-to-date is just too complex in that case (and this is not such an excentric scenario). To make org ids more robust, I suggested to: - expand the use of ids, so that, in analogy to other links, the inserted link can also contain a file name if it refers to another org file, maybe like this: file-id:some-file.org#8329AEF0-4885-486A-A1B6-BB82B3E9218 Most of the time, this would work (provided one uses relativ path names). Warm regards, Stefan On 18.08.2010, at 23:55, Sebastian Rose wrote: Bernt Hansen be...@norang.ca writes: I think you can just regenerate the file with a call to M-x org-id-update-id-locations This works for agenda files only, as well as files mentioned in the variable `org-id-locations'. Thus you need to rename the element in the list in your id-locations file. E.G.: Change ~/.emacs.d/.org-id-locations: ((~/emacs/org/notes/index.org org:1234...) ... sh$ mv ~/emacs/org/notes/index.org ~/emacs/org/notes/Linux/index.org Change ~/.emacs.d/.org-id-locations accordingly: ((~/emacs/org/notes/Linux/index.org org:1234...) ... Shouldn't we have a command `org-move-file' or `org-rename-file' that takes care of id-locations? Best wishes Sebastian -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: More structure on org-hacks.php
Carsten Dominik carsten.domi...@gmail.com writes: I think the file would benefit from a bit more structure (some top-level headings and the actually hacks as level two headings or so. I had a look at what is there so far. One way might be Toplevel-headlines like this: 1. Hacking Org: Modifying orgmode itself. 2. Hacking Org and Emacs: Modify how org interacts with other Emacs packages. 3. Hacking Org and external Programs. [Imo no need for subcategories like 1.1: agenda, clock, etc. 2.1: gnus, w3m, etc., yet.] I regrouped the hacks under these categories and reshuffled the items a bit to get related topics closer together. Have a look at: http://memnon.sdf-eu.org/org-hacks.org.gz [Changes made against the current version mem...@home:~/tmp/Worg$ git log org-hacks.org commit c7201682f9dc91b8aca4a78929d9398c1118e390] However, I did not change any of the #+OPTIONS. Result: * Hacking Org: Modifying orgmode itself. o Compiling Org without make o Reload Org o Speed Commands + Show next/prev heading tidily o Easy customization of TODO colors o Changelog support for org headers o Remove redundant tags of headlines o Different org-cycle-level behavior o Add an effort estimate on the fly when clocking in o Customize the size of the frame for remember o Org table + Dates computation + Field coordinates in formulas (@# and $#) o Archive in a date tree o Make it easier to set org-agenda-files from multiple directories o Restrict org-agenda-files by filetag o Split horizontally for agenda o Automatically add an appointment when clocking in a task o Highlight the agenda line under cursor o Remove time grid lines that are in an appointment o Group task list by a property o Dynamically adjust tag position * Hacking Org and Emacs: Modify how org interacts with other Emacs packages. o org-remember-anything o Org-mode and saveplace.el o Using ido-completing-read to find attachments o Use idle timer for automatic agenda views o Link to Gnus messages by Message-Id o Send html messages and attachments with Wanderlust + Send HTML message + Attach HTML of region or subtree + Adopting for Gnus * Hacking Org and external Programs. o Use Org-mode with Screen [Andrew Hyatt] o Org Agenda + Appt + Zenity o Org-Mode + gnome-osd o remind2org o Useful webjumps for conkeror o Use MathJax for HTML export without requiring JavaScript Memnon ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Problem whit with code evaluation
Sorry again if this is common knowledge, but the road to orgmode power user is seeded with challenges! I am trying to write an R function that would take 3 arguments, hopefully set up in an org table and have a function run every rows, taking every column as arguments to produce a set of report files... But I am going a bit ahead of myself as I am stuck quite early in the development... My problem is quite basic. For some reason, I can¹t seems to be able to execute the following lines in the org buffer using org-babel-execute-buffer or to export an html of the files. The code block just don't execute and return errors. * Examples take from [[http://orgmode.org/worg/org-contrib/babel/intro.php#sec-7]] * The python example #+source: square(x) #+begin_src python x*x #+end_src #+call: square(x=6) * The elisp example of the fibonacci series using a table as argument #+tblname: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src * Then my own trial in R #+srcname: test(x y) #+begin_src R p - x*y #+end_src #+call test(x=4 y=9) #+function test(x=3 y=8) Is there something I am missing? My current setup is: GNU Emacs 23.1.50.1 org-mode (v7.01g) R v2.11.1 XServer running Snow Leopard Server 10.6.4 Thanks for the help -- Marco Blanchette, Ph.D. Assistant Investigator Stowers Institute for Medical Research 1000 East 50th St. Kansas City, MO 64110 Tel: 816-926-4071 Cell: 816-726-8419 Fax: 816-926-2018 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Problem whit with code evaluation
Hi Marco, Blanchette, Marco m...@stowers.org writes: Sorry again if this is common knowledge, but the road to orgmode power user is seeded with challenges! I am trying to write an R function that would take 3 arguments, hopefully set up in an org table and have a function run every rows, taking every column as arguments to produce a set of report files... But I am going a bit ahead of myself as I am stuck quite early in the development... My problem is quite basic. For some reason, I can¹t seems to be able to execute the following lines in the org buffer using org-babel-execute-buffer or to export an html of the files. The code block just don't execute and return errors. * Examples take from [[http://orgmode.org/worg/org-contrib/babel/intro.php#sec-7]] * The python example #+source: square(x) #+begin_src python x*x #+end_src This one's our fault. That should be #+begin_src python return x*x #+end_src I've changed it on Worg. #+call: square(x=6) * The elisp example of the fibonacci series using a table as argument #+tblname: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src OK, that works for me. * Then my own trial in R #+srcname: test(x y) ^ missing comma #+begin_src R p - x*y #+end_src #+call test(x=4 y=9) ^^ missing colon, and missing comma #+function test(x=3 y=8) That's not correct usage of #+function; you wanted #+lob: / #+call: there. There are two sets of synonymous terms. *Within* each of these sets, the terms are synonymous: {#+function,#+source,#+srcname} {#+lob,#+call} My edited version of your input is below. Hope that helps, do get back to the list if you have further questions. Dan --8---cut here---start-8--- * Examples take from [[http://orgmode.org/worg/org-contrib/babel/intro.php#sec-7]] * The python example #+source: square(x) #+begin_src python return x*x #+end_src #+call: square(x=6) #+results: square(x=6) : 36 * The elisp example of the fibonacci series using a table as argument #+tblname: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src #+results: fibonacci-seq | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 | * Then my own trial in R #+srcname: test(x, y) #+begin_src R p - x*y #+end_src #+call: test(x=4, y=9) #+results: test(x=4, y=9) : 36 #+lob: test(x=3, y=8) #+results: test(x=3, y=8) : 24 --8---cut here---end---8--- Is there something I am missing? My current setup is: GNU Emacs 23.1.50.1 org-mode (v7.01g) R v2.11.1 XServer running Snow Leopard Server 10.6.4 Thanks for the help ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Problem whit with code evaluation
Hmm... Thanks Dan. Do we have a different version of org-mode? I just pasted your code in emacs and try to execute it with M-x org-babel-execute-buffer RET without success. The emacs-lisp code works but the python and the R crashes with the following errors taken from the *Org-Babel Error* Output buffer Traceback (most recent call last): File stdin, line 5, in module File stdin, line 3, in main NameError: global name 'x' is not defined Error in main() : object 'x' not found Calls: write.table - is.data.frame - inherits - main Execution halted The first 4 lines comes from the python script while the last 3 come from the R script Here is my .emacs org-mode configs in case you are wondering... ;;Load org-mode and set global keys (require 'org-install) (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on (define-key global-map \C-cl 'org-store-link) (define-key global-map \C-ca 'org-agenda) (setq org-log-done t) (setq org-startup-indented t) ;; active Babel languages (org-babel-do-load-languages 'org-babel-load-languages '( (R . t) (sh .t) (python . t) (emacs-lisp . t) ) ) Thanks again On 8/18/10 9:37 PM, Dan Davison davi...@stats.ox.ac.uk wrote: * The python example #+source: square(x) #+begin_src python return x*x #+end_src #+call: square(x=6) #+results: square(x=6) : 36 * The elisp example of the fibonacci series using a table as argument #+tblname: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src #+results: fibonacci-seq | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 | * Then my own trial in R #+srcname: test(x, y) #+begin_src R p - x*y #+end_src #+call: test(x=4, y=9) #+results: test(x=4, y=9) : 36 #+lob: test(x=3, y=8) #+results: test(x=3, y=8) : 24 -- Marco Blanchette, Ph.D. Assistant Investigator Stowers Institute for Medical Research 1000 East 50th St. Kansas City, MO 64110 Tel: 816-926-4071 Cell: 816-726-8419 Fax: 816-926-2018 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Orgmode[PATCH] org-export-generic, text markup -- and a request
On 8/13/10 Aug 13 -3:35 PM, Carsten Dominik wrote: Hi everyone, I am not sure what the status o this patch is now, is there anyone besides the author whw has tested it and can comment on it? While we're at it, what's the status of my patches that add text markup (and text markup across line boundaries) to org-export-generic. I'm actually pretty anxious to see other patches be added before mine goes in. Mine had to revise the handling so that it wasn't line-by-line, but now uses the same preprocessing as other org export facilities. I fear that other patches might clash with that pretty badly. Best, R ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] make without make cleanall safe?
Seems it takes a while to make, perhaps because of all the excellent features like org-babel. I do make cleanall first, to be safer, but as the purpose of make is to avoid doing recompilation, will a simple make suffice? Thanks. -- Q: How many CDC scientists does it take to change a lightbulb? A: You only think it's dark. [CDC has denied a deadly disease for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE === PNAS must publish the original Lo and Alter NIH/FDA XMRV paper verbatim along with the new paper. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Problem whit with code evaluation
Blanchette, Marco m...@stowers.org wrote: Hmm... Thanks Dan. Do we have a different version of org-mode? I just pasted your code in emacs and try to execute it with M-x org-babel-execute-buffer RET without success. The emacs-lisp code works but the python and the R crashes with the following errors taken from the *Org-Babel Error* Output buffer Traceback (most recent call last): File stdin, line 5, in module File stdin, line 3, in main NameError: global name 'x' is not defined Error in main() : object 'x' not found On 8/18/10 9:37 PM, Dan Davison davi...@stats.ox.ac.uk wrote: * The python example #+source: square(x) #+begin_src python return x*x #+end_src #+call: square(x=6) #+results: square(x=6) : 36 I think that's because the first source block cannot be evaluated: it only makes sense when it is #+called. If you place the cursor in that first source block and press C-c C-c, you get exactly the same error. If you do the same on the #+call, it works. Since org-babel-execute-buffer just steps through the buffer and executes every source block, it's not too surprising that you get those errors. So I guess the question is whether org-babel-execute-buffer should be smarter about which source blocks to execute. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] help debugging org-babel-execute-buffer
Austin Frank austin.fr...@gmail.com wrote: I have a document that always throws an error when I call org-babel-execute-buffer. I'd guess that there's one particular block that is to blame, but I can't tell which block babel is in at the point when the error is thrown. The error is: #v+ Debugger entered--Lisp error: (invalid-function org-save-outline-visibility) org-save-outline-visibility(t 1 nil nil) org-babel-execute-buffer(nil) call-interactively(org-babel-execute-buffer nil nil) #v- Looking at the macro for org-save-outline-visibility, I think the problem has to do with the last two arguments being passed in as nil nil. I don't, however, know how this is happening. I think this is a bug: org-save-outline-visibility is indeed a macro, defined in org.el, but ob.el does not require org.el, so when it is compiled, the compiler thinks it's a function that will be defined elsewhere. If the uncompiled ob.el is loaded, there should be no problem. Two possible solutions: - (require 'org) in ob.el. - move the definition of the macro to org-macs.el (which is required by ob.el *and* org.el.) I'd vote for the second, but Carsten and/or Eric might have a different preference. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] items not disappearing from agenda once marked done
dear list, I know this is in the FAQ-[1] but I can't get it working. I've started with a new setup not edited by hand. Can someone point me in the right direction to get this working when I do: C-c-a? (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-agenda-skip-deadline-if-done t) '(org-agenda-skip-scheduled-if-done t) '(org-agenda-skip-timestamp-if-done t) '(org-agenda-tags-todo-honor-ignore-options t) '(org-agenda-todo-ignore-scheduled t) '(org-agenda-todo-ignore-with-date t)) Thanks for any reply, Gert 1- http://orgmode.org/worg/org-faq.php#scheduled-vs-deadline-vs-timestamp ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode