[Orgmode] tasks with days remaining?
Does a feature exist in org-mode where you can specify a deadline for a particular TODO and org-mode displays the days remaining somewhere next to the task? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: org-src-lang-modes maps lisp incorrectly [6.34trans (release_6.34c.107.geb521)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Trying to source blocks for common lisp (eg lisp-mode) produces an error. The fix is trivial: replace the assoc pair '(lisp . 'lisp-mode) in org-src-lang-modes with '(lisp . 'lisp). We have to do this because `org-edit-src-code' wants to play smart and append -mode to whatever symbol is in that alist. In case this is not enough follows is a reproducable test-case. Put any buffer into org-mode, and put the following in , | #+BEGIN_SRC lisp | | #+END_SRC ` Put point somewhere in that block and do: M-x org-edit-src-code RET We get an error about not able to find the mode lisp-mode-mode. Of course the proposed fix is simply replacing 'lisp-mode with 'lisp. Emacs : GNU Emacs 23.1.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-09 on elegiac, modified by Debian Package: Org-mode version 6.34trans (release_6.34c.107.geb521) current state: == (setq org-export-html-final-hook '(org-inlinetask-remove-terminator) org-empty-line-terminates-plain-lists t org-log-done 'time org-toc-default-depth 2 org-export-author-info nil org-agenda-skip-scheduled-if-deadline-is-shown t org-archive-default-command 'org-archive-set-tag org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-hide-block-startup t org-special-ctrl-a/e t org-startup-align-all-tables t org-agenda-clockreport-parameter-plist '(:link t :maxlevel 4) org-default-priority 67 org-agenda-files '(~/lisp/nisp/irc-bot/tree-funcallable-class.org ~/lisp/nisp/emacs/org/nisp-org-util.org ~/org/todo-triage.org) org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-tag-faces '((gitapi :foreground purple)) org-src-window-setup 'other-window org-publish-timestamp-directory ~/org/.org-timestamps/ org-export-ascii-final-hook '(org-inlinetask-remove-terminator) org-agenda-window-setup 'other-frame org-hide-leading-stars t org-checklist-export-function 'org-export-as-ascii org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-archive-save-context-info '(time file category todo priority itags olpath ltags) org-after-todo-state-change-hook '(org-checklist org-clock-out-if-current nisp-org-todo-updates-notify-erc) org-babel-interpreters '(sh emacs-lisp) org-goto-interface 'outline-path-completion org-odd-levels-only t org-agenda-start-with-log-mode t org-remember-clock-out-on-exit t org-special-ctrl-k t org-export-copy-to-kill-ring nil org-todo-setup-filter-hook '(org-choose-setup-filter) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-agenda-time-grid '((daily weekly today require-timed) (800 1000 1200 1400 1600 1800 2000)) org-export-time-stamp-file nil org-log-redeadline 'time org-src-lang-modes '((ocaml . tuareg) (elisp . emacs-lisp) (ditaa . artist) (asymptote . asy) (dot . fundamental) (lisp . lisp-mode)) org-trigger-hook '(org-choose-keep-sensible) org-export-preprocess-hook '(org-eval-replace-snippts org-export-blocks-preprocess) org-agenda-diary-file ~/org/diary.org org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-make-link-description-function 'nisp-org-make-link-description org-confirm-shell-link-function 'y-or-n-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-clock-persist t org-plain-list-ordered-item-terminator 41 org-todo-keywords '((sequence TODO(t) DONE(d!)) (sequence QUESTION(q!) ANSWERED(d!))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/org/notes.org org-use-property-inheritance '(VERSION) org-directory ~/org/ org-imenu-depth 4 org-log-reschedule 'time org-registry-file /home/james/.emacs.d/config/org-registry.el org-export-html-use-infojs t org-blank-before-new-entry '((heading . auto) (plain-list-item)) org-todo-get-default-hook '(org-choose-get-default-mark) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-agenda-mouse-1-follows-link t org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote
Re: [Orgmode] tasks with days remaining?
Brian Brooks brooks.br...@gmail.com writes: Does a feature exist in org-mode where you can specify a deadline for a particular TODO and org-mode displays the days remaining somewhere next to the task? the agenda: C-c a a : Saturday 27 February 2010 j: Deadline: READ Solar Energy Materials Solar Cells ___ 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] Let's TALK about it
I will probably go here http://www.pycon.it/ (what does it have to do with org-mode you might think). Anyway I wanted to propose a talk on emacs and python programming packages used to simplify the editing. I would also like to include something on literate programming with orgmode/babel, so I was wondering if you have any advices... I've never done a presentation like this before, but in this case I think an interactive session where I show things would be nicer than a set of slides. Are there any presentations around about the subject where I could give a look? Also the emacs+org-mode is a quite complicated world, I would like to show all the best features without having to deal with elisp code or having to explain too much... What could be the minimal introduction needed before talking about org-babel for a smart (but maybe not emacser) audience? ___ 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] tasks with days remaining?
On 25.02.2010 01:30, Brian Brooks wrote: Does a feature exist in org-mode where you can specify a deadline for a particular TODO and org-mode displays the days remaining somewhere next to the task? The feature you are looking for is deadlines; see 8.3 Deadlines and scheduling in the manual. Also, check out the variable org-deadline-warning-days, which defaults to 14. This means that as soon as the deadline is less than two weeks away, it will show up in the agenda (and org-mode will display the number of days remaining). You can change this number globally through the variable. To change it for a single deadline to, say, 70 days: DEADLINE: 2010-02-26 Fr -70d AFAIK, the number of days remaining will only be displayed in the agenda view and there is no feature that displays it in the actual org file. HTH, Jan ___ 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: org-src-lang-modes maps lisp incorrectly [6.34trans (release_6.34c.107.geb521)]
Hi James, On Feb 25, 2010, at 3:11 AM, James wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Trying to source blocks for common lisp (eg lisp-mode) produces an error. The fix is trivial: replace the assoc pair '(lisp . 'lisp-mode) in org-src-lang-modes with '(lisp . 'lisp). This pair does not exist in the default value, at least not in the current release. Maybe you have an old version? Or maybe you put that there yourself? HTH - Carsten We have to do this because `org-edit-src-code' wants to play smart and append -mode to whatever symbol is in that alist. In case this is not enough follows is a reproducable test-case. Put any buffer into org-mode, and put the following in , | #+BEGIN_SRC lisp | | #+END_SRC ` Put point somewhere in that block and do: M-x org-edit-src-code RET We get an error about not able to find the mode lisp-mode-mode. Of course the proposed fix is simply replacing 'lisp-mode with 'lisp. Emacs : GNU Emacs 23.1.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-09 on elegiac, modified by Debian Package: Org-mode version 6.34trans (release_6.34c.107.geb521) current state: == (setq org-export-html-final-hook '(org-inlinetask-remove-terminator) org-empty-line-terminates-plain-lists t org-log-done 'time org-toc-default-depth 2 org-export-author-info nil org-agenda-skip-scheduled-if-deadline-is-shown t org-archive-default-command 'org-archive-set-tag org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-hide-block-startup t org-special-ctrl-a/e t org-startup-align-all-tables t org-agenda-clockreport-parameter-plist '(:link t :maxlevel 4) org-default-priority 67 org-agenda-files '(~/lisp/nisp/irc-bot/tree-funcallable-class.org ~/lisp/nisp/emacs/org/nisp-org-util.org ~/org/todo-triage.org) org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-tag-faces '((gitapi :foreground purple)) org-src-window-setup 'other-window org-publish-timestamp-directory ~/org/.org-timestamps/ org-export-ascii-final-hook '(org-inlinetask-remove-terminator) org-agenda-window-setup 'other-frame org-hide-leading-stars t org-checklist-export-function 'org-export-as-ascii org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-archive-save-context-info '(time file category todo priority itags olpath ltags) org-after-todo-state-change-hook '(org-checklist org-clock-out-if- current nisp-org-todo-updates-notify-erc) org-babel-interpreters '(sh emacs-lisp) org-goto-interface 'outline-path-completion org-odd-levels-only t org-agenda-start-with-log-mode t org-remember-clock-out-on-exit t org-special-ctrl-k t org-export-copy-to-kill-ring nil org-todo-setup-filter-hook '(org-choose-setup-filter) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-agenda-time-grid '((daily weekly today require-timed) (800 1000 1200 1400 1600 1800 2000)) org-export-time-stamp-file nil org-log-redeadline 'time org-src-lang-modes '((ocaml . tuareg) (elisp . emacs-lisp) (ditaa . artist) (asymptote . asy) (dot . fundamental) (lisp . lisp-mode)) org-trigger-hook '(org-choose-keep-sensible) org-export-preprocess-hook '(org-eval-replace-snippts org-export- blocks-preprocess) org-agenda-diary-file ~/org/diary.org org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-make-link-description-function 'nisp-org-make-link-description org-confirm-shell-link-function 'y-or-n-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-clock-persist t org-plain-list-ordered-item-terminator 41 org-todo-keywords '((sequence TODO(t) DONE(d!)) (sequence QUESTION(q!) ANSWERED(d!))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/org/notes.org org-use-property-inheritance '(VERSION) org-directory ~/org/ org-imenu-depth 4 org-log-reschedule 'time org-registry-file /home/james/.emacs.d/config/org-registry.el org-export-html-use-infojs t org-blank-before-new-entry '((heading . auto) (plain-list-item)) org-todo-get-default-hook '(org-choose-get-default-mark) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-
Re: [Orgmode] Problem with table sums
:-) I should have known. These days, babel is the answer to most questions ... :-) - Carste On Feb 24, 2010, at 4:40 PM, Dan Davison wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Feb 23, 2010, at 11:08 PM, Sébastien Vauban wrote: [...] Though, I need to re-use some of the intermediate computations for another summary table. Therefore, I add names to some cells: #+TBLNAME: etape1 | | Étape 1 | p.j | EUR HTVA| |---+---+-+-| | | Prestations | 100 | 4.00| | ^ | | pj | Prestations | | | Frais annexes | | 1280.00 | | ^ | | | FraisAnnexes| | | Gestion du projet | | 3200.00 | | ^ | | | GestionDuProjet | | | Licence | | 8000.00 | | ^ | | | Licence | |---+---+-+-| | | Total | | 4.00| | ^ | | | Total | #+TBLFM: @2...@2$3*400.00;%.2f::@4...@2$4*0.08*0.40;%. 2f::@6...@2$4*0.08;%.2f::@8...@2$4*0.20;%.2f::@10$4=vsum(@-...@-ii); %.2f Now, the total is wrong: it's the value of the first cell... Like if the `^' prefix was simply dropped... and total limited to the first real figure. Any reason for this phenomenon? Or workaround (other than describing every cell to be summed)? Well, the reason is that the parser probably stops at the first text when summing, it tries to add Prestations. I am afraid there is not good work-around for this. Hi Seb, Well, I was going to suggest using org-babel. After playing around for a while, I ended up reading the org manual on table formulas and coming back to a pure org solution. My simplest solution is almost straight out of the manual (which makes me worry that I've missed the point of the question?): #+TBLFM:@10$4='(apply '+ '(@-...@-ii));N But seeing as I've got them, I may as well post my org-babel solutions. Here's the first set of org-babel solutions, which are just like the first solution, but use blocks to do the computation: #+TBLFM:@10$4='(sbe my-sum-LANG (n (@-...@-ii)));N where LANG is whatever language you want to compute the sum in: #+function: my-sum-elisp(n) #+begin_src emacs-lisp (apply '+ n) #+end_src #+function: my-sum-R(n) #+begin_src R sum(n) #+end_src #+function: my-sum-python(n) #+begin_src python return sum(n) #+end_src The second set of org-babel solutions use org-babel to do the table indexing. This was before I realised that I could use the @-...@-ii and ;N syntax in conjunction with the org-babel sbe macro. So these ones have to deal with separating the numeric entries from the character strings. #+TBLFM:@10$4='(sbe my-tab-sum-LANG);%.2f #+function: my-tab-sum-elisp #+begin_src emacs-lisp :var tab=etape1[2:9,3] (apply '+ (remq nil (mapcar (lambda (row) (if (numberp (car row)) (car row))) tab))) #+end_src #+function: my-tab-sum-R #+begin_src R :var tab=etape1[2:9,3] sum(as.numeric(tab[[1]]), na.rm=TRUE) #+end_src #+function: my-tab-sum-python #+begin_src python :var tab=etape1[2:9,3] flatten = lambda(lizt): sum(lizt, []) return sum(filter(lambda x: isinstance(x, float), flatten(tab))) #+end_src Dan - Carsten Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ 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 - Carsten ___ 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] textareas in HTML export
Applied, thanks. But I did move the overflow:x property into the css section (default style), because I think it is important *functionality* that should be there out off the box. Thanks, Ulf! - Carsten On Feb 23, 2010, at 12:04 PM, Ulf Stegemann wrote: Hi, I think that exporting an example to HTML as textarea does not result in correct HTML code. I don't know if , | textarea cols=80 rows=2 overflow-x:scroll ` has an effect in any user-agent but as this seems to be a css directive this should probably read , | textarea cols=80 rows=2 style=overflow-x:scroll; ` However, I would leave out the overflow stuff completely as stylesheets can be easily controlled by the user him/herself. Furthermore, I would suggest to leave out the newline after the textarea tag which always produces an empty line at the beginning of the example. The following does that: --- org-exp.el.orig 2010-02-23 11:11:37.377506001 +0100 +++ org-exp.el 2010-02-23 11:52:45.326505387 +0100 @@ -2475,7 +2475,7 @@ (if caption /div ) (if textareap (setq rtn (concat - (format p\ntextarea cols=\%d\ rows=\%d\ overflow- x:scroll \n + (format p\ntextarea cols=\%d\ rows=\%d\ cols rows) rtn /textarea\n/p\n)) (with-temp-buffer Ulf ___ 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 - Carsten ___ 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: textareas in HTML export
Dear Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: Applied, thanks. thanks for that :) But I did move the overflow:x property into the css section (default style), because I think it is important *functionality* that should be there out off the box. Just as a suggestion: Wouldn't it be better to set `overflow-x' to `auto' instead of `scroll'? This leaves it up to the user agent how to render boxes with overflows. Major browsers (FF, IEs, Opera, Chrome) do what you expect: display a scroll bar if it's necessary (text goes beyond box border) or leave it out whenever it's not needed. Ulf ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] question about writing org-remember templates
Dear Experts, Thanks for org-mode. It's great! I have a question about org-remember templates: Is there a way to have the heading (i.e., the 5th argument in an org-remember template) chosen in a more interactive way? For example, I'd like to do something like (TODO ?t * TODO %? %^{topic} \n %i\n ~/org/todo.org Tasks/^{topic}) where the topic the user enters will get used in deciding which heading to put the item under. 1. Is this possible? 2. Is there a simple hack I can do to the latest version of org-mode to do it myself? (Pointers/suggestions to appropriate .el files appreciated) 3. Can I avoid asking the user for topic multiple times and just have the first value entered by the user used in all places? Thanks, -Emin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: textareas in HTML export
On Feb 25, 2010, at 2:23 PM, Ulf Stegemann wrote: Dear Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: Applied, thanks. thanks for that :) But I did move the overflow:x property into the css section (default style), because I think it is important *functionality* that should be there out off the box. Just as a suggestion: Wouldn't it be better to set `overflow-x' to `auto' instead of `scroll'? This leaves it up to the user agent how to render boxes with overflows. Major browsers (FF, IEs, Opera, Chrome) do what you expect: display a scroll bar if it's necessary (text goes beyond box border) or leave it out whenever it's not needed. OK, I did that. Thanks. - Carsten ___ 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] question about writing org-remember templates
On Feb 25, 2010, at 1:56 PM, Emin.shopper Martinian.shopper wrote: Dear Experts, Thanks for org-mode. It's great! I have a question about org-remember templates: Is there a way to have the heading (i.e., the 5th argument in an org-remember template) chosen in a more interactive way? For example, I'd like to do something like (TODO ?t * TODO %? %^{topic} \n %i\n ~/org/todo.org Tasks/^{topic}) where the topic the user enters will get used in deciding which heading to put the item under. 1. Is this possible? Yes, use the C-1 prefix when storing the note. And read http://orgmode.org/manual/Storing-notes.html#Storing-notes and also check the docstring of the variable org-remember-interactive-interface 2. Is there a simple hack I can do to the latest version of org-mode to do it myself? (Pointers/suggestions to appropriate .el files appreciated) 3. Can I avoid asking the user for topic multiple times and just have the first value entered by the user used in all places? You can file to the same location as the last time using the C-0 prefix when storing the note. All this is also shown in the commentary in the remember buffer. HTH - Carsten Thanks, -Emin ___ 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 - Carsten ___ 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] Restriction Lock - Visible notifier?
Hi Nathan, the mode line now shows [] after Org Agenda when the agenda is restricted by a restriction lock. Hope this helps. - Carsten On Feb 24, 2010, at 8:08 PM, Nathan Neff wrote: I like the org-agenda-set-restriction-lock feature, but I recently wasted quite a bit of time troubleshooting my agenda views, only to find out that I'd set the restriction lock to a single file. Is there an option to toggle that would show me that I have the agenda restricted to a single file? The only visible notifier that I found was on the Agenda-Agenda Files menu, where it said Restricted to a single File. Thanks, --Nate ___ 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 - Carsten ___ 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] Let's TALK about it
Hi Andrea, Andrea Crotti andrea.crott...@gmail.com writes: [...] What could be the minimal introduction needed before talking about org-babel for a smart (but maybe not emacser) audience? That's an excellent question, and I have no idea what the answer should be. The first step is certainly introducing Org-mode, maybe with a focus on tables, and the export to html and LaTeX. From there Org-babel may best be described as the addition of active source code to Org-mode documents. I think Org-babel is most easily introduced through a couple of short live demos hitting on the main points of functionality - executing a source code block capturing the results in an org-mode buffer - reading inputs from a table - reading inputs from another source-code block - tangling - exporting an org file to html including soure-code block results and/or fontified code Best of luck! -- 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 ___ 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: Let's TALK about it
Eric Schulte schulte.e...@gmail.com writes: Hi Andrea, That's an excellent question, and I have no idea what the answer should be. The first step is certainly introducing Org-mode, maybe with a focus on tables, and the export to html and LaTeX. From there Org-babel may best be described as the addition of active source code to Org-mode documents. I think Org-babel is most easily introduced through a couple of short live demos hitting on the main points of functionality - executing a source code block capturing the results in an org-mode buffer - reading inputs from a table - reading inputs from another source-code block - tangling - exporting an org file to html including soure-code block results and/or fontified code Best of luck! -- Eric Thanks a lot, now there are a couple of problems: - it's a python conference, I should be able to remain at least close to the topic - the talks are chosen by the people who bought the ticket, so I should try to write it as inviting as possible. The thing is that a tour of python-mode and all what's related for productivity and org-mode/babel would be 2 different talks, so I maybe also propose both of them... But if I propose only org I don't think it will ever be accepted, if I put them together maybe... And if I'm doing both I should take a very long time to show everything could be nice (most talks are 60 minutes if I'm not wrong). ___ 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] Let's TALK about it
On Feb 25, 2010, at 5:29 AM, Eric Schulte wrote: Hi Andrea, Andrea Crotti andrea.crott...@gmail.com writes: [...] What could be the minimal introduction needed before talking about org-babel for a smart (but maybe not emacser) audience? That's an excellent question, and I have no idea what the answer should be. The first step is certainly introducing Org-mode, maybe with a focus on tables, and the export to html and LaTeX. From there Org- babel may best be described as the addition of active source code to Org- mode documents. I think Org-babel is most easily introduced through a couple of short live demos hitting on the main points of functionality - executing a source code block capturing the results in an org-mode buffer - reading inputs from a table - reading inputs from another source-code block - tangling - exporting an org file to html including soure-code block results and/or fontified code Best of luck! -- Eric Hi Andrea, One attempt at a minimal introduction is: http://orgmode.org/worg/org-contrib/babel/intro.php I'd be interested to see your presentation. Perhaps you could send a link to the list for those of us unfortunately not able to travel to Florence. All the best, Tom ___ 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] Easier customization of TODO keyword colors
Hi Ryan, hu everyone, this code (an extended version of it) has now been integrated into Org. It allows you to set fonts for TODO keywords, tags, and priorities in this way. And you can use the variable `org-faces-easy-properties' to make these colors specify the background rather tan the foreground color - something I like for my TODO keywords. Thanks Ryan! Next stop will be using your level indentation cycling function. Just make sure the FSF papers get through :-) - Carsten On Sep 4, 2009, at 7:20 AM, Ryan C. Thompson wrote: Here is some code I came up with some code to make it easier to customize the colors of various TODO keywords. As long as you just want a different color and nothing else, you can customize the variable org-todo-keyword-faces and use just a string color (i.e. a string of the color name) as the face, and then org-get-todo-face will convert the color to a face, inheriting everything else from the standard org-todo face. To demonstrate, I currently have org-todo-keyword-faces set to ((IN PROGRESS . dark orange) (WAITING . red4) (CANCELED . saddle brown)) Here's the code, in a form you can put in your .emacs. (eval-after-load 'org-faces '(progn (defcustom org-todo-keyword-faces nil Faces for specific TODO keywords. This is a list of cons cells, with TODO keywords in the car and faces in the cdr. The face can be a symbol, a color, or a property list of attributes, like (:foreground \blue\ :weight bold :underline t). :group 'org-faces :group 'org-todo :type '(repeat (cons (string :tag Keyword) (choice color (sexp :tag Face))) (eval-after-load 'org '(progn (defun org-get-todo-face-from-color (color) Returns a specification for a face that inherits from org-todo face and has the given color as foreground. Returns nil if color is nil. (when color `(:inherit org-warning :foreground ,color))) (defun org-get-todo-face (kwd) Get the right face for a TODO keyword KWD. If KWD is a number, get the corresponding match group. (if (numberp kwd) (setq kwd (match-string kwd))) (or (let ((face (cdr (assoc kwd org-todo-keyword-faces (if (stringp face) (org-get-todo-face-from-color face) face)) (and (member kwd org-done-keywords) 'org-done) 'org-todo ___ 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Eric S Fraga ucec...@ucl.ac.uk writes: On Tue, 23 Feb 2010 17:05:45 -0700, Eric Schulte schulte.e...@gmail.com wrote: Eric S Fraga ucec...@ucl.ac.uk writes: [...] I have narrowed down what causes the problem although I don't understand why (I haven't had any time to look at the elisp code). Basically, the problem with Johan's initial table was the extra empty row at the end: Ah, Thanks for isolating the issue. It looks like the empty last row is tricking org-plot.el into thinking that the entire Date column contains text labels, so it tries to use the values of that column to label the data with xticlabels [1]. This is useful for histograms such as the Citas graph in [2]. So all in all I'd say this is fine behavior for something like org-plot which tries to guess the user's intentions. Well, good intentions is one thing, wrong behaviour is another? If the user has specified ind:1 deps:(2), even if org-plot identifies column 1 as having labels for the tic marks, the generated parameter to the plot command should be, at best: ... using 1:2:xticlabels(1) ... I just applied a patch which results in the above plotting command, and yields the following gnuplot error when the table contains an empty line illegal day of month which to me seems entirely appropriate. All of the plots form the org-plot page on worg still work with this patch (which amounts to org-plot's test suite), so I relatively confident that it shouldn't break any existing functionality. One problem with org-plot's attempt to guess the best action in each situation is that the code will get increasingly ugly as these corner cases continue to arise, and as that happens it becomes increasingly difficult to know a-priori if a patch will cause unforeseen problems. Best -- Eric which is actually nonsensical as well but not as bad as what is currently generated: ... using 1:xticlabels(1) which completely ignores the deps:(2) option! In any case, I'm not suggesting in any way that this is a critical bug! Simply removing the empty line allows org-plot to work perfectly. ___ 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] help on ditaa
What exactly is the proper way to export code with ditaa? My knowledge must be fragmentary for only the code is exported but the conversion to images failes. I did something like this: Load the appropriate libs, like org-babel, org-babel-tangle, org-ditaa, org-exp-blocks, then set the variable `org-ditaa-jar-path' to the ditaa jar file. The according lines in my org file look like this: #+begin_src ditaa :file image.png :cmdline -r +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_src henry -- http://literaturlatenight.de ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [org-timer] mode line request
Hi Austin, Austin Frank austin.fr...@gmail.com writes: Would it be possible for timers set using org-timer-set-timer to display their current value in the mode line? I'm working on this. I've also simplified the code behind temporary manually-set timers: you can now only add one timer. It's not useful to allow many such timers. While doing this, I fixed a bug about a remaining timer that the user could see when calling `org-timer-show-remaining-time'. Thanks to Frédéric Couchet for catching 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] inserting notes at level 1 with org-remember
Hello! The documentation for org-remember-templates says the following: An optional fifth element can specify the headline in that file that should be offered first when the user is asked to file the entry. The default headline is given in the variable `org-remember-default-headline'. When this element is `top' or `bottom', the note will be placed as a level-1 entry at the beginning or end of the file, respectively. But I find that org-remember always creates notes as a level-2 entry. For example, starting with an empty example.org file and the following configuration: (setq org-remember-templates '((Note ?n * %u %?\n\n%i\n%a example.org top))) Invoking org-remember twice results in these contents: ** [2010-02-25 Thu] note two ** [2010-02-25 Thu] note one What I expected was: * [2010-02-25 Thu] note two * [2010-02-25 Thu] note one Am I doing it wrong? Or is this a bug in org-remember? If a bug, is there a workaround I could apply to my configuration? Kind thanks for your time, -- Trance ___ 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] default browser - SOLVED
Dear fellow org-moders, this is what was suggested to me: (setq browse-url-browser-function (quote browse-url-generic)) (setq browse-url-generic-program chromium-browser) works perfectly on Ubuntu Karmic + Emacs 23.1.1. Again, thanks for org-mode. -- Henri-Paul Indiogine Email: hindiog...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] help on ditaa
Hi Henry, Try pressing C-c C-c with the cursor on your ditaa block. If an image is generated and a link inserted into the file, but you're still not getting an image on export then try making the following change (adding an exports header argument) to your block #+begin_src ditaa :file image.png :cmdline -r :exports results +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_src otherwise you probably don't have org-babel activated in which case adding (require 'org-babel-init) to your .emacs should help. Best -- Eric henry atting nsmp...@online.de writes: What exactly is the proper way to export code with ditaa? My knowledge must be fragmentary for only the code is exported but the conversion to images failes. I did something like this: Load the appropriate libs, like org-babel, org-babel-tangle, org-ditaa, org-exp-blocks, then set the variable `org-ditaa-jar-path' to the ditaa jar file. The according lines in my org file look like this: #+begin_src ditaa :file image.png :cmdline -r +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_src henry ___ 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] default browser - SOLVED
Hi Henri-Paul, thanks for summarizing here in the mailing list, this creates a searchable record of a good answer! Best wishes - Carsten On Feb 25, 2010, at 7:18 PM, Henri-Paul Indiogine wrote: Dear fellow org-moders, this is what was suggested to me: (setq browse-url-browser-function (quote browse-url-generic)) (setq browse-url-generic-program chromium-browser) works perfectly on Ubuntu Karmic + Emacs 23.1.1. Again, thanks for org-mode. -- Henri-Paul Indiogine Email: hindiog...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ 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] Plotting date on xaxis
On Thu, 25 Feb 2010 10:44:33 -0700, Eric Schulte schulte.e...@gmail.com wrote: Eric S Fraga ucec...@ucl.ac.uk writes: [...] Well, good intentions is one thing, wrong behaviour is another? If the user has specified ind:1 deps:(2), even if org-plot identifies column 1 as having labels for the tic marks, the generated parameter to the plot command should be, at best: ... using 1:2:xticlabels(1) ... I just applied a patch which results in the above plotting command, and yields the following gnuplot error when the table contains an empty line illegal day of month which to me seems entirely appropriate. It does indeed seem perfectly appropriate! Thanks. All of the plots form the org-plot page on worg still work with this patch (which amounts to org-plot's test suite), so I relatively confident that it shouldn't break any existing functionality. One problem with org-plot's attempt to guess the best action in each situation is that the code will get increasingly ugly as these corner cases continue to arise, and as that happens it becomes increasingly difficult to know a-priori if a patch will cause unforeseen problems. Yes, I can imagine. I guess, for Johan's benefit, that it's best to move on to org-babel for the more complex problems leaving the direct gnuplot support for simple cases! Thanks again, 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
[Orgmode] slight change to default value of org-beamer-fragile-re
Hi, I'd propose changing the default value of `org-beamer-fragile-re' from ^[ \t]*begin{verbatim} to ^[ \t]*begin{\\(verbatim\\|lstlisting\\)} as there are many ways in which Org-mode files automatically generate lstlisting environments. 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
[Orgmode] [org-feed] Remember the Milk - active timestamps
Hi list-members Today, I configured org-feed to catch RSS feeds from RTM. For Appointments I wrote a template that was intended to convert RTM-schedules to org timestamps (i.e. the date of the appointment). :template * APPT %title\n %T This doesn't work, because what is converted by %T is not the schedule but the creation date of the RTM-entry. Has anybody solved this problem? Greetings, Sven ___ 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] more problems with future timestamps
EHLo. I think the following patch should be applied to handle the future properly. I belive the year is set by the time this part is reached. At least that is what I observe using ISO dates. When I write 1-2 (1 January) I get it in 2010. --8---cut here---start-8--- diff --git a/lisp/org.el b/lisp/org.el index 8ba782a..3ef2e1c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13491,11 +13491,10 @@ user. (nth 3 tl) ( (nth 3 tl) (nth 3 nowdecode))) (prog1 (1+ (nth 4 nowdecode)) (setq futurep t)) (nth 4 defdecode))) - year (or (nth 5 tl) - (if (and org-read-date-prefer-future + year (if (and org-read-date-prefer-future (nth 4 tl) ( (nth 4 tl) (nth 4 nowdecode))) (prog1 (1+ (nth 5 nowdecode)) (setq futurep t)) -(nth 5 defdecode))) +(nth 5 defdecode)) hour (or (nth 2 tl) (nth 2 defdecode)) minute (or (nth 1 tl) (nth 1 defdecode)) second (or (nth 0 tl) 0) --8---cut here---end---8--- BTW when I write w2 in the org date input minibuffer Error in post-command-hook: (void-function calendar-absolute-from-iso) -- Miłego dnia, Łukasz Stelmach ___ 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] Restriction Lock - Visible notifier?
On Thu, Feb 25, 2010 at 9:05 AM, Carsten Dominik carsten.domi...@gmail.comwrote: Hi Nathan, the mode line now shows [] after Org Agenda when the agenda is restricted by a restriction lock. Hope this helps. Very nice. I got the upgrade, and it works. Thanks, --Nate - Carsten On Feb 24, 2010, at 8:08 PM, Nathan Neff wrote: I like the org-agenda-set-restriction-lock feature, but I recently wasted quite a bit of time troubleshooting my agenda views, only to find out that I'd set the restriction lock to a single file. Is there an option to toggle that would show me that I have the agenda restricted to a single file? The only visible notifier that I found was on the Agenda-Agenda Files menu, where it said Restricted to a single File. Thanks, --Nate ___ 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 - Carsten ___ 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] Can't import a remote reference to a whole column in orgtbl
Hi, I'm new to org-mode and orgtbl, please don't hit me too hard with a stick if what I'm asking is retarded :) I'm using org-mode with orgtbl inside a Latex document. I'm making extensive use of remote references to other tables inside the document. If I reference a cell, for example, with remote(results_par,@2$9), it works as expected, but if I reference a whole column, with remote(results_par,$9), it doesn't work: instead of column 9 from results_par table, I get column 9 from the table I'm woking on. Am I doing something wrong or did I stumble with a bug in orgtbl? Any workaround or version that has it fixed? I would *really* appreciate some help, deadlines are crushing me! Regards, and thanks in advance! Ismael ___ 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: Can't import a remote reference to a whole column in orgtbl
This would probably help: Source table: #+TBLNAME: results_par #+ORGTBL: SEND results_par orgtbl-to-latex :splice t :skip 2 | | proc |t1 | |t2 | | | t3 | | | |---+--+---+---+---+---+--+--+---+--| | # |1 | 1.72 | 1.72 | 60.21 | 0.89 | 0.89 | 8.84 | 0.87 | 0.87 | | # |2 | 32.66 | 16.33 | 30.37 | 1.77 | 0.89 | 4.41 | 1.74 | 0.87 | | # |4 | 37.26 | 9.31 | 15.63 | 3.44 | 0.86 | 2.22 | 3.45 | 0.86 | | # |8 | 36.36 | 4.54 | 8.12 | 6.62 | 0.83 | 1.11 | 6.90 | 0.86 | | # | 16 | 38.90 | 2.43 | 4.38 | 12.28 | 0.77 | 0.56 | 13.68 | 0.85 | #+TBLFM: $3=$0;%.2f :: $...@$-1/@$2;%.2f :: $5=$0;%.2f :: $6=remote(results_seq,@2$1)/@$-1;%.2f :: $...@$-1/@$2;%.2f ::\ $8=$0;%.2f :: $9=remote(results_seq,@2$2)/@$-1;%.2f :: $...@$-1/@$2;%.2f % $ Destination table: #+ORGTBL: SEND results1_2 orgtbl-to-latex :splice t :skip 2 | | proc |t1 | | |t2 | | | t3 | | | |---+--+---+--+--+---+--+--+--+--+--| | # |1 | 1.59 | 1.00 | 1.00 | 40.05 | 0.02 | 0.02 | 8.34 | 8.34 | 8.34 | | # |2 | 37.28 | 1.00 | 0.50 | 20.29 | 0.02 | 0.01 | 4.17 | 4.17 | 2.08 | | # |4 | 34.91 | 1.00 | 0.25 | 10.43 | 0.02 | 0.01 | 2.13 | 2.13 | 0.53 | | # |8 | 36.36 | 1.00 | 0.12 | 5.42 | 0.02 | 0.00 | 1.05 | 1.05 | 0.13 | | # | 16 | 38.93 | 1.00 | 0.06 | 3.03 | 0.02 | 0.00 | 0.53 | 0.53 | 0.03 | #+TBLFM: $3=$0;%.2f :: $4=remote(results_par,$3)/@$-1;%.2f :: $...@$-1/@$2;%.2f :: $6=$0;%.2f :: $7=remote(results_par,$5)/@$-1;%.2f :: $...@$-1/@$2;%.2f :: \ $9=$0;%.2f :: $10=remote(results_par,$9);%.2f :: $...@$-1/@$2;%.2f % $ Note how $10=remote(results_par,$9) yields $10=$9. Also, this happened on org-mode 6.34c-5 and org-mode from git. Regards, Ismael On Fri, Feb 26, 2010 at 1:43 AM, Ismael Barros² razielm...@gmail.com wrote: Hi, I'm new to org-mode and orgtbl, please don't hit me too hard with a stick if what I'm asking is retarded :) I'm using org-mode with orgtbl inside a Latex document. I'm making extensive use of remote references to other tables inside the document. If I reference a cell, for example, with remote(results_par,@2$9), it works as expected, but if I reference a whole column, with remote(results_par,$9), it doesn't work: instead of column 9 from results_par table, I get column 9 from the table I'm woking on. Am I doing something wrong or did I stumble with a bug in orgtbl? Any workaround or version that has it fixed? I would *really* appreciate some help, deadlines are crushing me! Regards, and thanks in advance! Ismael ___ 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] slight change to default value of org-beamer-fragile-re
Hi Eric, please go ahead and check this in. - Carsten On Feb 25, 2010, at 9:10 PM, Eric Schulte wrote: Hi, I'd propose changing the default value of `org-beamer-fragile-re' from ^[ \t]*begin{verbatim} to ^[ \t]*begin{\\(verbatim\\|lstlisting\\)} as there are many ways in which Org-mode files automatically generate lstlisting environments. 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 - Carsten ___ 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: inserting notes at level 1 with org-remember
Trance Diviner trance.divi...@gmail.com writes: But I find that org-remember always creates notes as a level-2 entry. For example, starting with an empty example.org file and the following configuration: (setq org-remember-templates '((Note ?n * %u %?\n\n%i\n%a example.org top))) Invoking org-remember twice results in these contents: ** [2010-02-25 Thu] note two ** [2010-02-25 Thu] note one What I expected was: * [2010-02-25 Thu] note two * [2010-02-25 Thu] note one I cannot duplicate this. With your remember template, org mode files the entries at the top of example.org as level 1 headlines. 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
[Orgmode] MobileOrg Android 0.1_alpha
Sorry if this double posts, had forgotten which email address I had signed up for on the mailing list. Hey folks, I've been working on a version of MobileOrg for the Android platform with the goal to reach feature parity with the iPhone version developed by Richard Moreland. I have completed an early alpha version that can fetch and display the contents of Org files stored on a webdav server. There are some good instructions for setting up a webdav server in the normal MobileOrg documentation: http://mobileorg.ncogni.to/doc/ For getting started from the emacs side of things, the Org-mode documentation itself contains all the information you need: http://orgmode.org/manual/MobileOrg.html As for the MobileOrg android application itself you can find the release notes and a download link here: http://wiki.github.com/matburt/mobileorg-android/ There are some known issues with this early alpha version and can't synchronize back to the webdav server yet or handle setting the state of tasks but I felt this was a good start and would actually be useful for Org-mode users When you first start the application up you'll need to click Menu and then Settings and enter your webdav information. After saving you can click Menu again then Sync. Once that has finished it will populate the display and you can drill into your document structure. 73, Matthew W. Jones (KI4ZIB) http://matburt.net ___ 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] orgtbl and table.el
For the table.el table, I mean to include the following. The export of such a table is garbled. Is this the desired result? * sample table + --++ | | file | + --++ | | file | + --+| | test | test | + --++ ___ 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