[Orgmode] verbatim bug?
Hi, Then I write some text some text ~<>~. because I want "<>" written as verbatim in my latex export, I get, in latex, \texttt{\textbackslash{}label\{some\_src\_block\_name\}some\_src\_block\_name}. which gives me the text \label{some_src_block_name}some_src_block_name in verbatim. I have also tried "=<>=" with the same results. What kind-of-works for me is some text some text : <> . which does not work without the dot (or a different character) on the end. I guessing this is a bug, or should I do some escaping of characters? Thanks! Martin ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] need help with org-mac-iCal and long-standing recurring events
I've submitted a couple of patches to org-mac-iCal recently, but this latest problem is beyond my lisp skills to fix. org-mac-iCal imports entries from iCal into the diary so they can be displayed in org-mode's agenda views. It limits the imported entries based on a date range managed org-mac-iCal-range so that the diary is not full of old items, slowing down processing. The date range filtering does not take recurring events into account, though. If the date range is set to eliminate items older than 1 month and a recurring item started 2 months ago, it is ignored. This is true even if the event has no end-date set and it would recur within the desired date range. The function in question is omi-import-ics in contrib/lisp/org-mac- iCal.el. I *think* the section I need to modify starts on line 168: (when (or (and (= yearEntry year) (or (< monthEntry (- month (/ org-mac-iCal-range 2))) (> monthEntry (+ month (/ org-mac-iCal-range 2) (< yearEntry (- year 1)) (> yearEntry (+ year 1)) (and (= yearEntry (- year 1)) (/= monthEntry 12)) (and (= yearEntry (+ year 1)) (/= monthEntry 1))) (delete-region startEntry endEntry As a first attempt, I tried changing the filtering so that events with an RRULE property set (indicating a recurrence rule) are always imported into the diary, but somehow managed to introduce an infinite loop to the filter. So I'm looking for someone with better lisp skills who can advise me about trying to fix the problem I describe above. Any takers? Thanks, Doug ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: How to add entries to an org file, not diary
Carsten Dominik writes: > On Nov 6, 2009, at 6:21 PM, Bernt Hansen wrote: > >> Stephen Eglen writes: >> >>> Dear all, >>> If I'm visting an agenda (C-c a a) buffer, and want to add a diary >>> entry >>> for a particular day, I can use org-agenda-diary-entry, bound to 'i'. >>> This inserts an entry in my diary file. >>> >>> What I'd like to do is add the entry instead to an org file, >>> e.g. 'agenda.org' where I currently store all diary-like entries. Is >>> that functionality available? (Am trying to wean myself off diary >>> files, after many years of using it...) >>> >>> Thanks, Stephen >> >> Hi Stephen, >> >> I agree that would be a nice feature. I stopped using the diary a few >> years ago and have totally avoided the 'i' functions in the agenda >> since >> it creates diary entries that just get lost for me. Instead I've >> trained by fingers to make remember tasks instead but I have to create >> the dates manually in the remember task. >> >> It would be a lot nicer if this could create a task with a diary sexp >> type entry for the details. > > Why diary sexp entries and not direct Org time stamp > entries? Is there a consensus that diary sexps should > be use for this application? Actually the diary sexp isn't really important. I used to make block entries spanning multiple days with the old diary entries and was just thinking that diary sexp entries are needed to do that - but for single dates and times org timestamp entries are fine. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: repetitive activity over a period of time, starting at the same time each day
Crni Gorac writes: > On Fri, Nov 6, 2009 at 5:51 PM, Matt Lundin wrote: >> Crni Gorac writes: >> >>> How to specify a time interval for a TODO that will say span over two >>> weeks, working days only, and that will start each day at 10am. I >>> tried with timestamps available in org-mode, as well as with Emacs >>> diary timestamps, but to no avail. Any suggestion? >>> >> >> You could use a diary sexp: >> >> --8<---cut here---start->8--- >> * 10:00am Every weekday for two weeks >> <%%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-block 11 9 >> 2009 11 20 2009))> >> --8<---cut here---end--->8--- >> >> - Matt >> > > Thanks Matt, this is almost there; however, if this is a TODO item, > and if I mark it done, than it's marked done once and for all, and not > only for given day, like org-mode timestamps with repeater interval. > Any further suggestions here? Ah. I see. I don't think there's any way make an item with a diary sexp behave like a recurring timestamp. I think the best solution here would be to create multiple items w/ todos, as Stephan suggested in his post. > Maybe I'm wrong, but it seems very strange to me that a need for alike > timestamps was not recognized in org-mode - for example, how would one > build a TODO item for something like a class spanning say over two > months and with class hours say Mon and Wed between 10am and 11am? I imagine one way to do this would be to create two items with repeating timestamps: --8<---cut here---start->8--- * TODO 10:00am Class SCHEDULED: <2009-11-09 Mon +1w> * TODO 10:00am Class SCHEDULED: <2009-11-11 Wed +1w> --8<---cut here---end--->8--- > > Also, is this placing time at the start of item, and having it > recognized when agenda view built some kind of special syntax? I > wasn't able to find it mentioned in org-mode documentation... I'm sorry to say that I'm not sure where it's documented. But org-mode does scan the headline for time of day information. Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Proposed key binding changes: archiving and attachments
I use both short topic in a still ongoing section I use simple archive But when I finish a section or it is something I will not use for a while I use archive to sibling. Therefore setting (setq org-archive-default-command 'org-archive-to-archive-sibling) to use the "a" string is not interesting. However , I aggree that archiving should have a confirmation y-or-n Daniel 2009/11/7 David Bremner : > At Sat, 7 Nov 2009 07:33:30 +0100, > Carsten Dominik wrote: > >> I actually think that few people use archiving to sibling. Am I >> wrong about this? > > For what it is worth, I have started to use archive to sibling quite a > lot in the last month or so. I also like to tidy up my org files, but > I need to keep the structure for monthly and tri-monthly clock tables. > > d > > > > ___ > Emacs-orgmode mailing list > Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Clojure support for org-babel
Joel Boehland writes: > Hello, > I love org-mode and org-babel, and would like to be able to use > Clojure with them. I have put a first cut that supports Clojure, along > with a support test file up on github: > > http://github.com/jolby/org-babel-clojure > > I would like to be able to have this incorporated into org-mode, so > please let me know if I need to make any changes that will enable it > to be accepted. Hi Joel, This looks great. Thanks very much for the contribution. We'd like to incorporate it as soon as possible, so the first question is, do you have copyright papers signed with FSF for emacs? If not, please see the org-mode contribution instructions at http://orgmode.org/worg/org-contribute.php. I'll email you off-list with a few further details about getting this added to org-babel. Thanks again. Dan > > Thanks! > > Joel > > > ___ > Emacs-orgmode mailing list > Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] possible patch: org-edit-src-code breaking window configuration
Dan Davison writes: > "Eric Schulte" writes: > >> Hi, >> >> I've noticed that org-edit-src breaks my window configuration. The >> patch below fixes this, but introduces a new global variable, and might >> not have sensible behavior if multiple source-code blocks are edited at >> once. Even so I personally prefer it's behavior to the current default >> behavior of removing all windows from the current frame. >> >> thoughts? -- Eric > > Nice. I think it's a desirable improvement to my changes. I've had a > quick test (with all 4 possible values of org-src-window-setup) and it > seemed to work as hoped. With the emphasis on 'quick' apparently. One further improvement on this line of work: at the moment we are attempting to alter window configuration when saving with C-x C-s in the edit buffer, which is having unpleasant consequences. This is fixed in branch org-src-window-setup at git://repo.or.cz/org-mode/babel.git. Dan > I guess the new variable should be defvar'd as > nil in org-edit-src? There are already a number of other not-for-users > global variables used in a similar way in org-src, so it won't be > out-of-place. > > Dan > >> >> diff --git a/lisp/org-src.el b/lisp/org-src.el >> index eba8ef3..2f578b9 100644 >> --- a/lisp/org-src.el >> +++ b/lisp/org-src.el >> @@ -193,6 +193,7 @@ to the correct language mode. When done, exit with >> \\[org-edit-src-exit]. >> This will remove the original code in the Org buffer, and replace it with >> the edited version." >>(interactive) >> + (setq org-edit-src-saved-temp-window-config >> (current-window-configuration)) >>(let ((line (org-current-line)) >> (col (current-column)) >> (case-fold-search t) >> @@ -574,7 +575,10 @@ the language, a switch telling if the content should be >> in a single line." >> (org-goto-line (1- (+ (org-current-line) line))) >> (org-move-to-column (if preserve-indentation col (+ col total-nindent >> delta))) >> (move-marker beg nil) >> -(move-marker end nil))) >> +(move-marker end nil)) >> + (when org-edit-src-saved-temp-window-config >> +(set-window-configuration org-edit-src-saved-temp-window-config) >> +(setq org-edit-src-saved-temp-window-config nil))) >> >> (defun org-edit-src-save () >>"Save parent buffer with current state source-code buffer." >> >> >> ___ >> Emacs-orgmode mailing list >> Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Monthly events based on count of specific weekdays
Howdy all, How can I set an event in Org mode that repeats every month, on a specific weekday, on a week counted from the start of the month? For example: * every month on the first Tuesday of the month. * every month on the third Sunday of the month. * every first and third Wednesday of the month. Taking “first Tuesday of the month”, if I set it this month on <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so on each month. These do not do what I want: * <2009-11-15 Sun +1m> * <2009-11-08 Sun ++1m> * <2009-11-08 Sun .+1m> Each of these next repeats on <2009-12-15 Tue>, the wrong date. How can I specify a repeating event to Org mode that achieves what I described above? -- \ “Nature is trying very hard to make us succeed, but nature does | `\ not depend on us. We are not the only experiment.” —Richard | _o__) Buckminster Fuller, 1978-04-30 | Ben Finney ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: contact management in org-mode?
Russell Adams writes: > Given the discussion about a "simple" database [for storing contacts], > it struck me that I might just use properties and column mode. Dynamic > fields and views, hotlinks, VC, text file... Thank you, Russell, for the BBDB rant (which I quite agree with) and for giving your current solution based on Org items with properties. I'm dipping my toes into Org and, for contact data, BBDB seemed the natural way to go; I'm glad I looked around to find alternatives before dumping too much data into BBDB. Everyone's responses in this thread have saved me a *lot* of time and effort. -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\ Brain, but if they called them ‘Sad Meals’, kids wouldn't buy | _o__)them!” —_Pinky and The Brain_ | Ben Finney ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] possible patch: org-edit-src-code breaking window configuration
On Nov 8, 2009, at 2:58 AM, Dan Davison wrote: Dan Davison writes: "Eric Schulte" writes: Hi, I've noticed that org-edit-src breaks my window configuration. The patch below fixes this, but introduces a new global variable, and might not have sensible behavior if multiple source-code blocks are edited at once. Even so I personally prefer it's behavior to the current default behavior of removing all windows from the current frame. thoughts? -- Eric Nice. I think it's a desirable improvement to my changes. I've had a quick test (with all 4 possible values of org-src-window-setup) and it seemed to work as hoped. With the emphasis on 'quick' apparently. One further improvement on this line of work: at the moment we are attempting to alter window configuration when saving with C-x C-s in the edit buffer, which is having unpleasant consequences. This is fixed in branch org-src-window-setup at git://repo.or.cz/org-mode/babel.git. Hi Dan, I have noticed problems with C-x C-s while editing (beeps, and windows change). If your patch fixes this, please merge it in. - Carsten Dan I guess the new variable should be defvar'd as nil in org-edit-src? There are already a number of other not-for- users global variables used in a similar way in org-src, so it won't be out-of-place. Dan diff --git a/lisp/org-src.el b/lisp/org-src.el index eba8ef3..2f578b9 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -193,6 +193,7 @@ to the correct language mode. When done, exit with \\[org-edit-src-exit]. This will remove the original code in the Org buffer, and replace it with the edited version." (interactive) + (setq org-edit-src-saved-temp-window-config (current-window- configuration)) (let ((line (org-current-line)) (col (current-column)) (case-fold-search t) @@ -574,7 +575,10 @@ the language, a switch telling if the content should be in a single line." (org-goto-line (1- (+ (org-current-line) line))) (org-move-to-column (if preserve-indentation col (+ col total- nindent delta))) (move-marker beg nil) -(move-marker end nil))) +(move-marker end nil)) + (when org-edit-src-saved-temp-window-config +(set-window-configuration org-edit-src-saved-temp-window- config) +(setq org-edit-src-saved-temp-window-config nil))) (defun org-edit-src-save () "Save parent buffer with current state source-code buffer." ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode