Re: [Orgmode] Showing scheduled blocked tasks [SEC=UNCLASSIFIED]
On Mar 16, 2010, at 1:36 AM, Matthew Phillips wrote: On 16/03/2010, at 12:24 AM, Carsten Dominik wrote: On Mar 15, 2010, at 1:23 AM, Matthew Phillips wrote: snip So, is there any way I can use a custom skip function in the TODO block to remove blocked tasks? Is there a way of getting the blocked status of a task from such a function? Yes, BLOCKED is a virtual property which does this. I think you can just do a tags/property/todo search like this -BLOCKED/+TODO” That query still shows the blocked tasks, unfortunately. My mistake: +BLOCKEDt/+TODO This means that the BLOCKED property should not be equal to t. - Carsten Or you can test for the BLOCKED property in a user-written skip function. I’ll follow this route next... Thanks very much for your help, Carsten. Cheers, Matthew. IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. - 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] wriging about computer programming
Hello. Sometimes org-mode isn't smart enough, but I don't require it to be because I understand my demands might be high. For example marking code with =...= can't manege apostrophes right next to equality signs =a = 'B'= doesn't work actually as expected (particularly latex export). But fear not and use unicode. There is U200B /xe2/x80/x8b ZERO WIDTH SPACE When you put (C-x 8 RET 200b RET) it next to equality signs =a = 'B'= ^^ ^^ Everything works like charm *and* there is completely no additional space in the output. -- 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
[Orgmode] Orgmode and matlab again.
Hi all. Can some one point me out part of code from babel-org and python-babel which is responsible for opening python code in python mode and putting it back in orgmode. I've tried to read files in lang directory of babel, but my knowledge of lisp did not let me to figure it out. I wanted to connect emacs matlab mode and hope it will help me to do it. Thanks. Petro. ___ 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: Additional Export options
Hi, I am checking in to see if anyone has any suggestions on achieving the above results. Thanks in advance. Srinivas ___ 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] Orgmode and matlab again.
Piter_ x.pi...@gmail.com writes: Hi all. Can some one point me out part of code from babel-org and python-babel which is responsible for opening python code in python mode and putting it back in orgmode. Hi Piter, It's actually org-mode that does that, not org-babel. So to get org-mode to open a block of matlab code in matlab mode, you shouldn't need to do anything, apart from download matlab-mode http://sourceforge.net/projects/matlab-emacs/ and (require 'matlab). At this stage, C-c ' on a #+begin_src matlab block should open it for you in matlab mode. We can also easily get the *tangling* functionality of org-babel with (org-babel-add-interpreter matlab) (add-to-list 'org-babel-tangle-langs '(matlab m)) That means that you can extract matlab blocks to files of pure matlab code using org-babel-tangle. Similarly, octave-mode comes bundled with emacs so begin_src octave blocks should open in octave-mode already, and you can get babel tangling functionality with (org-babel-add-interpreter octave) (add-to-list 'org-babel-tangle-langs '(octave m)) However, you will not yet be able to execute any matlab/octave code blocks. That requires someone to do a bit of work, but it looks to me that it might be possible to get both octave and matlab evaluation working, both as external processes and as sessions. See http://www.gnu.org/software/octave/doc/interpreter/Running-Octave-From-Within-Emacs.html#Running-Octave-From-Within-Emacs http://sourceforge.net/projects/matlab-emacs/ http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22268.html Dan I've tried to read files in lang directory of babel, but my knowledge of lisp did not let me to figure it out. I wanted to connect emacs matlab mode and hope it will help me to do it. Thanks. Petro. ___ 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] suggestion: display of #+TITLE
Might it be worth considering a special display for the #+title line in org buffers? Currently it is easy for the title to get buried among more technical configuration lines like #+options, #+startup, #+seq_toto etc. One can take the approach of leaving #+title at the top of the document, and moving the other config lines elesewhere, but even so I am wondering whether anyone else is attracted by the idea of providing an org-title display property that would hide the #+title: component, and use an appropriate face for the title text. In some ways, the current state gives the impression that the title is something which becomes important during export, but is not really a key component of document when it is being viewed in emacs. For example, I expect others are familiar with the experience of exporting an org file without a title, finding that the first heading has been used as a title, and then going back to add in the title as an afterthought. But a title is an important part of a document, and I thought perhaps a special title display would help to make the title more of a first class citizen in org buffers? Dan ___ 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: New Org-mode talk by Carsten Dominik
I found a minor bug in cd-colors.el I use a variation of background/foreground according to day/night environments as suggested in http://www.jurta.org/en/emacs/dotemacs and which I reproduce below But using cd-colors and the day option which means (set-background-color white) (set-foreground-color black) I notice that the face org-hide remains black. As I use (setq org-hide-leading-stars t) this is not quite convenient. So I commented the line of org-hide in cd-colors and everything worked fine! ; `(org-tag ((t (:foreground ,tag ;; `(org-hide ((t (:foreground #191919 `(org-todo ((t (:background ,todo-bg :foreground white ,@box ; Daniel PS here is the text of my .emacs that I commented above ;; ;;; colors (defun my-colors-light (optional frame) Set colors suitable for working in light environments, i.e. in daylight or under bright electric lamps. (interactive) (setq frame-background-mode 'light) (if frame (select-frame frame) (setq frame (selected-frame))) ;; The color with minimal eye fatigue in light environments ;; is AntiqueWhite3 (RGB: 205 192 176), ;; (set-background-color AntiqueWhite3) (set-background-color white) (set-foreground-color black) (when (facep 'region) (set-face-background 'region DarkGrey frame)) (when (facep 'fringe) (set-face-background 'fringe (face-background 'default) frame) (set-face-foreground 'fringe (face-foreground 'default) frame)) ;; When started Emacs under root, warn by red color in the modeline (when (and (facep 'mode-line) (file-exists-p /root) (file-writable-p /root)) (set-face-background 'mode-line firebrick))) (define-key global-map [f6 ?c ?d] 'my-colors-light) ;; c color d day (defun my-colors-dark (optional frame) Set colors suitable for working in the darkness without electricity. (interactive) (setq frame-background-mode 'dark) (if frame (select-frame frame) (setq frame (selected-frame))) (set-background-color black) (set-foreground-color DarkGrey) (when (facep 'region) (set-face-background 'region DimGray frame)) (when (facep 'fringe) (set-face-background 'fringe (face-background 'default) frame) (set-face-foreground 'fringe (face-foreground 'default) frame))) (define-key global-map [f6 ?c ?n] 'my-colors-dark) ;; c color n night ;; Automatically switch to dark background after sunset ;; and to light background after sunrise. ;; (Note that `calendar-latitude' and `calendar-longitude' ;; should be set before calling the `solar-sunrise-sunset') (defun my-colors-set (optional frame) (interactive) (require 'solar) (if (and calendar-latitude calendar-longitude calendar-time-zone) (let* ((l (solar-sunrise-sunset (calendar-current-date))) (sunrise-string (apply 'solar-time-string (car l))) (sunset-string (apply 'solar-time-string (car (cdr l (current-time-string (format-time-string %H:%M))) (if (or (string-lessp current-time-string sunrise-string) (string-lessp sunset-string current-time-string)) (my-colors-dark frame) (my-colors-light frame)) (if (and (boundp 'my-sunset-timer) (timerp my-sunset-timer)) (cancel-timer my-sunset-timer)) (if (and (boundp 'my-sunrise-timer) (timerp my-sunrise-timer)) (cancel-timer my-sunrise-timer)) (setq my-sunset-timer (run-at-time sunset-string (* 60 60 24) 'my-colors-dark)) (setq my-sunrise-timer (run-at-time sunrise-string (* 60 60 24) 'my-colors-light) (my-colors-set) (add-to-list 'after-make-frame-functions 'my-colors-set) 2010/3/9 Carsten Dominik carsten.domi...@gmail.com: On Mar 7, 2010, at 7:51 PM, Manuel Amador wrote: Carsten, Can we get a copy of the color configuration you are using? -- Manuel Yes, I have put my color config here: http://orgmode.org/cd-colors.el This started as a copy of Peter Jones config and was then edited and hacked - which is why it may not be in the most convenient shape. Feel free to package it up nicely and send me a better version. You also need something like this, adapted to your todo keywords. (setq org-todo-keyword-faces '((SDMB . cd-org-someday-kwd-face) (STARTED . cd-org-started-kwd-face) (STRT . cd-org-started-kwd-face) (WAITING . cd-org-waiting-kwd-face) (WAIT . cd-org-waiting-kwd-face) (DELG . cd-org-delegated-kwd-face) (PROJ . cd-org-project-kwd-face) (DONE . cd-org-done-kwd-face) (PRDN . cd-org-done-kwd-face) (PRCL . cd-org-cancelled-kwd-face) (CNCL . cd-org-cancelled-kwd-face) (PRCN . cd-org-cancelled-kwd-face)
[Orgmode] [babel] multiple result outputs from function
Below is a function that I am trying to run in orgmode/babel. It seems to run OK, but instead of printing out three values, its only printing the final result. Once again, i would appreciate some help with what I am missing. Thanks, Graham #+srcname: CI_function #+begin_src R :session daf summary.ci-function(x){ xbar-mean(x) sigma-sd(x) n-length(x) sem-sigma/sqrt(n) lower.ci-xbar+sem*qnorm(0.025) upper.ci-xbar+sem*qnorm(0.975) print (xbar) print (lower.ci) print (upper.ci) } #+end_src #+srcname: SumFlowering2005 #+begin_src R :session daf summary.ci(daf$Flower[daf$YEAR==2005]) #+end_src #+results: SumFlowering2005 : 1.97860201016947 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Graham Smith myotis...@gmail.com writes: Below is a function that I am trying to run in orgmode/babel. It seems to run OK, but instead of printing out three values, its only printing the final result. Once again, i would appreciate some help with what I am missing. Hi Graham, Use ':results output' to get the printed output. The default mode is ':results value' which returns the value of the last expression in the block. #+srcname: CI_function #+begin_src R :session daf summary.ci-function(x){ print (value 1) print (value 2) print (value 3) } #+end_src #+begin_src R :session daf :results output summary.ci() #+end_src #+results: : [1] value 1 : [1] value 2 : [1] value 3 #+begin_src R :session daf summary.ci() #+end_src #+results: : value 3 Dan Thanks, Graham #+srcname: CI_function #+begin_src R :session daf summary.ci-function(x){ xbar-mean(x) sigma-sd(x) n-length(x) sem-sigma/sqrt(n) lower.ci-xbar+sem*qnorm(0.025) upper.ci-xbar+sem*qnorm(0.975) print (xbar) print (lower.ci) print (upper.ci) } #+end_src #+srcname: SumFlowering2005 #+begin_src R :session daf summary.ci(daf$Flower[daf$YEAR==2005]) #+end_src #+results: SumFlowering2005 : 1.97860201016947 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Graham - Graham Smith wrote: Below is a function that I am trying to run in orgmode/babel. It seems to run OK, but instead of printing out three values, its only printing the final result. Once again, i would appreciate some help with what I am missing. Thanks, Graham #+srcname: CI_function #+begin_src R :session daf summary.ci-function(x){ xbar-mean(x) sigma-sd(x) n-length(x) sem-sigma/sqrt(n) lower.ci-xbar+sem*qnorm(0.025) upper.ci-xbar+sem*qnorm(0.975) print (xbar) print (lower.ci) print (upper.ci) } #+end_src #+srcname: SumFlowering2005 #+begin_src R :session daf summary.ci(daf$Flower[daf$YEAR==2005]) #+end_src #+results: SumFlowering2005 : 1.97860201016947 From org-babel docs... The following options are mutually exclusive, and specify how the results should be collected from the source code block. -- value This is the default. The result is the value of the last statement in the source code block. This header argument places Org-babel in functional mode. Note that in some languages, e.g., python, use of this result type requires that a return statement be included in the body of the source code block. E.g., :results value. output The result is the collection of everything printed to stdout during the execution of the source code block. This header argument places Org-babel in scripting mode. E.g., :results output. --- So, add :results output to your source header block. Or, you might want to define your R function to return a list of the three components you're after for further processing, and then not have to include :results output Instead of the 3 print statements, which don't create objects, you could substitute list(xbar, lower.ci, upper.ci) --Erik ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Dan Use ':results output' to get the printed output. The default mode is ':results value' which returns the value of the last expression in the block. Thanks, that's great. At least I managed to sort out my other two problems today on my own !! Graham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Erik So, add :results output to your source header block. Dan beat you to it, but.. list(xbar, lower.ci, upper.ci) This is useful, but the output isn't exactly as I expected #+results: SumFlowering2005 : [[1]] : [1] 1.51 : : [[2]] : [1] 1.048065 : : [[3]] : [1] 1.978602 is there a way of replacing the [1] [2] and [3] with the object names (I know this is really an R question) Thanks, Graham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Graham Smith myotis...@gmail.com writes: Erik So, add :results output to your source header block. Dan beat you to it, but.. list(xbar, lower.ci, upper.ci) This is useful, but the output isn't exactly as I expected #+results: SumFlowering2005 : [[1]] : [1] 1.51 : : [[2]] : [1] 1.048065 : : [[3]] : [1] 1.978602 is there a way of replacing the [1] [2] and [3] with the object names I think you meant replacing the [[1]], [[2]], [[3]]. That would be list(myname1=xbar, myname2=lower.ci, myname3=upper.ci) (I know this is really an R question) yep :) Dan Thanks, Graham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] multiple result outputs from function
Dan, is there a way of replacing the [1] [2] and [3] with the object names I think you meant replacing the [[1]], [[2]], [[3]]. That would be list(myname1=xbar, myname2=lower.ci, myname3=upper.ci) (I know this is really an R question) Thanks again :-) Graham ___ 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] Export HTML from command line
Hi all, When I run `org-export-as-html' in a buffer, it works as I expect, but when I try to run it from an emacs batch command: emacs --batch --execute='(setq vc-follow-symlinks nil)' --visit= current-day.org --execute='(org-export-as-html-and-open nil)' anything between #+BEGIN_HTML: and #+END_HTML: are exported like the following: p#+BEGIN_HTML: lt;pregt;Revision: 934 Message: /pol li Revved 'release-name' variable to '1.10'. /li /ol p Modified : /trunk/scripts/AutoDoc/AutoDoc.buildlt;/pregt; #+END_HTML: /p and I am expecting: preRevision: 934 Message: 1) Revved 'release-name' variable to '1.10'. Modified : /trunk/scripts/AutoDoc/AutoDoc.build/pre This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach ___ 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] Showing scheduled blocked tasks [SEC=UNCLASSIFIED]
On 16/03/2010, at 2:56 AM, Manish wrote: On Thu, Mar 11, 2010 at 7:04 AM, Matthew Phillips wrote: Hello all, I am trying to get a TODO tags view in my daily agenda just shows the first TODO of a “Project” (a la the “next action” in GTD). This allows me to have a TODO “tags” block in my custom agenda that doesn’t run to several pages: I just see the next action for each project, and, as each action is marked DONE, the next one pops up. have you considered using org-depend? this is what i use for almost exactly what you described: 1. a project has several TODOs 2. the first TODO (manually) is assigned a TRIGGER property with chain-siblings(NEXT) as value 3. as this task is marked DONE, the one below is switched to NEXT state and also gets the property 4. switching to NEXT causes org-todo-state-tags-triggers to tag the task with NEXT tag 5. a custom agenda view adds a block of these NEXT tasks Thanks for the suggestion Manish. I did look at org-depend, but it requires a little too much manual intervention for what I'm trying to do: i.e. reduce what I need to to do to have next tasks appear on my radar. Cheers, Matthew. ___ 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] Showing scheduled blocked tasks [SEC=UNCLASSIFIED]
On 16/03/2010, at 6:21 PM, Carsten Dominik wrote: On Mar 16, 2010, at 1:36 AM, Matthew Phillips wrote: On 16/03/2010, at 12:24 AM, Carsten Dominik wrote: On Mar 15, 2010, at 1:23 AM, Matthew Phillips wrote: snip So, is there any way I can use a custom skip function in the TODO block to remove blocked tasks? Is there a way of getting the blocked status of a task from such a function? Yes, BLOCKED is a virtual property which does this. I think you can just do a tags/property/todo search like this -BLOCKED/+TODO” That query still shows the blocked tasks, unfortunately. My mistake: +BLOCKEDt/+TODO This means that the BLOCKED property should not be equal to “t”. Hmm, the following query still does not work (still shows greyed blocked tasks) (tags +BLOCKED\t\/+TODO) And using +BLOCKED=\t\/TODO selects nothing. Matthew. IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. ___ 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-refile bug
Whenever I run org-remember, enter a single item, type C-1 C-c C-c, and select a heading to file it under, the entry is lost. Is this a bug? I'm using Org-mode version 6.34trans (release_6.34c.210.g6976). ___ 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