[O] worg/org-contrib list items are missing
Something is broken exporting worg source to lists: http://orgmode.org/worg/org-contrib/ is missing the list item headers. -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell)
[O] [taskjuggler] small edits to org-taskjuggler.el for tj3
Appended is a patch with a couple of small changes to org-taskjuggler.el, addressing the following issues: General: * in org-taskjuggler-open-project, the duration is never calculated (default is always used). Specific to tj3: * the reports need a formats attribute * tj3 does not support the utilization and freeload columns in reports. * the sorttasks startup attribute in the default resourcereport does not make sense anymore. Not addressed in the patch: * I wasn't sure about how best to maintain backwards compatibility with the default report strings, as I override the taskjuggler version in the .org file (not in my .emacs file). * for tj3, I found that I needed to put a scheduling property in the top level task, with value asap. Org-mode version 7.5 (release_7.5.134.gb869b.dirty) TaskJuggler III v0.0.11 -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) --- ../../../git-org-mode-new/org-mode/lisp/org-taskjuggler.el 2011-04-04 13:12:56.758073400 -0400 +++ ./org-taskjuggler.el2011-04-04 15:32:33.789346200 -0400 @@ -204,13 +204,14 @@ columns hierarchindex, name, start, end, effort, duration, completed, chart timeformat \%Y-%m-%d\ hideresource 1 + formats html loadunit shortauto } resourcereport \Resource Graph\ { headline \Resource Allocation Graph\ - columns no, name, utilization, freeload, chart + columns no, name, effortleft, freetime, chart loadunit shortauto - sorttasks startup + formats html hidetask ~isleaf() }) Default reports for the project. @@ -553,11 +554,16 @@ (headline (cdr (assoc headline project))) (version (cdr (assoc version project))) (start (cdr (assoc start project))) - (end (cdr (assoc end project + (end (cdr (assoc end project))) + (duration (if (and start end) + (- (time-to-days + (date-to-time (format %s 00:01:00 end))) +(time-to-days + (date-to-time (format %s 00:01:00 start + org-export-taskjuggler-default-project-duration))) (insert (format project %s \%s\ \%s\ %s +%sd {\n }\n -unique-id headline version start -org-export-taskjuggler-default-project-duration +unique-id headline version start duration (defun org-taskjuggler-filter-and-join (items) Filter all nil elements from ITEMS and join the remaining ones
[O] RE: [Orgmode] using (id Name) target in org-capture-templates
Perfect. Thanks very much! -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -Original Message- From: Bastien Guerry [mailto:bastiengue...@googlemail.com] On Behalf Of Bastien Sent: Sunday, March 06, 2011 12:08 PM To: Sullivan, Gregory (US SSA) Cc: Giovanni Ridolfi; Emacs-orgmode@gnu.org Subject: Re: [Orgmode] using (id Name) target in org-capture-templates Hi Sullivan, Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes: The way I understood your patch is that I can use (currentfile) as _the_ target expression in a capture template. What I was requesting was to use 'capturefile' _within_ a file+headline target expressions. Let me re-include a motivating example - as your citation didn't include it: Sorry, I overlooked your request. (setq org-capture-templates '((j Journal entry (file+headline currentfile Journal) * %a\n\n%i)) (t To Do entry (file+headline currentfile Tasks) * TODO %? %i\n))) Actually, you can already do this: (setq org-capture-templates '((j Journal entry (file+headline buffer-file-name Journal) * %a\n\n%i)) (t To Do entry (file+headline buffer-file-name Tasks) * TODO %? %i\n))) See the documentation about file specification. So I removed (currentfile), which is simply (file buffer-file-name)). HTH, -- Bastien
RE: [Orgmode] using (id Name) target in org-capture-templates
The way I understood your patch is that I can use (currentfile) as _the_ target expression in a capture template. What I was requesting was to use 'capturefile' _within_ a file+headline target expressions. Let me re-include a motivating example - as your citation didn't include it: (setq org-capture-templates '((j Journal entry (file+headline currentfile Journal) * %a\n\n%i)) (t To Do entry (file+headline currentfile Tasks) * TODO %? %i\n))) which does not seem to be implemented in the current git version, unless I've completely messed up my orgmode git checkout. Possibly this could be done by checking for the symbol 'currentfile in org-capture-target-buffer, and using (buffer-file-name). Do you think that would work? Thanks again. -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -Original Message- From: Bastien Guerry [mailto:bastiengue...@googlemail.com] On Behalf Of Bastien Sent: Sunday, February 27, 2011 6:37 AM To: Sullivan, Gregory (US SSA) Cc: Giovanni Ridolfi; Emacs-orgmode@gnu.org Subject: Re: [Orgmode] using (id Name) target in org-capture-templates Hi Gregory, Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes: It would be quite useful if I could use currentfile in place of path/to/file in the various Target patterns. That is, it would be nice to write something like: This is already implemented in Org's git version. See the email you're replying to, I gave the explanations. Thanks, -- 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
RE: [Orgmode] using (id Name) target in org-capture-templates
It would be quite useful if I could use currentfile in place of path/to/file in the various Target patterns. That is, it would be nice to write something like: (setq org-capture-templates '((j Journal entry (file+headline currentfile Journal) * %a\n\n%i)) (t To Do entry (file+headline currentfile Tasks) * TODO %? %i\n))) Thanks. -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -Original Message- From: Bastien Guerry [mailto:bastiengue...@googlemail.com] On Behalf Of Bastien Sent: Friday, February 11, 2011 5:22 AM To: Sullivan, Gregory (US SSA) Cc: Giovanni Ridolfi; Emacs-orgmode@gnu.org Subject: Re: [Orgmode] using (id Name) target in org-capture-templates Hi Gregory, Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes: Thanks for the note. I did indeed mean to use headings. I think it would be nice to be able to have the file dynamic but the heading static in capture templates. In my case, I always want to find a particular heading in the buffer that the capture originated from. So I had to put the whole target spec in a function, as in: I like the idea of being able to tell capture to use the current file. This patch against latest Org allows you to use (currentfile) like this: , | (setq org-capture-templates | '((j Journal entry (currentfile) * %a\n\n%i))) ` Let me know if you find this useful. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RE: [Orgmode] using (id Name) target in org-capture-templates
Thanks for the note. I did indeed mean to use headings. I think it would be nice to be able to have the file dynamic but the heading static in capture templates. In my case, I always want to find a particular heading in the buffer that the capture originated from. So I had to put the whole target spec in a function, as in: (setq org-capture-templates `((t Todo (local) entry (function (lambda () (set-buffer (org-capture-get :original-buffer)) (let ((hd Tasks)) (goto-char (point-min)) (if (re-search-forward (format org-complex-heading-regexp-format (regexp-quote hd)) nil t) (beginning-of-line 2) (goto-char (point-max)) (or (bolp) (insert \n)) (insert * hd \n) (beginning-of-line 0) ... most of which is copied from the file+heading case in org-capture.el What I'd like to be able to write in an org-capture-template is something like: (setq org-capture-templates `((t Todo (local) entry (function+heading (lambda () (org-capture-get :original-buffer)) Tasks)) ... Where the function sets the buffer, but org machinery is used to match the heading. Another idiom would be to allow a string-returning function wherever a string is currently allowed for the file target, so the above would be instead: (setq org-capture-templates `((t Todo (local) entry (file+heading (lambda () (org-capture-get :original-buffer)) Tasks)) ... The last is my preferred, as it would apply to all of the file+headline, file+olp, file+regexp, etc. target specifications in allowed for org-capture-templates. Thanks. -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -Original Message- From: Giovanni Ridolfi [mailto:giovanni.rido...@yahoo.it] Sent: Thursday, December 23, 2010 6:42 AM To: Sullivan, Gregory (US SSA) Cc: Emacs-orgmode@gnu.org Subject: Re: [Orgmode] using (id Name) target in org-capture-templates Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes: I would like to have a template that will add a TODO below the Tasks heading in the current .org file. From the documentation, I would think that (setq org-capture-templates `((t Todo (local) entry (id Tasks) * TODO %? %i\n%T\n :prepend t) )) would work, Be careful: heading is not id. from the documentation of the variable in the file org-mode/lisp/org-capture.el target: (id \id of existing org entry\) File as child of this entry, or in the body of the entry Do you have a tree like the following? * Tasks :PROPERTIES: :ID: Tasks :END: If yes, then it works, if the :ID: value is unique. cheers, Giovanni ___ 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] using (id Name) target in org-capture-templates
I would like to have a template that will add a TODO below the Tasks heading in the current .org file. From the documentation, I would think that (setq org-capture-templates `((t Todo (local) entry (id Tasks) * TODO %? %i\n%T\n :prepend t) )) would work, but org says org-capture-set-target-location: Cannot find target ID Tasks when I do M-x org-capture in a .org file, then choose 't'. Could someone let me know the correct syntax to say that I'd like to add the captured note below a heading in the current .org file? Thanks very much -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) ___ 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: [babel] evaluating shell commands for side effect
Another question related to using babel, shell commands, in a session: When I try to export a .org file with begin_src sh :session *shell* :exports code blocks, I'm prompted whether I want to evaluate the code. However, I thought :exports code would avoid evaluation on export (and that :session is only about evaluation). Any help appreciated. Thanks. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -Original Message- From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org [mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org] On Behalf Of Sullivan, Gregory (US SSA) Sent: Thursday, August 19, 2010 12:51 PM To: emacs-orgmode@gnu.org Subject: [Orgmode] [babel] evaluating shell commands for side effect I'm writing how to documents that include sequences of shell commands, such as: #+begin_src sh :session *shell* cd /home/sullivan/myproj/src ./configure --prefix /home/sullivan/myproj/install make make test #+end_src and simply want C-c C-c to send the lines, one at a time, to the inferior shell process. That is, I want readers to read along, and then execute the code as needed. Currently, it never returns (until C-g). It might be related to the issues discussed last November, http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html I have the latest git version of org mode, and I think I've set comint-prompt-regexp correctly. So: I don't want to filter the output, I don't want to collect the results - just send the commands and go. Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the Right Thing to do is. Appended is a cheap hack that checks for ignore as a results string (e.g. #+begin_src sh :session *shell* :results ignore) and sends the lines one at a time to the inferior shell buffer. But I suspect there's a more straightforward way to do it. Thoughts? Thanks. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -- (defun org-babel-sh-evaluate (session body optional result-params) Pass BODY to the Shell process in BUFFER. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the last statement in BODY. ((lambda (results) (if (or (member scalar result-params) (member ignore result-params) (member output result-params)) results (let ((tmp-file (make-temp-file org-babel-sh))) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file (if (not session) (org-babel-eval org-babel-sh-command (org-babel-trim body)) (if (member ignore result-params) (progn (save-excursion (set-buffer session) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (split-string (org-babel-trim body) \n))) '()) (let ((tmp-file (make-temp-file org-babel-sh))) (mapconcat #'org-babel-sh-strip-weird-long-prompt (mapcar #'org-babel-trim (butlast (org-babel-comint-with-output (session org-babel-sh-eoe-output t body) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (append (split-string (org-babel-trim body) \n) (list org-babel-sh-eoe-indicator 2)) \n) ) ___ 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: [babel] evaluating shell commands for side effect
I meant whenever I want to _export_ the code (C-c C-e h). -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -Original Message- From: Sullivan, Gregory (US SSA) Sent: Friday, August 20, 2010 7:37 PM To: Sullivan, Gregory (US SSA); emacs-orgmode@gnu.org Subject: RE: [babel] evaluating shell commands for side effect Another question related to using babel, shell commands, in a session: When I try to export a .org file with begin_src sh :session *shell* :exports code blocks, I'm prompted whether I want to evaluate the code. However, I thought :exports code would avoid evaluation on export (and that :session is only about evaluation). Any help appreciated. Thanks. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -Original Message- From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org [mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org] On Behalf Of Sullivan, Gregory (US SSA) Sent: Thursday, August 19, 2010 12:51 PM To: emacs-orgmode@gnu.org Subject: [Orgmode] [babel] evaluating shell commands for side effect I'm writing how to documents that include sequences of shell commands, such as: #+begin_src sh :session *shell* cd /home/sullivan/myproj/src ./configure --prefix /home/sullivan/myproj/install make make test #+end_src and simply want C-c C-c to send the lines, one at a time, to the inferior shell process. That is, I want readers to read along, and then execute the code as needed. Currently, it never returns (until C-g). It might be related to the issues discussed last November, http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html I have the latest git version of org mode, and I think I've set comint-prompt-regexp correctly. So: I don't want to filter the output, I don't want to collect the results - just send the commands and go. Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the Right Thing to do is. Appended is a cheap hack that checks for ignore as a results string (e.g. #+begin_src sh :session *shell* :results ignore) and sends the lines one at a time to the inferior shell buffer. But I suspect there's a more straightforward way to do it. Thoughts? Thanks. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -- (defun org-babel-sh-evaluate (session body optional result-params) Pass BODY to the Shell process in BUFFER. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the last statement in BODY. ((lambda (results) (if (or (member scalar result-params) (member ignore result-params) (member output result-params)) results (let ((tmp-file (make-temp-file org-babel-sh))) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file (if (not session) (org-babel-eval org-babel-sh-command (org-babel-trim body)) (if (member ignore result-params) (progn (save-excursion (set-buffer session) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (split-string (org-babel-trim body) \n))) '()) (let ((tmp-file (make-temp-file org-babel-sh))) (mapconcat #'org-babel-sh-strip-weird-long-prompt (mapcar #'org-babel-trim (butlast (org-babel-comint-with-output (session org-babel-sh-eoe-output t body) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (append (split-string (org-babel-trim body) \n) (list org-babel-sh-eoe-indicator 2)) \n) ) ___ 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] [babel] evaluating shell commands for side effect
I'm writing how to documents that include sequences of shell commands, such as: #+begin_src sh :session *shell* cd /home/sullivan/myproj/src ./configure --prefix /home/sullivan/myproj/install make make test #+end_src and simply want C-c C-c to send the lines, one at a time, to the inferior shell process. That is, I want readers to read along, and then execute the code as needed. Currently, it never returns (until C-g). It might be related to the issues discussed last November, http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html I have the latest git version of org mode, and I think I've set comint-prompt-regexp correctly. So: I don't want to filter the output, I don't want to collect the results - just send the commands and go. Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the Right Thing to do is. Appended is a cheap hack that checks for ignore as a results string (e.g. #+begin_src sh :session *shell* :results ignore) and sends the lines one at a time to the inferior shell buffer. But I suspect there's a more straightforward way to do it. Thoughts? Thanks. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -- (defun org-babel-sh-evaluate (session body optional result-params) Pass BODY to the Shell process in BUFFER. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the last statement in BODY. ((lambda (results) (if (or (member scalar result-params) (member ignore result-params) (member output result-params)) results (let ((tmp-file (make-temp-file org-babel-sh))) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file (if (not session) (org-babel-eval org-babel-sh-command (org-babel-trim body)) (if (member ignore result-params) (progn (save-excursion (set-buffer session) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (split-string (org-babel-trim body) \n))) '()) (let ((tmp-file (make-temp-file org-babel-sh))) (mapconcat #'org-babel-sh-strip-weird-long-prompt (mapcar #'org-babel-trim (butlast (org-babel-comint-with-output (session org-babel-sh-eoe-output t body) (mapc (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 0.25)) (append (split-string (org-babel-trim body) \n) (list org-babel-sh-eoe-indicator 2)) \n) ) ___ 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] changing face (color) on tags-todo agenda headlines
I'd like to process agenda headlines and apply face (color) to ones with given tags. It seems like I should add a function to org-finalize-agenda-hook. When that hook is invoked, how do I iterate over agenda headlines? I thought I could use org-map-entries, on the current buffer, as follows: (add-hook 'org-finalize-agenda-hook (lambda () (message starting agenda-hook) (org-map-entries '(message hi) +highlight nil))) But I never get hi despite there being agenda items with the highlight tag. Any help would be much appreciated. Thanks! --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) gregory.sulli...@baesystems.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] Is this an aquamacs bug?
I don't use aquamacs too much with org, but I just tried what you describe, with aquamacs 1.5 (gnu emacs 22.3.2 from M-x emacs-version) the latest org via git, and did not have that behavior. I run aquamacs with (setq one-buffer-one-frame '()) Do you already do this? If not, you might see if that avoids your issue. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) gregory.sulli...@baesystems.com -Original Message- From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org [mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org] On Behalf Of Robert Goldman Sent: Saturday, December 13, 2008 5:31 PM To: emacs-orgmode@gnu.org Subject: [Orgmode] Is this an aquamacs bug? I use org on aquamacs and it behaves badly with the agenda. Here's the problem: 1. I have an agenda view with a todo task under the cursor. 2. I press t to toggle the todo state 3. I change the todo state to a different one 4. Aquamacs pops forward the emacs frame containing the org file from which the todo is taken. 5. I am left with focus moved to the wrong frame. I have to mouse back to the agenda frame now in order to keep working. I *suspect* that this is an aquamacs specific problem, but would be obliged if someone could confirm that. If so, I will work with the Aquamacs crew to get this fixed. Thanks! ___ 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] quickly adding files to agenda..
http://article.gmane.org/gmane.emacs.orgmode/8992/match=sullivan illustrates the use of 'find-lisp-find-file' HTH. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sergio Sent: Thursday, December 04, 2008 9:57 AM To: emacs-orgmode@gnu.org Subject: [Orgmode] quickly adding files to agenda.. i am having an issue with aquamacs right now that is forcing me to rebuild my agenda list every time i restart emacs.. this is probably a more generally emacs question, but i thought this list might be a good place to start.. i have all my org files in a directory called 'orgfiles'... what i would like to do is mark all my files in dired or something similar, then crank them all through C-c [ . right now, i have to open each file and C-c [ it.. any ideas? ___ peace, sergio photographer, journalist, visionary www.village-buzz.com ___ 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] quickly adding files to agenda..
You could try the line (setq org-agenda-files (find-lisp-find-files ~/orgfiles/ \.org)) I don't actually use this method for my setup, but that should work. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sergio Sent: Thursday, December 04, 2008 10:50 AM To: emacs-orgmode@gnu.org Subject: Re: [Orgmode] quickly adding files to agenda.. On Dec 4, 2008, at 10:09 AM, Sullivan, Gregory (US SSA) wrote: http://article.gmane.org/gmane.emacs.orgmode/8992/match=sullivan illustrates the use of 'find-lisp-find-file' i am not good at lisp at all, but i have it slated to learn over christmas.. but.. here's what i am doing in my .emacs file.. then evaluating each command to test: (load-library find-lisp) - this works .. (find-lisp-find-files ~/orgfiles \.org) - just for testing. when i run it, it spits out a list of my org files.. now, i am not sure how to phrase this: to make org-agenda see the whole thing.. any ideas? thanks so much! ___ peace, sergio photographer, journalist, visionary www.village-buzz.com ___ 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] Recursive org-agenda-files
The function find-lisp-find-files seems to work. To see it, do M-x find-function find-lisp-find-files To use it, you'll probably have to do (load-library find-lisp) (find-lisp-find-files ~/org \.org) HTH. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Lundin Sent: Wednesday, October 29, 2008 11:40 PM To: emacs-orgmode@gnu.org Subject: [Orgmode] Recursive org-agenda-files Is it possible to set the org-agenda-files variable to include all org files within a directory recursively? I currently use: (set org-agenda files (file-expand-wildcards ~/org/*.org)) This, of course, includes all org files in ~/org. But how would I include all org files in both ~/org and its subdirectories without having to enter them all by hand? E.g., org/ (.org files here) professional/ (.org files here) research/ (.org files here) teaching/ (.org files here) personal/ (.org files here) computer/ (.org files here) Thanks! Matt Lundin ___ 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] keeping track of sent emails in org?
Much of what I need to do is in some way related to email messages I have received. So, to the extent that org is my repository of things I have to do and notes related to those things, links to related email messages would be very useful. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carsten Dominik Sent: Tuesday, October 28, 2008 1:58 PM To: Bill White Cc: Emacs-orgmode@gnu.org Subject: Re: [Orgmode] keeping track of sent emails in org? Hi, I think there are interesting ideas coming up in this tasks, in particular the question if message IDs can be used to find articles in gnus, even if they have been moved around. I am not sure if this questions has been fully answered, but I have not read the thread carefully enough yet, and certainly not tried Michaels code. Right now I would like to take a little step back and understand better what the original poster is trying to do. I can see that in an Emacs/Planner environment it makes sense to create links to sent emails on the days page. The reason for this is that the planner day page is not only used for listing the planned tasks for the day, but also as a way of creating a daily journal. Sacha Chua's blog shows that she is using it just like that, and I think this is one of te unique and great features of planner. However, the basic setup of Org is different. There is no equivalent of a daily page. The agenda views created by Org are dynamic and list tasks, and the tasks disappear when they are done. Yes, you can look at the achievements of a day by checking closed tasks and log messages, but still this is no equivalent to the planner day pages which is a document that can be edited and preserved for the future. Maybe you can create something similar with Org, but I think it is not straight forward. On the other hand, every decent email program does have a SENT folder, and an easy way to list the emails sent on a specific date. To me it seems that instead of creating a sequential list of links to emails for each day, it would be more interesting to create a way to collect links relating to a project or a task in the outline node of the project, or maybe in an attachment file of the project (if the list of emails is long). Just my 5 cents. - Carsten On Oct 26, 2008, at 6:31 PM, Bill White wrote: Hi all - I'm looking into porting my planner/muse/gnus infrastructure to org. One indispensible bit of code in my current system writes a gnus message link in the current day's planner file every time I send a message from gnus. It uses Sacha Chua's sacha/planner-gnus-track-sent method here: http://sachachua.com/notebook/wiki/2006.08.10.php#anchor-3 http://article.gmane.org/gmane.emacs.wiki.general/6017 Has someone already written something like this for org? Perhaps a remember-like mechanism that writes a link to, say, Email.org? Perhaps messages could be filed under date headlines: * Sunday, October 26, 2008 ** message 1 recipient:subject [link] (or contents?) ** message 2 recipient:subject [link] (or contents?) or somesuch. Thanks for any thoughts about this - bw -- Bill White . [EMAIL PROTECTED] . http://members.wolfram.com/billw No ma'am, we're musicians. ___ 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 ___ 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: font lock mode can't get to work
I think the \\' after .org is to match the end of the filename. From emacs info section Regexp Backslash, `\'' matches the empty string, but only at the end of the string or buffer (or its accessible portion) being matched against. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernt Hansen Sent: Thursday, September 25, 2008 3:54 PM To: Graham Smith Cc: emacs-orgmode@gnu.org Subject: [Orgmode] Re: font lock mode can't get to work Graham Smith [EMAIL PROTECTED] writes: I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having a problem with the font lock mode. adding -*- mode: org; -*- to the file itself works fine, but simply loading a test.org file doesn't activate org mode. I have tried commenting out and back in different options in .emacs, but none seem to work. I only have these lines in .emacs at the moment. ; Org -Mode;; (setq load-path (cons ~/EmacsAddins/Orgmode/lisp load-path)) (setq load-path (cons ~/EmacsAddins/Orgmode/contrib/lisp load-path)) (require 'org-install) ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) This line looks wrong. What's the extra \\' for after .org? I have the following: (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\)$ . org-mode)) so that any files ending in .org or .org_archive trigger org-mode. -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 ___ 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] Question about cursor movement
Try leaving the cell with TAB to move to the next field (in left-to-right, top-to-bottom order), whereas RET goes down one row. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of henry atting Sent: Tuesday, September 16, 2008 10:44 AM To: emacs-orgmode@gnu.org Subject: [Orgmode] Question about cursor movement Hi, | 1 |2 |sum | | |+--++---| | 121.00 | 4.00 | 125.00 | store1| | 125.00 | 5.00 | 130.00 | store2| | 130.00 | || | #+TBLFM: [EMAIL PROTECTED]::$3=$1+$2 I have a simple table for some sort of expenses. I don't understand why the cursor behaves the way it does: I do a `=' in $1 or $3 and after the result is placed in the field, the cursor jumps down one row. As *my* intended move would be to the next columnn in the same row I find this rather inconvenient. Would'nt it be better if the cursor simply stays where it is and lets me to decide the matter? Cheers henry ___ 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] escaping of ampersands in latex array environment by latex export
If I have in my .org file: \(\begin{array}{rclr} A ::= B \\ \mid C \\ D ::= E \mbox{(any value-returning expression)} \end{array}\) and I export as latex, the generated .tex file contains \(\begin{array}{rclr} A \ ::= \ B \ \\ \ \mid \ C \ \\ D \ ::= \ E \ \mbox{(any value-returning expression)} \end{array}\) The characters should not be escaped. Oddly enough, if I export to HTML, everything works fine (that is, the fragments are compiled by latex and turned into .png images). Surrounding the block in #+BEGIN_LaTeX / #+END_LaTeX won't solve the problem, as the fragment no longer exports to html. I'd like to be able to export to both latex and html. Any idea why the s are being escaped? Is it because the latex export doesn't know that within an array environment 's are special? Is there a way to turn off processing of 's in array's? I'm using org-mode version 6.06b Thanks very much. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] ___ 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] set remember default file to be originating .org file
If I invoke remember from a .org file, e.g. foo.org, I would like the default file to which the remembered note is saved to be that file, foo.org. I work on several projects at a time, and the project mix changes monthly. While on a project, I generate lots of project-specific notes and TODOs. So, I like to have project-specific .org files. Any ideas appreciated. Thanks. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ 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] set remember default file to be originating .org file
OK - I did the following. I allow for functions in the filename positions of templates, changing org-remember.el as follows: diff ../../org-6.05b/lisp/org-remember.el ./org-remember.el 321,322c321 (file (if (and (nth 1 entry) (stringp (nth 1 entry)) (string-match \\S- (nth 1 entry))) --- (file (if (nth 1 entry) 351a351,353 (when (functionp file) (setq file (funcall file)) (message after funcall file, file = [%S] file)) ~/emacs/org/lisp So my remember template list includes: (Todo (local) ?t * TODO %? %i\n ,(lambda () (buffer-file-name org-select-template-original-buffer)) So if I invoke org-remember and choose t, it will save the resulting TODO item in the file from which I invoked remember. Could be made more robust, but it works for me. Let me know if you think this might be generally useful. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sullivan, Gregory (US SSA) Sent: Wednesday, August 06, 2008 11:55 AM To: emacs-orgmode@gnu.org Subject: [Orgmode] set remember default file to be originating .org file If I invoke remember from a .org file, e.g. foo.org, I would like the default file to which the remembered note is saved to be that file, foo.org. I work on several projects at a time, and the project mix changes monthly. While on a project, I generate lots of project-specific notes and TODOs. So, I like to have project-specific .org files. Any ideas appreciated. Thanks. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] ___ 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