Re: [Orgmode] Embedded code
Ido Magal writes: > I've gotten the fix and am trying to verify it, however I keep seeing > >>File local-variables error: (invalid-function org-save-outline-visibility) > Hmm, this function is defined in org-macs.el, and is required by ob.el so if you have Org-mode and Babel loaded then the function should be defined. I can't reproduce the error, maybe it is specific to your Emacs version or configuration? Best -- Eric ___ 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] Embedded code
I've gotten the fix and am trying to verify it, however I keep seeing >File local-variables error: (invalid-function org-save-outline-visibility) I'm not sure if it's relevant or not. This is my test file: # -*- eval: (org-babel-execute-buffer) -*- src_sh[:results append]{ls -t ~/org/ *.txt|head -5} > > Thanks for the catch, you are correct, `org-babel-execute-buffer' did > not evaluate inline code blocks, I've just pushed up a fix for this. > > ___ 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] Commas in org source blocks
On Tue, Jan 25, 2011 at 8:48 PM, Eric Schulte wrote: > Jeff Horn writes: > >> On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte wrote: >>> yes, you will need to add org-mode to you list of supported languages >>> along the directions in http://orgmode.org/manual/Languages.html >>> >>> I'll update the manual to reflect org-mode as a valid language. >> >> Done, and thanks. One last follow up. I have the following in an org >> source block (it is a child of a list item, and I like the indirect >> buffer): >> >> #+begin_src org >> ,| | | Column Player | | >> ,|+---+---+-| >> ,| / | < | | > | >> ,| | | A | B | >> ,| Row Player | A | 1,2 | 3,4 | >> ,| | B | 5,6 | 7,8 | >> #+end_src >> >> When I export to HTML or ASCII, the table isn't produced. I was half >> expecting an org table (not an HTML table, of course) or at least a >> verbatim environment. Adding 'exports: code' didn't change anything. >> Any recommendations? > > Yes, the org-mode language has some weird default header argument which > make its use different from other languages, specifically for every > language but org-mode by default :results has the value of "replace". > Try the following to export org-mode plain or as quoted code. > > #+begin_src org :results replace :exports results > ,| | | Column Player | | > ,|+---+---+-| > ,| / | < | | > | > ,| | | A | B | > ,| Row Player | A | 1,2 | 3,4 | > ,| | B | 5,6 | 7,8 | > #+end_src > > #+begin_src org :results replace :exports code > ,| | | Column Player | | > ,|+---+---+-| > ,| / | < | | > | > ,| | | A | B | > ,| Row Player | A | 1,2 | 3,4 | > ,| | B | 5,6 | 7,8 | > #+end_src > > Cheers -- Eric > Many thanks, Eric. That did the trick! -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ 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] Commas in org source blocks
Jeff Horn writes: > On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte wrote: >> yes, you will need to add org-mode to you list of supported languages >> along the directions in http://orgmode.org/manual/Languages.html >> >> I'll update the manual to reflect org-mode as a valid language. > > Done, and thanks. One last follow up. I have the following in an org > source block (it is a child of a list item, and I like the indirect > buffer): > > #+begin_src org > ,|| | Column Player | | > ,|+---+---+-| > ,| / | < | | > | > ,|| | A | B | > ,| Row Player | A | 1,2 | 3,4 | > ,|| B | 5,6 | 7,8 | > #+end_src > > When I export to HTML or ASCII, the table isn't produced. I was half > expecting an org table (not an HTML table, of course) or at least a > verbatim environment. Adding 'exports: code' didn't change anything. > Any recommendations? Yes, the org-mode language has some weird default header argument which make its use different from other languages, specifically for every language but org-mode by default :results has the value of "replace". Try the following to export org-mode plain or as quoted code. #+begin_src org :results replace :exports results ,|| | Column Player | | ,|+---+---+-| ,| / | < | | > | ,|| | A | B | ,| Row Player | A | 1,2 | 3,4 | ,|| B | 5,6 | 7,8 | #+end_src #+begin_src org :results replace :exports code ,|| | Column Player | | ,|+---+---+-| ,| / | < | | > | ,|| | A | B | ,| Row Player | A | 1,2 | 3,4 | ,|| B | 5,6 | 7,8 | #+end_src Cheers -- Eric ___ 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] Encrypting org-mode files
Is there a way to use full encryption and still have it integrate seamlessly with the org agenda? Thanks, Marcelo. On Mon, Jan 17, 2011 at 4:37 AM, Julien Danjou wrote: > On Mon, Jan 17 2011, Marcelo de Moraes Serpa wrote: > >> What is the de-facto way to encrypt using org? I now I can use GnuPG, >> but I'd prefer something that integrates better and auto-decrypts when >> the agenda is triggered. > > Take a look at `org-crypt' package. > > -- > Julien Danjou > ❱ http://julien.danjou.info > ___ 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] Commas in org source blocks
On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte wrote: > yes, you will need to add org-mode to you list of supported languages > along the directions in http://orgmode.org/manual/Languages.html > > I'll update the manual to reflect org-mode as a valid language. Done, and thanks. One last follow up. I have the following in an org source block (it is a child of a list item, and I like the indirect buffer): #+begin_src org ,|| | Column Player | | ,|+---+---+-| ,| / | < | | > | ,|| | A | B | ,| Row Player | A | 1,2 | 3,4 | ,|| B | 5,6 | 7,8 | #+end_src When I export to HTML or ASCII, the table isn't produced. I was half expecting an org table (not an HTML table, of course) or at least a verbatim environment. Adding 'exports: code' didn't change anything. Any recommendations? -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ 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] [PATCH] Optimize org-habit-parse-todo
Applied, thanks. - Carsten On Jan 25, 2011, at 9:03 PM, Matt Lundin wrote: * lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than needed. When constructing a consistency graph, org-habit now stops searching for timestamps when the number of matches exceeds the span of time displayed in the graph. This can lead to a significant speedup in agenda construction, especially for entries with many logbook entries. Previously, org-habit would parse all logbook timestamps, even if they numbered in the hundreds. --- lisp/org-habit.el | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lisp/org-habit.el b/lisp/org-habit.el index b174a1f..5d2514a 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -170,10 +170,18 @@ This list represents a \"habit\" for the rest of this module." habit-entry scheduled-repeat)) (setq deadline (+ scheduled (- dr-days sr-days (org-back-to-heading t) - (while (re-search-forward "- State \"DONE\".*\\[\\([^]]+\\)\ \]" end t) - (push (time-to-days - (org-time-string-to-time (match-string-no-properties 1))) - closed-dates)) + (let* ((maxdays (+ org-habit-preceding-days org-habit- following-days)) +(reversed org-log-states-order-reversed) +(search (if reversed 're-search-forward 're-search-backward)) +(limit (if reversed end (point))) +(count 0)) + (unless reversed (goto-char end)) + (while (and (< count maxdays) + (funcall search "- State \"DONE\".*\\[\\([^]]+\\)\\]" limit t)) + (push (time-to-days +(org-time-string-to-time (match-string-no-properties 1))) + closed-dates) + (setq count (1+ count (list scheduled sr-days deadline dr-days closed-dates (defsubst org-habit-scheduled (habit) -- 1.7.3.5 Carsten Dominik writes: On Jan 25, 2011, at 7:01 AM, Carsten Dominik wrote: Hi Matt Hmmm, this looks like a very important optimisation indeed. I am just wondering if it is always safe to do it like this. Have you checked if this is influenced by org-reverse-notes-order or similar things? I am sorry, I see now that this is done correctly. One request, can you resubmit and test for the count first, before doing the search? Just another very minor optimization. Thanks Carsten! See the updated patch above. The next step is to make the keyword search configurable Best, Matt ___ 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] Commas in org source blocks
Jeff Horn writes: > On Tue, Jan 25, 2011 at 2:36 PM, Eric Schulte wrote: >> There is support for Org code blocks, evaluation will generally result >> in returning a modified (possibly exported) version of the code block >> body. > > OK. When I evaluated the block, I got an error about "no function" > being defined for org export. I might need to require babel in my init > file to get it to trigger the autoloads. Could there be another issue? > yes, you will need to add org-mode to you list of supported languages along the directions in http://orgmode.org/manual/Languages.html I'll update the manual to reflect org-mode as a valid language. > >> Yes, this is the intended behavior. The commas protect your enclosing >> source file from markup embedded in the org code block, otherwise a >> top-level headline in the body of a code block could break outline >> folding for the containing org file. > > Thanks. I haven't used babel much until recently, so thanks for your > patience and helpful response! ___ 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] Commas in org source blocks
On Tue, Jan 25, 2011 at 2:36 PM, Eric Schulte wrote: > There is support for Org code blocks, evaluation will generally result > in returning a modified (possibly exported) version of the code block > body. OK. When I evaluated the block, I got an error about "no function" being defined for org export. I might need to require babel in my init file to get it to trigger the autoloads. Could there be another issue? > Yes, this is the intended behavior. The commas protect your enclosing > source file from markup embedded in the org code block, otherwise a > top-level headline in the body of a code block could break outline > folding for the containing org file. Thanks. I haven't used babel much until recently, so thanks for your patience and helpful response! -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ 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: migrating from planner mode
Hello, Thanks for all the suggestions. Being a perl dummy, how should these scripts be called? Presumably some variables need to be set. Thanks again for the pointers. Cheers, Seb On Tue, 25 Jan 2011 15:08:59 -0500, Matt Lundin wrote: > "Bradley M. Kuhn" writes: >> I also had a script from a while back that I wrote to migrate from >> Planner to org-mode. Perhaps it's useful to some: >> http://gitorious.org/bkuhn-small-hacks/org-mode/blobs/master/planner2org.plx >>> I added a FAQ in Worg about migration for Planner with just this >>> link, maybe other can improve the FAQ later. >> I'm happy to add mine too. I've asked mdl for access, but attached >> is a patch to Worg to add it. >> diff --git a/org-faq.org b/org-faq.org index f733387..35b4ab5 100644 >> --- a/org-faq.org +++ b/org-faq.org @@ -853,7 +853,8 @@ something >> like this: >> ** Can I migrate from Planner? >> - Yes. This [[http://www.c0t0d0s0.de/plan2org/plan2org.pl][perl >> script]] can help. + Yes. This >> [[http://www.c0t0d0s0.de/plan2org/plan2org.pl][perl script]] or >> [[http://gitorious.org/bkuhn-small-hacks/org-mode/blobs/master/planner2org.plx >> +][this Perl script]] can help. >> * Errors and general problems :PROPERTIES: > Applied, thanks! > - Matt > ___ 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 -- Seb ___ 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] Status google calendar sync
Hi On 01/21/2011 03:58 PM, Eric S Fraga wrote: > I also have been syncing between my Google calendar and org. A while > back, I posted this message onto this list: > > http://article.gmane.org/gmane.emacs.orgmode/26848 > > but check out later messages in the thread for an updated awk script. I had problems using wget, since we don't use google login, but get redirected to our institute from google, so I would have to use --load-cookie but couldn't really figure it out... however using googlecl seems to work fine, so I'm also using this to download the entries > This dealt with converting a Google calendar into an org file. I still > use this. > > For the other route, org to Google, I use the googlecl (command line) > interface: > > http://article.gmane.org/gmane.emacs.orgmode/27214 don't really know that much lisp, but I guess you add the entries directly to google when you create them via org-capture? What happens if you later edit an entry, say change the time/date? This is something I do very often and I would need google to reflect those changes. I also only want to export certain tags and entries that have a date-range (e.g. start and stop time), but I guess that could be easily arranged in the lisp function that you wrote? Arun ___ 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: migrating from planner mode
"Bradley M. Kuhn" writes: > I also had a script from a while back that I wrote to migrate from > Planner to org-mode. Perhaps it's useful to some: > http://gitorious.org/bkuhn-small-hacks/org-mode/blobs/master/planner2org.plx > >> I added a FAQ in Worg about migration for Planner with just this link, >> maybe other can improve the FAQ later. > > I'm happy to add mine too. I've asked mdl for access, but attached is a > patch to Worg to add it. > > diff --git a/org-faq.org b/org-faq.org > index f733387..35b4ab5 100644 > --- a/org-faq.org > +++ b/org-faq.org > @@ -853,7 +853,8 @@ something like this: > > ** Can I migrate from Planner? > > - Yes. This [[http://www.c0t0d0s0.de/plan2org/plan2org.pl][perl script]] > can help. > + Yes. This [[http://www.c0t0d0s0.de/plan2org/plan2org.pl][perl script]] > or > [[http://gitorious.org/bkuhn-small-hacks/org-mode/blobs/master/planner2org.plx > +][this Perl script]] can help. > > * Errors and general problems >:PROPERTIES: Applied, thanks! - Matt ___ 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] [PATCH] Optimize org-habit-parse-todo
* lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than needed. When constructing a consistency graph, org-habit now stops searching for timestamps when the number of matches exceeds the span of time displayed in the graph. This can lead to a significant speedup in agenda construction, especially for entries with many logbook entries. Previously, org-habit would parse all logbook timestamps, even if they numbered in the hundreds. --- lisp/org-habit.el | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lisp/org-habit.el b/lisp/org-habit.el index b174a1f..5d2514a 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -170,10 +170,18 @@ This list represents a \"habit\" for the rest of this module." habit-entry scheduled-repeat)) (setq deadline (+ scheduled (- dr-days sr-days (org-back-to-heading t) - (while (re-search-forward "- State \"DONE\".*\\[\\([^]]+\\)\\]" end t) - (push (time-to-days - (org-time-string-to-time (match-string-no-properties 1))) - closed-dates)) + (let* ((maxdays (+ org-habit-preceding-days org-habit-following-days)) +(reversed org-log-states-order-reversed) +(search (if reversed 're-search-forward 're-search-backward)) +(limit (if reversed end (point))) +(count 0)) + (unless reversed (goto-char end)) + (while (and (< count maxdays) + (funcall search "- State \"DONE\".*\\[\\([^]]+\\)\\]" limit t)) + (push (time-to-days +(org-time-string-to-time (match-string-no-properties 1))) + closed-dates) + (setq count (1+ count (list scheduled sr-days deadline dr-days closed-dates (defsubst org-habit-scheduled (habit) -- 1.7.3.5 Carsten Dominik writes: > On Jan 25, 2011, at 7:01 AM, Carsten Dominik wrote: > >> Hi Matt >> >> Hmmm, >> >> this looks like a very important optimisation indeed. >> I am just wondering if it is always safe to do it like >> this. Have you checked if this is influenced by >> org-reverse-notes-order or similar things? > > I am sorry, I see now that this is done correctly. > One request, can you resubmit and test for the count > first, before doing the search? Just another very > minor optimization. Thanks Carsten! See the updated patch above. The next step is to make the keyword search configurable Best, Matt ___ 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] Commas in org source blocks
Jeff Horn writes: > The manual doesn't make explicit mention of org as a Babel source > language. Well, it isn't listed in the supported languages, and an > "org mode org source block" site search via Google didn't turn up the > info I'm looking for. > There is support for Org code blocks, evaluation will generally result in returning a modified (possibly exported) version of the code block body. > > Basically, I tried using example blocks for a table I wrote, but noted > that the key commands for org tables didn't work in the indirect > buffer. Of course, I switched the example block to a source block, and > specified "org" as the language. > > After editing in the indirect buffer, there are commas prepended to > each line in the orignal buffer. These are not in the indirect buffer. > Is this the intended behavior? See screenshot for reference. > > http://cl.ly/4C7P > Yes, this is the intended behavior. The commas protect your enclosing source file from markup embedded in the org code block, otherwise a top-level headline in the body of a code block could break outline folding for the containing org file. Best -- Eric > > TIA ___ 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] Commas in org source blocks
The manual doesn't make explicit mention of org as a Babel source language. Well, it isn't listed in the supported languages, and an "org mode org source block" site search via Google didn't turn up the info I'm looking for. Basically, I tried using example blocks for a table I wrote, but noted that the key commands for org tables didn't work in the indirect buffer. Of course, I switched the example block to a source block, and specified "org" as the language. After editing in the indirect buffer, there are commas prepended to each line in the orignal buffer. These are not in the indirect buffer. Is this the intended behavior? See screenshot for reference. http://cl.ly/4C7P TIA -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ 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: tags grouping not working
Benjamin Andresen writes: > Hey there, > > I've just upgraded to the latest org-mode HEAD and noticed that the tag > behavior changed. (It now sorts entries, except now grouping is broken.) > > This is how it used to work: > (Assume "#+TAGS: { foo(f) bar(b) } quux(q)" for all of this.) > > * Foo :foo: > > now using M-x org-set-tags-command and pressing 'b' will result in: > > * Foo :bar: > > now selecting 'q' in the same prompt will result in: > > * Foo :bar:quux: > > but instead what will happen is: > > * Foo :quux: > > The offending commit is: > commit c7d1e0f997d2aa1043c9cbbf72d03f05195d692e > Author: Bastien Guerry > Date: Tue Jan 18 00:50:32 2011 +0100 > > just reverting that piece of code on the current HEAD makes grouping > work again. > > best regards, > benny > > P.S. Sorry if that has been reported before, I couldn't find any mention > of tags. Also git bisect is handy. Yep, this commit needs to be reverted. See my message about this: http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00942.html Can you do this 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: headlines in HTML
I am still very curious about what other orgers (orgsters? organizers?) do for this. Do you just do this every time you want a within-headline section? #+begin_center --- #+end_center That is strangely longer than "-", which I take to be a higher-level section divider than headlines because it extends all the way across the page. More importantly (because I know of no solution yet) how do you get the headline levels to be more distinct? Thanks. Samuel On 2011-01-23, Samuel Wales wrote: > I use HTML for Blogger. My org headers rely on H levels. > One of my posts actually has 4 levels of org hierarchy, > including title. > > You might laugh at that much hierarchy, but most of you are > nerds, so I hope you understand. :) Posts sometimes > naturally have that much hierarchy and it feels silly to > remove cues. > > Browsers don't distinguish the headline levels enough, in my > experience. > > I have a lot of headlines so that the reader doesn't get > lost in the middle of a wall of text. Some of my audience > is very, very intelligent and has cognitive issues like > short-term memory, concentration, etc. > > Therefore, hierarchy is both useful and necessary to distinguish clearly. > > === > > I could use "-" for the lowest level, just as I used > "===" above, but I don't think that was meant for the lowest > level, as it extends to the entire width. Also, it seems > nicer to have a label to orient the reader in a lot of > cases. > > Something to take the place of my plain text "===" would be > very useful, but probably not sufficient. I realize I can > do something like centering a string like "---". > > Bullet lists would be silly in this case, as it's just > normal text and the reader will wonder why some things are > indented and others not. > > I don't want to go to numbered sections. > > === > > Maybe we could somehow skip H levels, so it goes H3 for > title, then H5, H7, H9. But browsers might not understand > such low level headlines. > > Maybe I could have other attributes to set, like centering > and large non-bold, for specific levels. So, say, top is > large bold centered, then large non-bold centered, then > smaller bold, then smaller non-bold. > > Can things like that be done in org? > > I don't know if CSS is possible or easy in Blogger, > especially for specific posts. > > Maybe some of you have ideas. > > Thanks. > > Samuel > > -- > The Kafka Pandemic: http://thekafkapandemic.blogspot.com > I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE > === > I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV > paper. > -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV 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] Embedded code
Ido Magal writes: > On Fri, Jan 21, 2011 at 18:05, Eric Schulte wrote: > >> >> You can use the inline code syntax for very small blocks, e.g. >> >> src_emacs-lisp{(tagged "foo")} >> > > I'm missing something. This does not evaluate with > > # -*- eval: (org-babel-execute-buffer) -*- Hi, Thanks for the catch, you are correct, `org-babel-execute-buffer' did not evaluate inline code blocks, I've just pushed up a fix for this. Cheers -- Eric ___ 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] :results replace not always working
Hi Rainer, I have fixed the problem with ":results org" so it should now work as expected. The ":results replace raw" can never work as expected because raw results are inserted directly into the Org buffer with no wrappers to delimit the results, so there is no way to programmatically identify which text is the results and which is part of the Org buffer. Thanks -- Eric Rainer M Krug writes: > Hi > > Bewlow an example, illustrating cases where :results replace does not > work, dependent of the type and content. Each of the source blocks was > executed twice: > > ":results output org replace" did not work > ":results output raw replace" did work, but not with all content. > > In addition, there is still the leading space in the firest line of the > output. > > > > #+begin_src R :results output org replace > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > #+end_src > > #+results: > #+BEGIN_ORG > [[file1.pdf]] > [[file2.pdf]] > #+END_ORG > #+BEGIN_ORG > [[file1.pdf]] > [[file2.pdf]] > #+END_ORG > > > #+begin_src R :results output raw replace > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > #+end_src > > #+results: > [[file1.pdf]] > [[file2.pdf]] > > #+begin_src R :results output raw replace > cat("---\n") > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > cat("---\n") > #+end_src > > #+results: > --- > [[file1.pdf]] > [[file2.pdf]] > --- > --- > [[file1.pdf]] > [[file2.pdf]] > --- > > > > > Cheers, > > Rainer ___ 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] Notes reviews with sparse trees
Il giorno 25/gen/2011, alle ore 09.05, suvayu ali ha scritto: > On Tue, Jan 25, 2011 at 7:00 AM, Giorgio Valoti wrote: >> The problem is that I can’t get a sparse tree using these timestamps because >> it works only with deadlines and schedules. Does anybody know how to work >> around this limitation, short of using a regexp? > > Well my suggestions is with using regexps, not what you asked. In any > org buffer look at this variable: > > > org-deadline-time-regexp is a variable defined in `org.el'. > Its value is "\\]+\\)>" > Local in buffer notes.org; global value is nil > > Automatically becomes buffer-local when set in any fashion. > > Documentation: > Matches the DEADLINE keyword together with a time stamp. > > > Now you could put your time stamps with a special tag, say "LAST:". > You can choose to add it as keyword and fontify with the same face as > DEADLINE, org-special-keyword-face. Then you can write your own defun > using org-sparse-tree and a regex based on the above which uses the > LAST: keyword to find the time stamps just like DEADLINEs. Does that > work for you? I didn’t think about using custom functions but it should work. Thank you a lot. -- Giorgio Valoti ___ 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] OrgCamp in NYC?
I'm a grad student out on Long Island, but I'd come into the city for this. I would love to learn more about how to use org-mode in my daily life. Chris On Mon, Jan 24, 2011 at 10:45 PM, Andrew Hyatt wrote: > I'd love to attend a NYC one, and can probably arrange for hosting in > a nice space in Manhattan as well. > > On Sat, Jan 22, 2011 at 6:23 PM, Bradley M. Kuhn wrote: > > Bastien wrote on Thursday the 6th: > >> "OrgCamps are informal events where people gather IRL to contribute > >>to Org by discussing how they use it and by doing contributions to > >>the code, the manuals and the online tutorials." > > > > This is an excellent idea. I hope today's OrgCamp in Paris went well -- > > I wish I could have been there. :) > > > > Meanwhile, I can offer space in NYC (just a conference room) in NYC that > > can host up to 10 people. It's in Brooklyn, not too far from Manhattan, > > near transit lines. > > > > Would anyone in NYC have an interest in an OrgCamp? I don't have time > > to organize it, but I can coordinate logistics for the venue if someone > > else would be willing to do the rest. > > > > It looks like Paris got 17 people by the end. We'd have to be about > > half that for the space I have available, but I'm willing if others are. > > -- > > -- bkuhn > > > > ___ > > 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 > ___ 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] Using properties for diary-anniversaries
lecodespor...@eml.cc wrote: > On Mon, 24 Jan 2011 09:36 -0500, "Nick Dokos" > wrote: > > Yes, sorry: I figured that I had answered the wrong question after I > > sent it, but I was too tired to fix my mistake at that time. However, I > > could not make your formulation work for me at all. I still don't > > understand how it could possibly work: afaict, org-entry-get returns the > > birthday as a string, "5 4 1900", the read returns the month as a > > number, 5, and diary-anniversary should blow up because it needs at least > > two > > arguments (a month and a day) - and it does in my case. > > You're probably right, there was a typo in my example. The below text is > corrected, I had forgotten the parantheses for the date! > > * John > :PROPERTIES: > :Name: John > :Birthday: (5 4 1900) > :END: > %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) > John > > Does this work for you? > Yes it does, but having to remember to enter dates as lists in this particular context does not feel right. It'd be OK if all dates were entered as lists in org, but that's not the case. I'd rather parse a more obvious representation. > > Be that as it may, re. filling in the name, I don't know how to do it > > and I'm not sure that it can be done: the string after the function call > > is scanned for %d but no other evaluation is done. org just passes the > > string along and all of that work is done in diary-anniversary whose > > doc string says: > > > > , > > | The diary entry can contain `%d' or `%d%s'; the %d will be replaced > > | by the number of years since the MONTH, DAY, YEAR, and the %s will > > | be replaced by the ordinal ending of that number (that is, `st', > > | `nd', `rd' or `th', as appropriate). The anniversary of February 29 > > | is considered to be March 1 in non-leap years. > > ` > > Yes, it may require hacking diary-anniversary. > Or perhaps investigate Julien Danjou's org-contacts (still work in progress). Or give bbdb another chance... 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] Using properties for diary-anniversaries
lecodespor...@eml.cc wrote: > Yes, it may require hacking diary-anniversary. > One more thing before I turn into a pumpkin: what happens if you have multiple entries (John's birthday, Mary's wedding anniversary, Jane's birthday *and* her wedding anniversary, etc.) Are you expecting to deal with all of them with a single diary sexp? org-entry-get with a POM argument of nil will only look around for the "nearest" entry (for some definition of "nearest"). So it seems to me you are going to have one of these sexps after each and every entry (and you may have to add an "Anniversary" property as well and search for that in addition to "Birthday"). But then why would you need an automatic way to fill in the name? You can just add a person-specific string to each person-specific diary sexp and be done with it. For example, --8<---cut here---start->8--- * John :PROPERTIES: :Name: John :Birthday: (5 4 1900) :END: %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) John * Jane :PROPERTIES: :Name: Jane :Birthday: (5 4 1901) :END: %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) Jane --8<---cut here---end--->8--- Nick PS. BTW, I believe the %% has to be flush left: you cannot indent it. At least the manual says so. ___ 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] Using properties for diary-anniversaries
On Tue, 25 Jan 2011 10:05 -0500, "Nick Dokos" wrote: > lecodespor...@eml.cc wrote: > > > > Yes, it may require hacking diary-anniversary. > > > > One more thing before I turn into a pumpkin: what happens if you have > multiple entries (John's birthday, Mary's wedding anniversary, Jane's > birthday *and* her wedding anniversary, etc.) Are you expecting to deal > with all of them with a single diary sexp? org-entry-get with a POM > argument of nil will only look around for the "nearest" entry (for some > definition of "nearest"). So it seems to me you are going to have one of > these sexps after each and every entry (and you may have to add an > "Anniversary" property as well and search for that in addition to > "Birthday"). But then why would you need an automatic way to fill in the > name? You can just add a person-specific string to each person-specific > diary sexp and be done with it. For example, > > --8<---cut here---start->8--- > * John > :PROPERTIES: > :Name: John > :Birthday: (5 4 1900) > :END: > > %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) John > > * Jane > :PROPERTIES: > :Name: Jane > :Birthday: (5 4 1901) > :END: > > %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) Jane > --8<---cut here---end--->8--- I'm using it this way right now. An automatic way to fill in the names would help if the file had many entries. A single sexp for the whole file would be even more convenient. > PS. BTW, I believe the %% has to be flush left: you cannot indent it. At > least the manual says so. It's working with this indentation: * Jane :PROPERTIES: :Name: Jane :Birthday: (5 4 1901) :END: %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) Jane -- http://www.fastmail.fm - Access your email from home and the web ___ 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: tags grouping not working
Hey there, I've just upgraded to the latest org-mode HEAD and noticed that the tag behavior changed. (It now sorts entries, except now grouping is broken.) This is how it used to work: (Assume "#+TAGS: { foo(f) bar(b) } quux(q)" for all of this.) * Foo :foo: now using M-x org-set-tags-command and pressing 'b' will result in: * Foo :bar: now selecting 'q' in the same prompt will result in: * Foo :bar:quux: but instead what will happen is: * Foo :quux: The offending commit is: commit c7d1e0f997d2aa1043c9cbbf72d03f05195d692e Author: Bastien Guerry Date: Tue Jan 18 00:50:32 2011 +0100 just reverting that piece of code on the current HEAD makes grouping work again. best regards, benny P.S. Sorry if that has been reported before, I couldn't find any mention of tags. Also git bisect is handy. ___ 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] Using properties for diary-anniversaries
On Mon, 24 Jan 2011 09:36 -0500, "Nick Dokos" wrote: > Yes, sorry: I figured that I had answered the wrong question after I > sent it, but I was too tired to fix my mistake at that time. However, I > could not make your formulation work for me at all. I still don't > understand how it could possibly work: afaict, org-entry-get returns the > birthday as a string, "5 4 1900", the read returns the month as a > number, 5, and diary-anniversary should blow up because it needs at least > two > arguments (a month and a day) - and it does in my case. You're probably right, there was a typo in my example. The below text is corrected, I had forgotten the parantheses for the date! * John :PROPERTIES: :Name: John :Birthday: (5 4 1900) :END: %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) John Does this work for you? > Be that as it may, re. filling in the name, I don't know how to do it > and I'm not sure that it can be done: the string after the function call > is scanned for %d but no other evaluation is done. org just passes the > string along and all of that work is done in diary-anniversary whose > doc string says: > > , > | The diary entry can contain `%d' or `%d%s'; the %d will be replaced > | by the number of years since the MONTH, DAY, YEAR, and the %s will > | be replaced by the ordinal ending of that number (that is, `st', > | `nd', `rd' or `th', as appropriate). The anniversary of February 29 > | is considered to be March 1 in non-leap years. > ` Yes, it may require hacking diary-anniversary. -- http://www.fastmail.fm - The professional email service ___ 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] :results replace not always working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Bewlow an example, illustrating cases where :results replace does not work, dependent of the type and content. Each of the source blocks was executed twice: ":results output org replace" did not work ":results output raw replace" did work, but not with all content. In addition, there is still the leading space in the firest line of the output. #+begin_src R :results output org replace cat("[[file1.pdf]]\n") cat("[[file2.pdf]]\n") #+end_src #+results: #+BEGIN_ORG [[file1.pdf]] [[file2.pdf]] #+END_ORG #+BEGIN_ORG [[file1.pdf]] [[file2.pdf]] #+END_ORG #+begin_src R :results output raw replace cat("[[file1.pdf]]\n") cat("[[file2.pdf]]\n") #+end_src #+results: [[file1.pdf]] [[file2.pdf]] #+begin_src R :results output raw replace cat("---\n") cat("[[file1.pdf]]\n") cat("[[file2.pdf]]\n") cat("---\n") #+end_src #+results: --- [[file1.pdf]] [[file2.pdf]] - --- --- [[file1.pdf]] [[file2.pdf]] - --- Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0+un4ACgkQoYgNqgF2egpMDQCeJhUDZNglkJ5VFod3KIo3LrLe AMUAmwXHm4kUhU59mjuxGGwfVeNVc2Dd =8bTA -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
Re: [Orgmode] Notes reviews with sparse trees
On Tue, Jan 25, 2011 at 7:00 AM, Giorgio Valoti wrote: > The problem is that I can’t get a sparse tree using these timestamps because > it works only with deadlines and schedules. Does anybody know how to work > around this limitation, short of using a regexp? Well my suggestions is with using regexps, not what you asked. In any org buffer look at this variable: org-deadline-time-regexp is a variable defined in `org.el'. Its value is "\\]+\\)>" Local in buffer notes.org; global value is nil Automatically becomes buffer-local when set in any fashion. Documentation: Matches the DEADLINE keyword together with a time stamp. Now you could put your time stamps with a special tag, say "LAST:". You can choose to add it as keyword and fontify with the same face as DEADLINE, org-special-keyword-face. Then you can write your own defun using org-sparse-tree and a regex based on the above which uses the LAST: keyword to find the time stamps just like DEADLINEs. Does that work for you? -- Suvayu Open source is the future. It sets us free. ___ 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