Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?
>> >> Yes, the order of precedence is >> >> system-level < buffer/subtree-level < language-level < >> code-block-level > > Then I'd say buffer level does NOT override system-level for some > reason. I believe you mean the buffer-level does not override the language-level. > I just re-built Emacs from bzr to make sure I'm running somewhat > recent Org. > > Another weird thing is that when I tried to use Org from git (and not > the stock one), Emacs freezes deadly on > (org-clock-persistence-insinuate) unless I kill ntvdm.exe with Task > Manager (I'm on Windows). But I guess it is a separate story. > I have no idea what could be causing the above, but it seems unrelated. > >>> ,[ snippet from dot emacs ] >>> | (setq org-babel-default-header-args:R >>> | '((:results . "output") (:session . "*R*"))) >>> ` >>> >> >> Given that (:session . "*R*") will be used by default you could simply >> remove it from your custom setting for org-babel-default-header-args. > > This made a trick. Now indeed I have *Rreport* after C-c C-c on code > block. However after C-c ' whenever I attempt to S-RET, yet another *R* > is launched every time instead of evaluating a line. > > So the question perhaps is: > > How to alter [1] such that when I edit code block with C-c ' , S-RET > executes lines in a proper session. I believe all information is in > there, I just have no clue how would I extract it, e.g. to which main > buffer that code editing buffer (I don't know the right name for it) > belongs to, and what session header is set to in that buffer. > > If there is a way to fetch those, perhaps I'd be able to alter original > set up in [1]. > You can find the name of the original org-mode buffer by running the following snippet of elisp within the edit buffer. ;; -*- emacs-lisp -*- (marker-buffer org-edit-src-beg-marker) The `org-src-in-org-buffer' macro may be used from an edit buffer to run elisp inside the code block, in the org-mode buffer of the edit buffer. e.g., the following ;; -*- emacs-lisp -*- (org-src-in-org-buffer (message "-->%S" (org-babel-get-src-block-info))) Best, > >>> Footnotes: >>> [1] >>> http://www.kieranhealy.org/blog/archives/2009/10/12/make-shift-enter-do-a-lot-in-ess/ -- Eric Schulte http://cs.unm.edu/~eschulte
[O] [OT] ELNODE is soon to be released as version 1.0
* Some people have expressed interest in Elnode in the past: ELNODE is soon to be released as version 1.0 ** Video mentions Emacs OrgMode (and includes an example) and Node.js: http://www.youtube.com/embed/TR7DPvEi7Jg ** Elnode - the EmacsLisp Async Webserver @ version 0.9.9 Elnode is a webserver for Emacs 24, written in EmacsLisp. It turns your Emacs into a web ... nic.ferrier.me.uk/.../elnode-nears-1-point-0?...
Re: [O] :dir argument does not seem to be working
On Fri, Aug 10, 2012 at 3:13 PM, John Hendy wrote: > On Fri, Aug 10, 2012 at 3:05 PM, John Hendy wrote: >> Here's a hopefully reproducible example: >> >> -- >> >> * Test >> >> #+header: :dir C:/Users/username/Desktop :file test.png >> #+begin_src R :session R :results output graphics :exports results >> setwd("C:/Users/username/Documents") >> x <- 1:10 >> y <- x^2 >> plot(x,y) >> #+end_src >> >> -- >> >> I prefer to use R on Linux, but need to stay in Windows at work >> sometimes. I'm trying to export my plots to a different directory than >> the org file I'm using. I tend to start R in >> "C:/Users/username/Documents" on Windows 7 because that's where I set >> my library directory and R has trouble loading things if I don't start >> there first, load my libraries, and then move to my data directory. >> >> In any case, for the above, when I switch to the R session called =R=, >> and do =getwd()= I get C:/Users/username/Documents, which is where the >> png ends up, not on the Desktop. >> >> Is this something in my usage I'm doing wrong? >> >> >> Thanks, >> John > > Oddly, the first time I now open this file and execute the block, the > file shows up on the Desktop. If I delete it and re-execute, it puts > it in C:/Users/username/Documents! Why would this be? I used =setwd()= > above just to make sure R was elsewhere than the Desktop because I > have another file in which I thought :dir was working properly, but in > fact it was just the default R dir and so the plots were going there > anywhere. Changing the working dir caused the :dir on that block to > reveal that it wasn't working after all. > > In the above, even removing the =setwd()= line produces the same > behavior. First time creates file on Desktop, subsequent times puts it > in Documents. I read the bottom notes in the manual about :dir and it states that once the session is started when using :session in the header, :dir won't change the default directory... so it seems that the above is the behavior to be expected. Sorry to have missed that. I've worked around by simply using setwd() to change to my data directory and read the files, and then setwd() again to switch to the directory where I want my plots. I'm still having an issue, though... Here is my block: -- #+name: test #+header: :width 9 :height 6 :file test.pdf :dir ~/Desktop #+begin_src R :session model :results output graphics :exports results setwd("~/Desktop") x <- 1:10 y <- x^2 plot(x,y) #+end_src #+RESULTS: test [[file:/home/jwhendy/Desktop/test.pdf]] - For some reason, however, when exporting the .tex file just contains this: - \includegraphics[width=.9\linewidth]{test.pdf} - For some reason LaTeX isn't picking up the director argument from [[file:/...]] If I use the whole path in :file, it works correctly. I was trying to get around having to type my full path each time with either :dir or setting the R working directory. Is this not possible? Is it only possible to set the file via the relative path to the directory where the .org file resides? This is probably fine in most cases, but sometimes the relative path is just as long as the full path (depending on how deep one is the relative path might be ../../../../../dir vs. just typing ~/dir). Thanks for any input on what I'm missing. Thanks, John
Re: [O] Org agenda and recent files list....
On 8/10/12 Aug 10 -2:21 AM, Bastien wrote: > Robert Goldman writes: > >> ;;;--- >> ;;; Agenda files shouldn't get entries in the recentf-list >> ;;;--- > > Knowing about `recentf-exclude' will certainly help many users, > not only for excluding Org files. > > Thanks, > For what it's worth, a more fine-grained alternative would be to get inside org-get-agenda-file-buffer and inhibit the recentf caching while calling find-file inside there. That would allow you to have an agenda file appear in the recent files list IF it was opened through a manual use of find-file, but NOT if it was opened as a side effect of loading an agenda. This more fine-grained approach was a little more work than I wanted to do, and didn't necessarily provide me a lot more value, so I didn't bother with it. But someone else might find it worth coding up. Chacun à son org configuration! Cheers, r
Re: [O] :dir argument does not seem to be working
On Fri, Aug 10, 2012 at 3:05 PM, John Hendy wrote: > Here's a hopefully reproducible example: > > -- > > * Test > > #+header: :dir C:/Users/username/Desktop :file test.png > #+begin_src R :session R :results output graphics :exports results > setwd("C:/Users/username/Documents") > x <- 1:10 > y <- x^2 > plot(x,y) > #+end_src > > -- > > I prefer to use R on Linux, but need to stay in Windows at work > sometimes. I'm trying to export my plots to a different directory than > the org file I'm using. I tend to start R in > "C:/Users/username/Documents" on Windows 7 because that's where I set > my library directory and R has trouble loading things if I don't start > there first, load my libraries, and then move to my data directory. > > In any case, for the above, when I switch to the R session called =R=, > and do =getwd()= I get C:/Users/username/Documents, which is where the > png ends up, not on the Desktop. > > Is this something in my usage I'm doing wrong? > > > Thanks, > John Oddly, the first time I now open this file and execute the block, the file shows up on the Desktop. If I delete it and re-execute, it puts it in C:/Users/username/Documents! Why would this be? I used =setwd()= above just to make sure R was elsewhere than the Desktop because I have another file in which I thought :dir was working properly, but in fact it was just the default R dir and so the plots were going there anywhere. Changing the working dir caused the :dir on that block to reveal that it wasn't working after all. In the above, even removing the =setwd()= line produces the same behavior. First time creates file on Desktop, subsequent times puts it in Documents.
[O] :dir argument does not seem to be working
Here's a hopefully reproducible example: -- * Test #+header: :dir C:/Users/username/Desktop :file test.png #+begin_src R :session R :results output graphics :exports results setwd("C:/Users/username/Documents") x <- 1:10 y <- x^2 plot(x,y) #+end_src -- I prefer to use R on Linux, but need to stay in Windows at work sometimes. I'm trying to export my plots to a different directory than the org file I'm using. I tend to start R in "C:/Users/username/Documents" on Windows 7 because that's where I set my library directory and R has trouble loading things if I don't start there first, load my libraries, and then move to my data directory. In any case, for the above, when I switch to the R session called =R=, and do =getwd()= I get C:/Users/username/Documents, which is where the png ends up, not on the Desktop. Is this something in my usage I'm doing wrong? Thanks, John
Re: [O] [OT] Current website not very attractive
* The site looks great as it is. ** Its supposed to be simple and simple-looking: *** Go to: http://orgmode.org => Read the top line: "Org: Your Life in Plain Text" *** Go to: http://doc.norang.ca/org-mode.html => Read the top line: "Org Mode - Organize Your Life In Plain Text!" * Simplicity and portability is a huge part of the point of OrgMode right!? * EMACS and TeX and Texinfo, etc. are great (partially) because they have been ported to all platforms. ** So, if you make any changes, you should be able to convert the end webpages to Texinfo so they are readable and printable on all computers and printers. --I just hope that whoever "wins the contest" creates web pages that are "501 compliant" and everyone can read on any computer using any operating system and browser and those webpages are as printable as a Texinfo document. On Fri, Aug 10, 2012 at 12:43 PM, Marcelo de Moraes Serpa < celose...@gmail.com> wrote: > Hey guys, > > Didn't mean to start any kind of flame. > > @Nick: I'm not a designer, more of a hybrid coder with some design > foundations, but I'm definitely willing to help. I don't like the current > layout because of it's overuse of shadows and its "web1"-style layout. > Also, typography could use some improvement, and we could also use a better > screenshot, to give a better first impression. > > - Marcelo. > > On Fri, Aug 10, 2012 at 1:30 AM, Nick Dokos wrote: > >> Nick Dokos wrote: >> >> > Sankalp wrote: >> > >> > > --f46d044401de1e3ad604c6de28a7 >> > > Content-Type: text/plain; charset=ISO-8859-1 >> > > >> > > I'm inclined to agree with Marcelo. >> > > -- >> > > Sankalp >> > > >> > > *** >> > > If humans could mate with software, I'd have org-mode's >> > > babies. >> > > --- Chris League on Twitter. >> > >http://orgmode.org/worg/org-quotes.html >> > > *** >> > > >> > > >> > > On 10 August 2012 04:44, Jude DaShiell >> wrote: >> > > >> > > > Good, that probably means it's one of the more accessible and >> usable web >> > > > sites on the internet. >> > > > >> > > > On Thu, 9 Aug 2012, Marcelo de Moraes Serpa wrote: >> > > > >> > > > > Hey list, >> > > > > >> > > > > Don't want to be negative, but doesn't anyone else also think the >> current >> > > > > design is kind of amateurish and not very attractive? I also did >> not like >> > > > > the screenshot used, I preferred the previous one, it showed more >> org >> > > > > capabilities, and the colors and indentation looked better. >> > > > > >> > > > > My two cents and food for thought, >> > > > > >> > >> > Talk is cheap: how would you improve it? And I don't mean generalities: >> build >> > a website as you think it should be and then invite us over to take a >> look. >> > And as Jude suggests, don't forget to keep accessibility/usability >> issues >> > in mind as you design. >> > >> > Nick >> > >> >> It has been pointed out to me that my comments might be taken as >> "overbearing". Not my intent, but I will take back the "talk is >> cheap" part (or repeat it to myself as the target this time) and >> apologize for it: I should have reread the mail before hitting send. >> >> But the larger point is still there: "I don't like it" is a legitimate >> response, but is not nearly as helpful as giving a list of reasons >> of *why* you don't like it. And providing something you *like* is even >> better. E.g. would the current design with the previous screen shot be >> OK? Or are there deeper problems? >> >> Nick >> >> >
Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?
Eric Schulte writes: >> There is a wonderful post[1] on how to make S-RET to do handy things in >> ESS mode. However I often find myself working on several Org documents >> from different folders. >> >> It is quite inconvenient to change a directory in =*R*= buffer each >> time I work on different document. >> >> Is there a neat way to somehow reuse Org mode property =session= that I >> set buffer wide? >> > > I'm not sure what you mean by "reuse". All of the information for how > to set header arguments in available at (info "(org) Using header > arguments") Here is the outline of what I have and what I'm doing. As I mentioned I set default :session header for R to *R*. In my file I have something like #+PROPERTY: session *Rreport* Whenever I C-c C-c on code block, I can see that *R* buffer was created instead of *Rreport* ! Now, if I edit my code block with C-c ' and hit S-RET on any line, it evaluates in *R* whereas I'd prefer it to be *Rreport* somehow. I understand that I'm trying to somewhat mix ob with plain ESS. Nevertheless I wonder if it is somehow possible. >> Also for some reason >> >> #+PROPERTY: session *Rsomename* >> >> does not override session name set in >> =org-babel-default-header-args:R= even after =C-c C-c= on it when I >> re-evaluate babel code block with =C-c C-c= on code block, while >> explicit block header =:session *Rsomename*= makes difference. >> > > Yes, the order of precedence is > > system-level < buffer/subtree-level < language-level < > code-block-level Then I'd say buffer level does NOT override system-level for some reason. I just re-built Emacs from bzr to make sure I'm running somewhat recent Org. Another weird thing is that when I tried to use Org from git (and not the stock one), Emacs freezes deadly on (org-clock-persistence-insinuate) unless I kill ntvdm.exe with Task Manager (I'm on Windows). But I guess it is a separate story. >> ,[ snippet from dot emacs ] >> | (setq org-babel-default-header-args:R >> | '((:results . "output") (:session . "*R*"))) >> ` >> > > Given that (:session . "*R*") will be used by default you could simply > remove it from your custom setting for org-babel-default-header-args. This made a trick. Now indeed I have *Rreport* after C-c C-c on code block. However after C-c ' whenever I attempt to S-RET, yet another *R* is launched every time instead of evaluating a line. So the question perhaps is: How to alter [1] such that when I edit code block with C-c ' , S-RET executes lines in a proper session. I believe all information is in there, I just have no clue how would I extract it, e.g. to which main buffer that code editing buffer (I don't know the right name for it) belongs to, and what session header is set to in that buffer. If there is a way to fetch those, perhaps I'd be able to alter original set up in [1]. >> Footnotes: >> [1] >> http://www.kieranhealy.org/blog/archives/2009/10/12/make-shift-enter-do-a-lot-in-ess/ -- Mikhail
Re: [O] [Contest] Redesign orgmode.org by the end of august
On Fri, Aug 10, 2012 at 06:43:18AM -1000, Thomas S. Dye wrote: > > Me too. Could the "losers" end up on Worg, too? I've often felt the > need for a good CSS tailored to Org mode and it would be sweet to have > more choices. > Well said Tom. The "losers" would a great addition for Worg. -- Suvayu Open source is the future. It sets us free.
Re: [O] [OT] Current website not very attractive
Marcelo de Moraes Serpa wrote: > Hey guys, > > Didn't mean to start any kind of flame. > You did not. I didn't mean to either but my comment could be taken as inflammatory, hence my apology. > @Nick: I'm not a designer, more of a hybrid coder with some design > foundations, but I'm definitely willing to help. I don't like the > current layout because of it's overuse of shadows and its "web1"-style > layout. Also, typography could use some improvement, and we could also > use a better screenshot, to give a better first impression. Neither am I: I generally am happy when I can get to the information I need - I don't care how the page looks but I realize I'm very much in the minority here. FWIW, I'm happy with the website as it is. Perhaps a useful distinction is between content and appearance (the latter to be taken care of by CSS mostly). The shadows and typography are appearance only - the screenshot is more content-like (and btw, there are multiple screenshots so you can reload the page and get another view of org's capabilities - there is no visible indication of that however). Another goal should be ease of maintenance of the website: I'm sure neither Bastien nor Jason have infinite time to tweak things. Nick
Re: [O] [Contest] Redesign orgmode.org by the end of august
John Hendy writes: > On Fri, Aug 10, 2012 at 2:05 AM, Bastien wrote: >> Hi all, >> >> Yes, we can improve the website. >> >> I suggest we organize a contest and vote for the design we want. > > I love this. No bike shedding. Build your own, paint it, and let the > votes speak for themselves :) > > John > > Me too. Could the "losers" end up on Worg, too? I've often felt the need for a good CSS tailored to Org mode and it would be sweet to have more choices. Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] [OT] Current website not very attractive
Hey guys, Didn't mean to start any kind of flame. @Nick: I'm not a designer, more of a hybrid coder with some design foundations, but I'm definitely willing to help. I don't like the current layout because of it's overuse of shadows and its "web1"-style layout. Also, typography could use some improvement, and we could also use a better screenshot, to give a better first impression. - Marcelo. On Fri, Aug 10, 2012 at 1:30 AM, Nick Dokos wrote: > Nick Dokos wrote: > > > Sankalp wrote: > > > > > --f46d044401de1e3ad604c6de28a7 > > > Content-Type: text/plain; charset=ISO-8859-1 > > > > > > I'm inclined to agree with Marcelo. > > > -- > > > Sankalp > > > > > > *** > > > If humans could mate with software, I'd have org-mode's > > > babies. > > > --- Chris League on Twitter. > > >http://orgmode.org/worg/org-quotes.html > > > *** > > > > > > > > > On 10 August 2012 04:44, Jude DaShiell > wrote: > > > > > > > Good, that probably means it's one of the more accessible and usable > web > > > > sites on the internet. > > > > > > > > On Thu, 9 Aug 2012, Marcelo de Moraes Serpa wrote: > > > > > > > > > Hey list, > > > > > > > > > > Don't want to be negative, but doesn't anyone else also think the > current > > > > > design is kind of amateurish and not very attractive? I also did > not like > > > > > the screenshot used, I preferred the previous one, it showed more > org > > > > > capabilities, and the colors and indentation looked better. > > > > > > > > > > My two cents and food for thought, > > > > > > > > > Talk is cheap: how would you improve it? And I don't mean generalities: > build > > a website as you think it should be and then invite us over to take a > look. > > And as Jude suggests, don't forget to keep accessibility/usability > issues > > in mind as you design. > > > > Nick > > > > It has been pointed out to me that my comments might be taken as > "overbearing". Not my intent, but I will take back the "talk is > cheap" part (or repeat it to myself as the target this time) and > apologize for it: I should have reread the mail before hitting send. > > But the larger point is still there: "I don't like it" is a legitimate > response, but is not nearly as helpful as giving a list of reasons > of *why* you don't like it. And providing something you *like* is even > better. E.g. would the current design with the previous screen shot be > OK? Or are there deeper problems? > > Nick > >
Re: [O] [Contest] Redesign orgmode.org by the end of august
Bastien writes: > Hi all, > > Yes, we can improve the website. > > I suggest we organize a contest and vote for the design we want. good idea, but maybe postpone the dates by one month so that people can get back from hollidays ? HTH, -- Rémi
Re: [O] [Orgmode] Re: contact management in org-mode?
Sriram Karra wrote: > On Fri, Aug 10, 2012 at 12:11 PM, Nick Dokos wrote: > > > been a rather good experience. But my needs are simple, and depending on > the kind of phone integration you are looking for, bbdb might not be > enough. What exactly are you looking for? > > Nick, What is the kind of phone integration for which BBDB does not work for > you? > I don't think I ever said it's not working for me. I just don't know what "phone integration" means for other people: for me, I look up a phone number by name and dial it. As I said, simple needs (and amply met by bbdb). Nick
Re: [O] Using org-mode as day planner
Hi, On Fri, Aug 10, 2012 at 8:46 AM, John Hendy wrote: > On Fri, Aug 10, 2012 at 3:09 AM, Bastien wrote: >> Hi Jack, >> >> Jack Erwin writes: >> >>> So, a couple of questions: >>> >>> 1) Is this a sane approach? My elisp is average at best, and the >>> org-mode devs could probably think of a more graceful way to do this. >> >> I don't know. >> >> If I were you, I would give Org a little more time before trying to >> make it behave as planner behaves. >> >> Also, you might be interested in org-datetree.el, which helps storing >> things relatively to a date, which sounds a bit more `à la planner'. > > Out of curiosity, do date trees currently have any built in search > functions or sparse tree searching ability? I currently use timestamps > to capture things under the current month like this: > > * Journals > ** 2012 August > *** [2012-08-09 Fri] Did something > - Notes > - About > - What I did > > This is nice as I need to print my notes for an intellectual property > documentation notebook. I have a recurring deadline todo to remind me > to print my orgmode notes and permanently tape them in my IP notebook. > With timestamps (and the new sparse tree time functionality you > added!) I can just search for all time stamps after my last completion > date, mark any relevant with :export: and am on my way. When done, I > can just replace-string :export: -> "" and the file is back to normal. > > Date trees would make this easier as I like using capture... but I > don't like having to change my .emacs each month to make the > adjustment of =** July 2012= as the target headline to =August 2012=. > Date trees are the obvious way to be able to do this, but they don't > have any of the neat search functionality that I know of. > You could try replacing "" with =,(format-time-string "%B")= in your capture template (just make sure to use a backtick rather than a quote. The snippet below would provide just such a capture template that expands to " " automatically without any intervention on a monthly or annual basis. It doesn't include the inactive timestamp, or any other markings, but those can be easily added or adapted from the existing template. #+begin_src emacs-lisp (setq org-capture-templates `(("t" "Test" entry (file+headline "~/test/test-capture.org" ,(format "%s %s" (format-time-string "%B") (format-time-string "%Y")) #+end_src > > Thanks, > John > >> >> >> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-datetree.el;hb=HEAD >> >>> 2) Is there a reason that the org-agenda-after-show-hook is only called >>> when using org-agenda-goto and not org-agenda-switch-to, or is this a >>> bug? >> >> A leftover, fixed now, thanks! >> >> -- >> Bastien >> > Regards, -- Jon
Re: [O] Using org-mode as day planner
On Fri, Aug 10, 2012 at 3:09 AM, Bastien wrote: > Hi Jack, > > Jack Erwin writes: > >> So, a couple of questions: >> >> 1) Is this a sane approach? My elisp is average at best, and the >> org-mode devs could probably think of a more graceful way to do this. > > I don't know. > > If I were you, I would give Org a little more time before trying to > make it behave as planner behaves. > > Also, you might be interested in org-datetree.el, which helps storing > things relatively to a date, which sounds a bit more `à la planner'. Out of curiosity, do date trees currently have any built in search functions or sparse tree searching ability? I currently use timestamps to capture things under the current month like this: * Journals ** 2012 August *** [2012-08-09 Fri] Did something - Notes - About - What I did This is nice as I need to print my notes for an intellectual property documentation notebook. I have a recurring deadline todo to remind me to print my orgmode notes and permanently tape them in my IP notebook. With timestamps (and the new sparse tree time functionality you added!) I can just search for all time stamps after my last completion date, mark any relevant with :export: and am on my way. When done, I can just replace-string :export: -> "" and the file is back to normal. Date trees would make this easier as I like using capture... but I don't like having to change my .emacs each month to make the adjustment of =** July 2012= as the target headline to =August 2012=. Date trees are the obvious way to be able to do this, but they don't have any of the neat search functionality that I know of. Thanks, John > > > http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-datetree.el;hb=HEAD > >> 2) Is there a reason that the org-agenda-after-show-hook is only called >> when using org-agenda-goto and not org-agenda-switch-to, or is this a >> bug? > > A leftover, fixed now, thanks! > > -- > Bastien >
Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?
Mikhail Titov writes: > Hello! > > There is a wonderful post[1] on how to make S-RET to do handy things in > ESS mode. However I often find myself working on several Org documents > from different folders. > > It is quite inconvenient to change a directory in =*R*= buffer each > time I work on different document. > > Is there a neat way to somehow reuse Org mode property =session= that I > set buffer wide? > I'm not sure what you mean by "reuse". All of the information for how to set header arguments in available at (info "(org) Using header arguments") > > Also for some reason > > #+PROPERTY: session *Rsomename* > > does not override session name set in > =org-babel-default-header-args:R= even after =C-c C-c= on it when I > re-evaluate babel code block with =C-c C-c= on code block, while > explicit block header =:session *Rsomename*= makes difference. > Yes, the order of precedence is system-level < buffer/subtree-level < language-level < code-block-level > > ,[ snippet from dot emacs ] > | (setq org-babel-default-header-args:R > | '((:results . "output") (:session . "*R*"))) > ` > Given that (:session . "*R*") will be used by default you could simply remove it from your custom setting for org-babel-default-header-args. Best, > > I'm running Org-mode version 7.8.10 (release_7.8.10-658-g451191.dirty) > > Footnotes: > [1] > http://www.kieranhealy.org/blog/archives/2009/10/12/make-shift-enter-do-a-lot-in-ess/ -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] [Contest] Redesign orgmode.org by the end of august (was: [OT] Current website not very attractive)
On Fri, Aug 10, 2012 at 2:05 AM, Bastien wrote: > Hi all, > > Yes, we can improve the website. > > I suggest we organize a contest and vote for the design we want. I love this. No bike shedding. Build your own, paint it, and let the votes speak for themselves :) John
Re: [O] Using org-mode as day planner
Charles Philip Chan writes: > The key here is really to take some time to set up your Agenda Views > and Capture Templates. Oops, forgot to mention tags. You should think about and setup your tags too. They are great for searching. Charles pgpnvVOisgRUL.pgp Description: PGP signature
Re: [O] Using org-mode as day planner
Jack Erwin writes: Hello Jack: > I am in the process of trying out org-mode after a long stint with > planner.el. The most obvious difference here is that planner.el uses > "day pages" that keep a running list of tasks versus the more dynamic > nature of org which collects them from a set of arbitrary .org files. I am a planner refugee from a few years back too. I find that my first hurdle was to get rid of the notation that day pages must be physical instead of emphemeral. > While I like the org approach quite a bit, I still miss having a place > to record the events and notes of the a day, for use in a > weekly/monthly review. There are many ways to do this and it is up to you imagination. Such as by using a "date tree" or a combination of "inactive time stamps" and tags. I personally have a ":Review:" tag in my capture templates for new items and cleared after review. My day and weekly pages are Agenda views that can be called up with one hot key either from Emacs or from my root menu. I think the term "Agenda View" really throws new users off, because it is not just for Agendas, but really just a generic aggregator. For example in my daily Agenda, I have the following sections: 1. An aggregated Inbox for unfiled items in my org files and dired link to my inbox directory. 2. A section for "Late Deadlines". 3. A Section for "Wait For" items. 4. A section for Sticky notes and other items that I deemed hot. 5. A section from current working files and notes. 6. A 1 day Agenda View for Agenda, scheduled items, deadline items, habits, weather, etc. 7. A "Started Actions" section for items that I am working on (todo keyword "STARTED". 8. A "Next Actions" List (todo keyword "NEXT"). 9. A list of my Projects 10. A section for "Stuck Projects". 11. A list for my Actions minus started and next (todo keyword TODO). 12. A list of items that are candidates to be archived. Of course I also have a number of Agenda Views for context lists. The key here is really to take some time to set up your Agenda Views and Capture Templates. You should really read this section on worg: http://orgmode.org/worg/org-gtd-etc.html to get some more ideas. Also I find the following links very helpful (my setup is based on that): http://blog.edencardim.com/2011/05/gtd-with-org-mode-part-2/ http://blog.edencardim.com/2011/06/gtd-with-org-mode-part-3/ Another thing your should take advantage of is org-protocol. I personally have 2 shell scripts for "capture" and "store-link" which I have added as actions in my file manager, my root menu and of course I used org-protocol in Firefox. Regards, Charles -- "The move was on to 'Free the Lizard'" -- Jim Hamerly and Tom Paquin (Open Sources, 1999 O'Reilly and Associates) pgpQCV5VnRRmx.pgp Description: PGP signature
Re: [O] [Orgmode] Re: contact management in org-mode?
On Fri, Aug 10, 2012 at 12:11 PM, Nick Dokos wrote: > been a rather good experience. But my needs are simple, and depending on > the kind of phone integration you are looking for, bbdb might not be > enough. What exactly are you looking for? > Nick, What is the kind of phone integration for which BBDB does not work for you? -Sriram
Re: [O] [PATCH] Translate refs to rc also in remote references
> i.e. the old version was not converting the A0 coordinates to rc > coordinates. thanks a lot for the detailed explanations. I've just pushed a minimal fix for this: Great, thanks :) -- Jose E. Marchesi http://www.jemarch.net GNU Project http://www.gnu.org
Re: [O] possible org bug
Hi Nick, Nick Dokos writes: > Re: the relative vs. absolute pathnames - David Maus had fixed a problem > with symlinks but was trying to avoid carrying the default directory > context. See this thread: > > http://thread.gmane.org/gmane.emacs.orgmode/40645 > > I just wanted to make sure that anybody who takes a look at this, keeps > in mind the symlink case(s) as well. > > But I also wanted to add a plug for the exemplary bug report that the OP > put together: if all bug reports were as complete as this one, life > would be much easier. I usually complain about bad bug reports, so this > was my chance to praise a good one: thanks! > > Nick > > PS. I had got to the cache problem (but not as far as the font-lock > problem that Achim traced it to), ran out of time, wanted to get back to > it but never got the chance. I might be able to take another look at it > this weekend, but if anybody beats me to it, I will *not* complain... Here is another chance. :) Please test the attached patch and see if this fixes the issue. Thanks! >From 55f1cf816d65b1c98044ae82a42da84b5613c5bd Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 10 Aug 2012 13:04:55 +0200 Subject: [PATCH] org-publish.el: Fix problem with `org-publish-cache-ctime-of-src' not expanding from the correct directory * org-publish.el (org-publish-needed-p) (org-publish-update-timestamp, org-publish-file) (org-publish-cache-file-needs-publishing): New argument `base-dir'. (org-publish-cache-ctime-of-src): Use the new argument to make sure we find the file according to :base-directory. --- lisp/org-publish.el | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lisp/org-publish.el b/lisp/org-publish.el index cb496ff..3225495 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -315,7 +315,7 @@ You could use brackets to delimit on what part the link will be. (format "%s" (or pub-func "" (concat "X" (if (fboundp 'sha1) (sha1 filename) (md5 filename -(defun org-publish-needed-p (filename &optional pub-dir pub-func true-pub-dir) +(defun org-publish-needed-p (filename &optional pub-dir pub-func true-pub-dir base-dir) "Return t if FILENAME should be published in PUB-DIR using PUB-FUNC. TRUE-PUB-DIR is where the file will truly end up. Currently we are not using this - maybe it can eventually be used to check if the file is present at @@ -325,7 +325,7 @@ function can still decide about that independently." (let ((rtn (if org-publish-use-timestamps-flag (org-publish-cache-file-needs-publishing - filename pub-dir pub-func) + filename pub-dir pub-func base-dir) ;; don't use timestamps, always return t t))) (if rtn @@ -334,11 +334,11 @@ function can still decide about that independently." (message "Skipping unmodified file %s" filename))) rtn)) -(defun org-publish-update-timestamp (filename &optional pub-dir pub-func) +(defun org-publish-update-timestamp (filename &optional pub-dir pub-func base-dir) "Update publishing timestamp for file FILENAME. If there is no timestamp, create one." (let ((key (org-publish-timestamp-filename filename pub-dir pub-func)) - (stamp (org-publish-cache-ctime-of-src filename))) + (stamp (org-publish-cache-ctime-of-src filename base-dir))) (org-publish-cache-set key stamp))) (defun org-publish-remove-all-timestamps () @@ -705,15 +705,14 @@ See `org-publish-projects'." (if (listp publishing-function) ;; allow chain of publishing functions (mapc (lambda (f) - (when (org-publish-needed-p filename pub-dir f tmp-pub-dir) + (when (org-publish-needed-p filename pub-dir f tmp-pub-dir base-dir) (funcall f project-plist filename tmp-pub-dir) - (org-publish-update-timestamp filename pub-dir f))) + (org-publish-update-timestamp filename pub-dir f base-dir))) publishing-function) - (when (org-publish-needed-p filename pub-dir publishing-function - tmp-pub-dir) + (when (org-publish-needed-p filename pub-dir publishing-function tmp-pub-dir base-dir) (funcall publishing-function project-plist filename tmp-pub-dir) (org-publish-update-timestamp - filename pub-dir publishing-function))) + filename pub-dir publishing-function base-dir))) (unless no-cache (org-publish-write-cache-file (defun org-publish-projects (projects) @@ -1103,7 +1102,7 @@ If FREE-CACHE, empty the cache." (clrhash org-publish-cache)) (setq org-publish-cache nil)) -(defun org-publish-cache-file-needs-publishing (filename &optional pub-dir pub-func) +(defun org-publish-cache-file-needs-publishing (filename &optional pub-dir pub-func base-dir) "Check the timestamp of the last publishing of FILENAME. Return `t', if the file needs publishing. The function also checks if any included files have been more recently published, @@ -1123,12 +1122,12 @@ so that the file including them will be republished as well." (while (re-search-forward "^#\\+includ
Re: [O] Birthdays, org-contacts and agenda filters - a bug?
Hi Simon, Simon Thum writes: > let me just try again. This should be fixed now, thanks for the detailed explanations. -- Bastien
Re: [O] my capture template generates a literal "%?"
Hi, Nick Dokos writes: > D'oh^2: everything else is interpreted, so why not %? ? > > The problem seems to be in org-capture-place-plain-text: the insertion > of the text happens like this > > , > | ... > | (setq beg (point)) > | (insert txt) > | (org-capture-empty-lines-after 1) > | (org-capture-position-for-last-stored beg) > | (setq end (point)) > | (org-capture-mark-kill-region beg (1- end)) > | (org-capture-narrow beg (1- end)) > | (if (re-search-forward "%\\?" end t) (replace-match "" > ` > > but it seesm that just before the re-search-forward, point is at > end, not at beg, so the search is fruitless. We could search backwards > to beg instead (but what is the semantics of multiple %? markers in the > template?), or we could just (goto-char beg) before the search. There was indeed a problem here, I just fixed it. Thanks for the directions, -- Bastien
Re: [O] [PATCH] Translate refs to rc also in remote references
Hi Jose, jema...@gnu.org (Jose E. Marchesi) writes: > i.e. the old version was not converting the A0 coordinates to rc > coordinates. thanks a lot for the detailed explanations. I've just pushed a minimal fix for this: diff --git a/lisp/org-table.el b/lisp/org-table.el index d8aba8b..b6bc54a 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3236,7 +3236,7 @@ Parameters get priority." Works for single references, but also for entire formulas and even the full TBLFM line." (let ((start 0)) -(while (string-match "\\<\\([a-zA-Z]+\\)\\([0-9]+\\>\\|&\\)\\|\\(;[^\r\n:]+\\||&\\)\\|\\(;[^\r\n:]+\\|\\
Re: [O] Latest version of Org-mode 7.8.3?
I asked a similar question earlier. I did though have to point to the lisp dir of org-mode git clone specifically and add the "org-install" line as mentioned. If you look at my question a few days ago there is no 7.8.3. 'Mash -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Torsten Wagner wrote: Hey Ciaran, as far as I remember you need to call (require 'org-install) to make emacs load your installation instead of the default one. Add it to your emacs config and check out org-version again Also you might be interesting to use the emacs-package manager which is a rather new feature of emacs. Org-mode versions there might be a good compromise between stability and up-to-dateness. Check here for details http://orgmode.org/worg/org-faq.html#installing-via-elpa Torsten On 10 August 2012 07:28, Ciaran Mulloy wrote: > Hi, > I'm relatively new to org-mode and a non-techie but grappling by and large > with > the steep learning curve and enjoying it! > > I had a simple question that I haven't been able to get an easy answer to. > I've just compiled the latest build of emacs 24.1 from the gnu.org website > which > currently has the latest build of org-mode (7.8.11 I believe). > > I've also cloned the bleeding edge git repository onto my PC (as I'm > interested > in getting the benefit of recent patches for exporting to Taskjuggler 3) and > did > a make into my ~/elisp directory. > > My question: how do I validate that I have the latest build version of > org-mode > running as when I do a 'M-x org-version' I just get the answer '7.8.11'. > > I've put a line in my .emacs file to add my ~/elisp directory to my load path > however it's not clear how I get emacs to load the newer files I've compiled > to > my ~/elisp directory over the existing emacs 24.1 build. > > I've gone through the FAQ section on the org-mode website and couldn't seem to > find any hints for my issue. > > Ciaran > >
Re: [O] Add the capture feature "%(sexp)" to org-feed
Hi Michael, Michael Brand writes: > Maybe there are still some simplifications? Please try the attached patch and let me know if it works. If you're okay, I'll then apply it under your name. >From 757d415af6247ea85f260daaeeb9f143f41e6103 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 10 Aug 2012 10:52:13 +0200 Subject: [PATCH] Add the capture feature sexp to org feed. * org-feed.el (org-feed-format-entry): Require `org-capture'. Expand Elisp %(...) templates. (org-feed-default-template): Update docstring. * org-capture.el (org-capture-expand-embedded-elisp): New function. (org-capture-fill-template): Use it. (org-capture-inside-embedded-elisp-p): New function to tell if we are within an Elisp %(...) template. --- lisp/org-capture.el | 34 ++- lisp/org-feed.el| 56 ++- 2 files changed, 62 insertions(+), 28 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 05e3a0c..7119c2d 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1371,15 +1371,7 @@ The template may still contain \"%?\" for cursor positioning." (error (insert (format "%%![Couldn't insert %s: %s]" filename error))) ;; %() embedded elisp - (goto-char (point-min)) - (while (re-search-forward "%\\((.+)\\)" nil t) - (unless (org-capture-escaped-%) - (goto-char (match-beginning 0)) - (let ((template-start (point))) - (forward-char 1) - (let ((result (org-eval (read (current-buffer) - (delete-region template-start (point)) - (insert result) + (org-capture-expand-embedded-elisp) ;; The current time (goto-char (point-min)) @@ -1513,6 +1505,30 @@ The template may still contain \"%?\" for cursor positioning." t) nil)) +(defun org-capture-expand-embedded-elisp () + "Evaluate embedded elisp %(sexp) and replace with the result." + (goto-char (point-min)) + (while (re-search-forward "%(" nil t) +(unless (org-capture-escaped-%) + (goto-char (match-beginning 0)) + (let ((template-start (point))) + (forward-char 1) + (let ((result (org-eval (read (current-buffer) + (delete-region template-start (point)) + (insert result)) + +(defun org-capture-inside-embedded-elisp-p () + "Return non-nil if point is inside of embedded elisp %(sexp)." + (let (beg end) +(save-excursion + (save-match-data + (when (or (looking-at "%(") + (and (search-backward "%" nil t) (looking-at "%("))) + (setq beg (point)) + (setq end (progn (forward-char) (forward-sexp) (1- (point))) +(when (and beg end) + (and (<= (point) end) (>= (point) beg) + ;;;###autoload (defun org-capture-import-remember-templates () "Set org-capture-templates to be similar to `org-remember-templates'." diff --git a/lisp/org-feed.el b/lisp/org-feed.el index 6901ffa..8b3414b 100644 --- a/lisp/org-feed.el +++ b/lisp/org-feed.el @@ -225,12 +225,14 @@ Any fields from the feed item can be interpolated into the template with %name, for example %title, %description, %pubDate etc. In addition, the following special escapes are valid as well: -%h the title, or the first line of the description -%t the date as a stamp, either from (if present), or -the current date. -%T date and time -%u,%U like %t,%T, but inactive time stamps -%a A link, from if that is a permalink, else from " +%h The title, or the first line of the description +%t The date as a stamp, either from (if present), or +the current date +%T Date and time +%u,%U Like %t,%T, but inactive time stamps +%a A link, from if that is a permalink, else from +%(sexp) Evaluate elisp `(sexp)' and replace with the result, the simple +%-escapes above can be used as arguments, e.g. %(capitalize \\\"%h\\\")" :group 'org-feed :type '(string :tag "Template")) @@ -506,9 +508,10 @@ This will find DRAWER and extract the alist." ENTRY is a property list. This function adds a `:formatted-for-org' property and returns the full property list. If that property is already present, nothing changes." + (require 'org-capture) (if formatter (funcall formatter entry) -(let (dlines fmt tmp indent time name +(let (dlines time escape name tmp v-h v-t v-T v-u v-U v-a) (setq dlines (org-split-string (or (plist-get entry :description) "???") "\n") @@ -527,20 +530,35 @@ If that property is already present, nothing changes." "")) (with-temp-buffer (insert template) + + ;; Simple %-escapes + ;; before embedded elisp to support simple %-escapes as + ;; arguments for embedded elisp (goto-char (point-min)) (while (re-search-forward "%\\([a-zA-Z]+\\)" nil t) - (setq name (match-string 1)) - (cond - ((member name '("h" "t" "T" "u" "U" "a")) - (replace-match (symbol-value (intern (concat "v-" name))) t t)) - ((setq tmp (plist-get entry (intern (concat ":
Re: [O] Using org-mode as day planner
Hi Jack, Jack Erwin writes: > So, a couple of questions: > > 1) Is this a sane approach? My elisp is average at best, and the > org-mode devs could probably think of a more graceful way to do this. I don't know. If I were you, I would give Org a little more time before trying to make it behave as planner behaves. Also, you might be interested in org-datetree.el, which helps storing things relatively to a date, which sounds a bit more `à la planner'. http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-datetree.el;hb=HEAD > 2) Is there a reason that the org-agenda-after-show-hook is only called > when using org-agenda-goto and not org-agenda-switch-to, or is this a > bug? A leftover, fixed now, thanks! -- Bastien
Re: [O] [PATCH] Fixes org-rmail-follow-link
tftor...@tftorrey.com (T.F. Torrey) writes: > With creating links working in Rmail, now I see that following links > fails with the error "Message not found". > > The error comes from the use of the function widen in > org-rmail-follow-link. In an RMAIL buffer, the widen function only > widens to the current message. The function to widen to the entire > buffer is rmail-widen. > > The attached patch replaces widen with rmail-widen and also removes the > following two lines (added by Bastien as part of the previous patch re > Rmail), because rmail-widen already displays full headers, so testing > and toggling them on has no effect. Applied, thanks. Please send a properly formatted ChangeLog next time: http://orgmode.org/worg/org-contribute.html#sec-5 Best, -- Bastien
Re: [O] The Quantified Shower
Jambunathan K writes: > http://blog.stephenwolfram.com/2012/03/the-personal-analytics-of-my-life/ This one is quite outstanding -- thanks for the link! -- Bastien
Re: [O] [OT] LWN article on Easybook
Aurélien Aptel writes: > Markdown is very similar to Org for basic outlining. I don't > understand how either one can require mental effort. I think the author consider "memory" to result from a "mental effort". Which is debatable -- but that you have to memorise Markdown markup more than Org's one is quite true to me, as Emacs _is_ already the memory for Org's markup. I'm off now with the OT :) -- Bastien
Re: [O] Add the capture feature "%(sexp)" to org-feed
Michael Brand writes: > Yes. This is useful in general for me, thank you for the hint. I > propose the attached patch for the already existing .dir-locals.el and > .dir-settings.el. Applied, thanks to you and Ivan. -- Bastien
Re: [O] Org agenda and recent files list....
Robert Goldman writes: > ;;;--- > ;;; Agenda files shouldn't get entries in the recentf-list > ;;;--- Knowing about `recentf-exclude' will certainly help many users, not only for excluding Org files. Thanks, -- Bastien
Re: [O] Org Build System (aka Makefile)
Hi Achim, Achim Gratz writes: > I've just pushed a change to the Makefile to more easily allow > customization of compilation methods. See > > http://orgmode.org/worg/dev/org-build-system.html#sec-3-2-1 > > for what is available. Thanks for taking care of this page. Please make the default "make" procedure display all warnings that the user would see by compiling Emacs itself. I know we disagree about this: you think that compiler warnings are for the developers, not for the users. I think the default "make" should send as much warnings as Emacs sends with its own default "make". Moreover, I think we don't know who is a developer and who is a user. For example, I'm a developer, Eric is a developer, and we both ignored that the current "make" was hiding warnings. Even developers sometimes don't run "make helpall" -- only those who wants to use something else than the default compilation method. If a user wants the compilation to go faster, he can always use another instruction (the current "make" -- renamed "make quiet"?) Thanks, -- Bastien
[O] [Contest] Redesign orgmode.org by the end of august (was: [OT] Current website not very attractive)
Hi all, Yes, we can improve the website. I suggest we organize a contest and vote for the design we want. Here are the rules: - The "new design" refers both to http://orgmode.org/ and to http://orgmode.org/worg/. - The new design will be applicable as a set of patches against the current git repository. If you don't know how to use git, please ask a friend. You can clone the repo like this: ~$ git clone git://orgmode.org/worg.git - Participants will host a demo of their proposal online. - Participants will send their demo by August, 25th, midnight. - People will then vote on the Org mailing list for the best demo. - Only one demo per participant can be part of the vote. - Only one vote per subscriber of the mailing list. - The current design will be among the ones we can vote for. - The vote will happen between August, 26th and 31st. - If two or more designs are top-voted with the same number of votes, I will choose one. Let the dice roll, -- Bastien