Re: [Orgmode] Re: Organize Your Life In Plain Text!
Hi Eric, Thanks for the help. It was in the rake themes:default step. I got an error message about a missing command, which I think was sass. I'll uninstall surfar and try to get an accurate error message later today. Hi Ian, The issue here is that ruby couldn't find the sass executable on your machine. I just changed the theme deployment code so that it no longer relies on an external sass executable. Please pull the latest code from github, run 'git submodules update' to update the blorgit themes code and give 'rake themes:default' another try. The latest update has fixed this problem. Meanwhile have another problem:) When I try to view a page I can see the basic navigation structure, but no style info or content. I notice that there is no stylesheet.css in ~/blogs and I tried copying one from the blorgit directory there. I do have an index.org, but it isn't being processed and included in the web page index. I am guessing that there is some problem with my Ruby installation. I have checked and I am definitely using V1.8. This problem is more complicated. Blorgit relies on Emacs to actually export org-mode files to html. To do this it passes the org-mode files to an Emacs server using the 'emacsclient' command. To allow your Emacs instance to act as a server for blorgit you need to load the org-interaction.el file located in the backend/acts_as_org/elisp/ directory. I have added the following to my .emacs so that this happens automatically. ;; serve up web pages for blorgit (load ~/src/blorgit/backend/acts_as_org/elisp/org-interaction.el) I still have the same problem. I think the following log gives a clue: i...@scamper:~/devel/blorgit$ ruby blorgit.rb == Sinatra/0.9.1.1 has taken the stage on 4567 for development with backup from WEBrick [2009-05-18 07:02:36] INFO WEBrick 1.3.1 [2009-05-18 07:02:36] INFO ruby 1.8.7 (2008-08-11) [i486-linux] [2009-05-18 07:02:36] INFO WEBrick::HTTPServer#start: pid=14054 port=4567 emacsclient: invalid option -- 'v' Try `emacsclient --help' for more information 127.0.0.1 - - [18/May/2009 07:02:47] GET /index HTTP/1.1 200 3504 0.0816 localhost - - [18/May/2009:07:02:47 BST] GET /index HTTP/1.1 200 3504 http://localhost:4567/index - /index 127.0.0.1 - - [18/May/2009 07:02:47] GET /stylesheet.css HTTP/1.1 200 530 0.0009 localhost - - [18/May/2009:07:02:47 BST] GET /stylesheet.css HTTP/1.1 200 530 http://localhost:4567/index - /stylesheet.css Seems my emacsclient doesn't like one of the options. I am using: GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.14.1) of 2008-09-05 on vernadsky, modified by Ubuntu Ian. ___ 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] cannot edit two source code examples simultaneously
Taru Karttunen tar...@taruti.net writes: Excerpts from Dan Davison's message of Sun May 17 20:28:01 +0300 2009: Following on from this, I'd like to suggest that, while it is being edited, the source code is removed from the org buffer, to avoid concurrency problems. I just had a go at that -- the patch below replaces the source code with a work-in-progress message that contains a link to the edit buffer. Please don't do this. It sounds like a recipe for accidentally losing the source code when careless. I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? Dan - Taru Karttunen ___ 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] cannot edit two source code examples simultaneously
Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009: I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? How about this - set the source code with a special overlay/property when editing it. The property could turn the code into a link to the buffer and set it read-only. - Taru Karttunen ___ 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] ascii export of links to notes broken?
Can you please send me the exact buffer you are using, the exact range that is covered by the active region, and the command you then use? So far I have not been abe to reproduce what you are saying. - Carsten On May 18, 2009, at 12:33 AM, Samuel Wales wrote: The bug occurs when the region is active. It does not occur when I have a file dedicated to the subtree, mark a region, but don't have an active region (transient-mark-mode is off). When I do the latter but it is part of a larger file there is a wrong type argument error. *** [[http://google.com][hi]] text Here is a minimal .emacs. (require 'cl) (defun alpha-add-path (p) (setq load-path (cons p load-path))) (alpha-add-path (concat (getenv delorgsrc) /lisp)) (alpha-add-path (concat (getenv delpkgbef) /remember)) (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (defvar alpha-mac-font -apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1) '(progn (progn (defconst alpha-mac-font-2 -apple-courier-medium-r-normal--*-*-*-*-*-240-*) (set-frame-font alpha-mac-font-2)) ) (set-frame-font alpha-mac-font) ;;it seems to me that i never want blank lines ending a body ;;;(setf org-cycle-separator-lines 0) (setf org-cycle-separator-lines 1) ;;;(setf org-cycle-separator-lines 2) ;;keep body indentation intact when promoting and demoting (setf org-adapt-indentation nil) ;;;(setf org-adapt-indentation t) ;;very strange. this gets overridden with time? ;;;(setq org-log-done t) (setq org-log-done 'time) (require 'org-install) (defvar alpha-org-map (make-sparse-keymap alpha org map)) (define-key global-map [f8] alpha-org-map) (define-key alpha-org-map [f8] 'org-remember) ;c-c r (define-key alpha-org-map o 'org-open-at-point-global) ;c-c o (require 'remember-autoloads) (org-remember-insinuate) ;;http://mail.google.com/mail/x (setf org-file-apps '( ;;(auto-mode . emacs) ;;(\\.x?html?\\' . default) ;;(\\.pdf\\' . default) (t . emacs))) (define-key org-mode-map \C-cc (lambda () (interactive) (org-todo WAIT))) ___ 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] Show parent PROJECTS for an item
On Mon, May 18, 2009 at 04:07, Matthew Lundin m...@imapmail.org wrote: In my opinion, the easiest way to figure out which project a TODO belongs to is to use follow mode in the agenda. That way you can see the original context (i.e., project) to which a todo belongs. This works great for working with the agenda! It does not for printing the agenda buffer... there I would still wish for having the parent project headline as prefix. Greetings, Eraldo ___ 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] cannot edit two source code examples simultaneously
On May 18, 2009, at 8:27 AM, Taru Karttunen wrote: Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009: I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? How about this - set the source code with a special overlay/property when editing it. The property could turn the code into a link to the buffer and set it read-only. This sounds like a good idea. However, it seems that putting a read- only property using an overlay does not work - does anyone know why? I'd prefer an overlay over text properties here - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] cannot edit two source code examples simultaneously
On May 17, 2009, at 7:28 PM, Dan Davison wrote: Following on from this, I'd like to suggest that, while it is being edited, the source code is removed from the org buffer, to avoid concurrency problems. I just had a go at that -- the patch below replaces the source code with a work-in-progress message that contains a link to the edit buffer. That brought up a couple of related questions: 1. Is there a dedicated format for an org-link to an emacs buffer? (I used an elisp: link) 2. Now I'm going to be confusing. Despite me using a link inside a code block in that, I had previously wondered about how appropriate it is that org conducts its special formatting operations inside source code blocks. It is totally inappropriate, but I have not yet figured out how to fix this. - Carsten E.g. in R code, x[[3]] means the 3rd element of list x. But that gets magically formatted by org as a link, which looks weird. Do we think that the current behaviour is desirable? If not, should org be prevented from formatting stuff in literal blocks, or is it too inefficient or messy to implement that? (If it were changed, the work-in-progress message could go outside the block.) Dan diff --git a/lisp/org.el b/lisp/org.el index b9df6ec..25973be 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6394,6 +6394,7 @@ the edited version. nil (setq beg (move-marker beg (nth 0 info)) end (move-marker end (nth 1 info)) + org-buffer (buffer-name) code (buffer-substring-no-properties beg end) lang (nth 2 info) single (nth 3 info) @@ -6409,6 +6410,14 @@ the edited version. (and buffer (kill-buffer buffer)) (switch-to-buffer (generate-new-buffer *Org Edit Src Example*)) (insert code) + (save-excursion + (let ((src-buffer (buffer-name))) + (set-buffer org-buffer) + (goto-char beg) + (delete-region beg end) + (insert (format %s [[elisp:(switch-to-buffer \%s\)][%s]] + Contents are currently being edited src-buffer here)) + (setq end (move-marker end (point) (remove-text-properties (point-min) (point-max) '(display nil invisible nil intangible nil)) (let ((org-inhibit-startup t)) Carsten Dominik carsten.domi...@gmail.com writes: Hi Hsiu-Khuern, On May 15, 2009, at 7:38 AM, Hsiu-Khuern Tang wrote: Hi Carsten, You recently changed org-edit-src-code to use a separate buffer instead of an indirect buffer. One side effect of this is that I can no longer edit several code examples at the same time: opening the second buffer will silently discard any changes made in the first. I would prefer this behavior: when opening the second edit source buffer, write any changes in the first buffer to the originating Org buffer (but don't save it, of course). Another approach is to use different buffer names. I think the second idea is better, provided that a mechanism ensures that not two editing instances of the same region are created. This is what I have implemented now. Thank you for your report. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ 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] HTML export, org-mode version
Hallo, I am new to this list and apologize if this has been asked before. Before I forget: many thanks for this EXCELLENT package! (1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? (2) Is there a template/option to have the table of contents in an HTML export at the left hand side for navigation, similar to automatically generated bookmarks in PDF browsers? (3) Syntax highlighting of source code (6.26 d, Chapter 12, p. 102, Literal Examples) like this #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC works nicely. However it took me a while to get there: I had first overlooked the footnote and needed to install htmlize.el first. However, when using a Python snippet with Python instead of emacs- lisp there was no colour whatsoever: it needs to be python (although Emacs displays the mode with a capital P), maybe this should be another footnote? I have also added a little note here: http://www.emacswiki.org/emacs/Htmlize Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de ___ 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] The patch (org-exp-blocks), the question and the bug
Hello, Here is a simple asymptote block : #+begin_asy out.pdf import graph; size(0,4cm); real f(real t) {return 1+cos(t);} path g=polargraph(f,0,2pi,operator ..)--cycle; filldraw(g,pink); xaxis($x$,above=true); yaxis($y$,above=true); dot($(a,0)$,(1,0),N); dot($(2a,0)$,(2,0),N+E); #+end_asy The output should be http://asymptote.sourceforge.net/gallery/cardioid.pdf -- Nicolas Goaziou ___ 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] HTML export, org-mode version
(1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? org/Documentation/Show version in an org buffer, or M-x orgversion. (2) Is there a template/option to have the table of contents in an HTML export at the left hand side for navigation, similar to automatically generated bookmarks in PDF browsers? Have a look at org-info.js http://orgmode.org/worg/code/org-info-js/ and I think you can also do this using the web site's default style sheet from http://orgmode.org/org.css. Ian. ___ 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] HTML export, org-mode version
Ian Barton wrote: (1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? org/Documentation/Show version in an org buffer, or M-x orgversion. Doh, I meant: M-x org-version Ian. ___ 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] HTML export, org-mode version
On May 18, 2009, at 1:36 PM, Stefan Vollmar wrote: Hallo, I am new to this list and apologize if this has been asked before. Before I forget: many thanks for this EXCELLENT package! (1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? (2) Is there a template/option to have the table of contents in an HTML export at the left hand side for navigation, similar to automatically generated bookmarks in PDF browsers? You can use CSS, take a look at http://orgmode.org/org.css - Carsten (3) Syntax highlighting of source code (6.26 d, Chapter 12, p. 102, Literal Examples) like this #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC works nicely. However it took me a while to get there: I had first overlooked the footnote and needed to install htmlize.el first. However, when using a Python snippet with Python instead of emacs- lisp there was no colour whatsoever: it needs to be python (although Emacs displays the mode with a capital P), maybe this should be another footnote? I have also added a little note here: http://www.emacswiki.org/emacs/Htmlize Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de ___ 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] HTML export, org-mode version
You might want to take a look into the stylesheets on orgmode.org: http://orgmode.org/org.css and http://orgmode.org/worg/worg.css Depending on the tools you use on your site, modifiing the files on the fly (on output, maybe cached) might be a good solution too (DOM or XML parser). You might want to use a DOM parser, if you want to modify the document structure (e.g. pack the 'table-of-contents' into table cell, and the rest into another). Regards, Sebastian Stefan Vollmar voll...@nf.mpg.de writes: Hallo, I am new to this list and apologize if this has been asked before. Before I forget: many thanks for this EXCELLENT package! (1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? (2) Is there a template/option to have the table of contents in an HTML export at the left hand side for navigation, similar to automatically generated bookmarks in PDF browsers? (3) Syntax highlighting of source code (6.26 d, Chapter 12, p. 102, Literal Examples) like this #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC works nicely. However it took me a while to get there: I had first overlooked the footnote and needed to install htmlize.el first. However, when using a Python snippet with Python instead of emacs- lisp there was no colour whatsoever: it needs to be python (although Emacs displays the mode with a capital P), maybe this should be another footnote? I have also added a little note here: http://www.emacswiki.org/emacs/Htmlize Warm regards, Stefan ___ 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] test
this is a test, please ignore ___ 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: Organize Your Life In Plain Text!
Ian Barton li...@manor-farm.org writes: [...] Meanwhile have another problem:) When I try to view a page I can see the basic navigation structure, but no style info or content. I notice that there is no stylesheet.css in ~/blogs and I tried copying one from the blorgit directory there. I do have an index.org, but it isn't being processed and included in the web page index. I am guessing that there is some problem with my Ruby installation. I have checked and I am definitely using V1.8. This problem is more complicated. Blorgit relies on Emacs to actually export org-mode files to html. To do this it passes the org-mode files to an Emacs server using the 'emacsclient' command. To allow your Emacs instance to act as a server for blorgit you need to load the org-interaction.el file located in the backend/acts_as_org/elisp/ directory. I have added the following to my .emacs so that this happens automatically. ;; serve up web pages for blorgit (load ~/src/blorgit/backend/acts_as_org/elisp/org-interaction.el) I still have the same problem. I think the following log gives a clue: i...@scamper:~/devel/blorgit$ ruby blorgit.rb == Sinatra/0.9.1.1 has taken the stage on 4567 for development with backup from WEBrick [2009-05-18 07:02:36] INFO WEBrick 1.3.1 [2009-05-18 07:02:36] INFO ruby 1.8.7 (2008-08-11) [i486-linux] [2009-05-18 07:02:36] INFO WEBrick::HTTPServer#start: pid=14054 port=4567 emacsclient: invalid option -- 'v' Try `emacsclient --help' for more information 127.0.0.1 - - [18/May/2009 07:02:47] GET /index HTTP/1.1 200 3504 0.0816 localhost - - [18/May/2009:07:02:47 BST] GET /index HTTP/1.1 200 3504 http://localhost:4567/index - /index 127.0.0.1 - - [18/May/2009 07:02:47] GET /stylesheet.css HTTP/1.1 200 530 0.0009 localhost - - [18/May/2009:07:02:47 BST] GET /stylesheet.css HTTP/1.1 200 530 http://localhost:4567/index - /stylesheet.css Seems my emacsclient doesn't like one of the options. I am using: GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.14.1) of 2008-09-05 on vernadsky, modified by Ubuntu Hi Ian, I've changed the options passed to emacsclient, so they should be more uniform. Please try the latest (git pull git submodule update) and see if that fixes the issue. If emacsclient options problems persist, you could try changing the options in line 21 of backend/acts_as_org/lib/acts_as_org.rb If need be I could make this information (the emacsclient command and options) configurable. Thanks -- Eric Ian. ___ 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] The patch (org-exp-blocks), the question and the bug
Thanks for the example. I've added it along with a line crediting you as the author to the org-exp-blocks page on worg. Cheers -- Eric Nicolas Goaziou n.goaz...@neuf.fr writes: Hello, Here is a simple asymptote block : #+begin_asy out.pdf import graph; size(0,4cm); real f(real t) {return 1+cos(t);} path g=polargraph(f,0,2pi,operator ..)--cycle; filldraw(g,pink); xaxis($x$,above=true); yaxis($y$,above=true); dot($(a,0)$,(1,0),N); dot($(2a,0)$,(2,0),N+E); #+end_asy The output should be http://asymptote.sourceforge.net/gallery/cardioid.pdf ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Possible?
Hi Tennis, On May 17, 2009, at 7:48 PM, Tennis Smith wrote: Hi, I'm a newbie user of org-mode, and it looks very promising. However, there are several key combinations that I have to change if I'm going to use it. I use the combinations C-tab for iswitchb, You could free up C-tab by customizing org-disputed-keys and org- replace-disputed-keys. Or, maybe even better in your case, you could overwrite Org's setting of C-tab in a hook, for example (add-hook 'org-mode-hook (define-key 'org-mode-map [(control tab)] nil)) and I use C-c for CUA copy. I have no idea how to recover C-c and C-x. How can you use Emacs if these keys are used for something else? I guess CUA does this by only using them when the region is active, but this is also not a solution because many commands working on the region are invoked with C-c or C-x. Incidentally, in my Emacs 23.0.93.1, if I turn on CUA mode, C-c does not do copy, even though cua-enable-cua-keys is set. HTH - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Commas in {{date(FORMAT)}}}
Carsten Dominik carsten.domi...@gmail.com writes: On May 14, 2009, at 11:03 PM, Dale Smith wrote: I'm confused about the value of FORMAT in {{{date(FORMAT)}}}. I wanted to use %B %e, %Y, but I have two problems. With the quotes, I get an eval: End of file during parsing message. Without the quotes, processing stops at the comma, expanding to May 14 instead of May 14, 2009. Thanks, -Dale Wow, I knew this report was coming, but I had not at all expected it so fast. heh. , is the (undocumented) argument separator for Org macros. Actually, I am changing it now to ;, so that your example should now directly work. To include a semicolon in the date format, use \;. Thanks. -Dale -- Dale P. Smith da...@vtiinstruments.com 216-447-4059 x2018 216-447-8951 FAX (Company mandated disclaimer follows...) The information in this e-mail and any attachments is intended solely for use by the recipient(s) to whom this e-mail is addressed and may contain confidential and/or privileged information which is exempt from disclosure. If you are not an intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this e-mail and any attachments in error and that dissemination, distribution, review or copying of this e-mail and its attachments is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all electronic and paper copies of this e-mail as well as any attachments. Thank you. http://www.vtiinstruments.com/images/vtiemaillogo.gif ___ 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] Show parent PROJECTS for an item
The follow-mode works fine, and this is what I use currently, but usually the item doesn't have data that tells clearly what it's parent item is. It'd be nice to have this overview, in the flat form -- like Eraldo said, if you'd like to print or just have a 10.000 feet view of the actions. I'm not sure how hard would it be to do that, but I'm willing to do if you experiences org-moders/elispers put me in the right direction :) -- I'm in the process of learning elisp! Marcelo. On Mon, May 18, 2009 at 4:18 AM, Eraldo Helal ad...@eraldo.at wrote: On Mon, May 18, 2009 at 04:07, Matthew Lundin m...@imapmail.org wrote: In my opinion, the easiest way to figure out which project a TODO belongs to is to use follow mode in the agenda. That way you can see the original context (i.e., project) to which a todo belongs. This works great for working with the agenda! It does not for printing the agenda buffer... there I would still wish for having the parent project headline as prefix. Greetings, Eraldo ___ 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] Show parent PROJECTS for an item
I recall that there was a variable that controls whether dots get put into the agenda line to show that it is a child of the previous agenda line, or something like that. Might possibly work if you include the parent? What was the name of that variable anyway? On Sun, May 17, 2009 at 19:07, Matthew Lundin m...@imapmail.org wrote: Eraldo Helal ad...@eraldo.at writes: On Sun, May 17, 2009 at 23:25, Matthew Lundin m...@imapmail.org wrote: Why not use categories for this? You could define a category for each project: --8---cut here---start-8--- ** Some Project :PROPERTIES: :CATEGORY: special project :END: *** TODO Testing --8---cut here---end---8--- Would show up in the agenda as: --8---cut here---start-8--- special project:TODO Testing --8---cut here---end---8--- Sounds line a good idea, but:... Doubts: 1. I would have to set that prop for each project headline. // a lot of work More work than adding the project name to each todo by hand, as your original post proposed? 2. It is prone to errors renaming the project does not rename the context, etc. In my opinion, the easiest way to figure out which project a TODO belongs to is to use follow mode in the agenda. That way you can see the original context (i.e., project) to which a todo belongs. - Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] cannot edit two source code examples simultaneously
On May 18, 2009, at 8:27 AM, Taru Karttunen wrote: Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009: I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? How about this - set the source code with a special overlay/property when editing it. The property could turn the code into a link to the buffer and set it read-only. OK, the source code in the Org buffer is now highlighted while being edited, and you can click on it to go back to the editing buffer. I hope that does solve you problems, Dan? It is not yet read-only, but this feels like an Emacs bug, because I do set read-only in the overlay. - Taru Karttunen ___ 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] [ANN] org-crypt Version 0.3
Sorry for the delays in getting this posted, I've been doing a lot of traveling lately. The attached version of org-crypt fixes a few bugs and is just about ready to be included in org proper. The only thing it might need before inclusion in org is automatic encryption via hooks. I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. I do think that org-crypt should hook itself into before-save-hook so that all entries that *should* be encrypted are encrypted before the file touches the disk. A user of org-crypt shouldn't have to worry about setting up a hook, it should just happen automatically. Any suggestions on the best way to make that happen in org-crypt? org-crypt.el Description: application/emacs-lisp -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US ___ 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] ascii export of links to notes broken?
=== #this is a comment because of a vague recollection that the #first line isn't supposed to be a headline. has that been #fixed? * this is a headline with a link. [[http://google.com][a search engine]] this is body text. i put point on the headline at bol, then do c-spc c-spc down down down down c-c c-e A and it fails by not including notes. * this is how i ran it emacs -Q --load ~/el/tests-and-publish/org-testcase.el * more notes transient-mark-mode is nil === That is the exact buffer. The exact range is as described with the keystrokes. The exact command is c-c c-e A. HIH On Sun, May 17, 2009 at 22:30, Carsten Dominik carsten.domi...@gmail.com wrote: Can you please send me the exact buffer you are using, the exact range that is covered by the active region, and the command you then use? So far I have not been abe to reproduce what you are saying. - Carsten On May 18, 2009, at 12:33 AM, Samuel Wales wrote: The bug occurs when the region is active. It does not occur when I have a file dedicated to the subtree, mark a region, but don't have an active region (transient-mark-mode is off). When I do the latter but it is part of a larger file there is a wrong type argument error. *** [[http://google.com][hi]] text Here is a minimal .emacs. (require 'cl) (defun alpha-add-path (p) (setq load-path (cons p load-path))) (alpha-add-path (concat (getenv delorgsrc) /lisp)) (alpha-add-path (concat (getenv delpkgbef) /remember)) (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (defvar alpha-mac-font -apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1) '(progn (progn (defconst alpha-mac-font-2 -apple-courier-medium-r-normal--*-*-*-*-*-240-*) (set-frame-font alpha-mac-font-2)) ) (set-frame-font alpha-mac-font) ;;it seems to me that i never want blank lines ending a body ;;;(setf org-cycle-separator-lines 0) (setf org-cycle-separator-lines 1) ;;;(setf org-cycle-separator-lines 2) ;;keep body indentation intact when promoting and demoting (setf org-adapt-indentation nil) ;;;(setf org-adapt-indentation t) ;;very strange. this gets overridden with time? ;;;(setq org-log-done t) (setq org-log-done 'time) (require 'org-install) (defvar alpha-org-map (make-sparse-keymap alpha org map)) (define-key global-map [f8] alpha-org-map) (define-key alpha-org-map [f8] 'org-remember) ;c-c r (define-key alpha-org-map o 'org-open-at-point-global) ;c-c o (require 'remember-autoloads) (org-remember-insinuate) ;;http://mail.google.com/mail/x (setf org-file-apps '( ;;(auto-mode . emacs) ;;(\\.x?html?\\' . default) ;;(\\.pdf\\' . default) (t . emacs))) (define-key org-mode-map \C-cc (lambda () (interactive) (org-todo WAIT))) -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] cannot edit two source code examples simultaneously
Carsten Dominik carsten.domi...@gmail.com writes: On May 18, 2009, at 8:27 AM, Taru Karttunen wrote: Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009: I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? How about this - set the source code with a special overlay/property when editing it. The property could turn the code into a link to the buffer and set it read-only. OK, the source code in the Org buffer is now highlighted while being edited, and you can click on it to go back to the editing buffer. I hope that does solve you problems, Dan? Hi Carsten, I've given it a quick go and it seems like a very nice solution. Thanks a lot. Dan It is not yet read-only, but this feels like an Emacs bug, because I do set read-only in the overlay. - Taru Karttunen ___ 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
[Orgmode] how to debug org-return-follows-link
Almost every time I click on a link, it inserts a return. I then have to do org-reload, and it works for a bit. Then the next time I need to follow a link (with intervening commands) it doesn't work. Hints on how to provide information (post-command-hook?) to ease debugging would be appreciated. Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] HTML export, org-mode version
Dear Sebastian, On 18.05.2009, at 14:33, Sebastian Rose wrote: You might want to take a look into the stylesheets on orgmode.org: http://orgmode.org/org.css and http://orgmode.org/worg/worg.css Depending on the tools you use on your site, modifiing the files on the fly (on output, maybe cached) might be a good solution too (DOM or XML parser). You might want to use a DOM parser, if you want to modify the document structure (e.g. pack the 'table-of-contents' into table cell, and the rest into another). Many thanks for the quick reply - the stylesheet was exactly what I was looking for - it looks beautiful! Warm regards, Stefan Stefan Vollmar voll...@nf.mpg.de writes: Hallo, I am new to this list and apologize if this has been asked before. Before I forget: many thanks for this EXCELLENT package! (1) I am running org 6.26d with Aquamacs 1.7 on a current Mac system. At least I think I have installed that version correctly (Aquamacs 1.7 uses an older version of org-mode) - how can I find out which version I am really using? (2) Is there a template/option to have the table of contents in an HTML export at the left hand side for navigation, similar to automatically generated bookmarks in PDF browsers? (3) Syntax highlighting of source code (6.26 d, Chapter 12, p. 102, Literal Examples) like this #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC works nicely. However it took me a while to get there: I had first overlooked the footnote and needed to install htmlize.el first. However, when using a Python snippet with Python instead of emacs- lisp there was no colour whatsoever: it needs to be python (although Emacs displays the mode with a capital P), maybe this should be another footnote? I have also added a little note here: http://www.emacswiki.org/emacs/Htmlize Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de ___ 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] [ANN] org-crypt Version 0.3
I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. Yes, manually sounds good. Though there should also be a way to (manually) decrypt ALL entries at once as well. ___ 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] [ANN] org-crypt Version 0.3
I think that typically you load a library, then run a function to add stuff to hooks. That way, loading the library does not have side-effects. Some packages use the term insinuate. I'd opt for a default of always encrypting when saving and only decrypting when manually done. Maybe a little note in the properties drawer can tell the user how to do this? On Mon, May 18, 2009 at 09:40, Peter Jones mli...@pmade.com wrote: Sorry for the delays in getting this posted, I've been doing a lot of traveling lately. The attached version of org-crypt fixes a few bugs and is just about ready to be included in org proper. The only thing it might need before inclusion in org is automatic encryption via hooks. I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. I do think that org-crypt should hook itself into before-save-hook so that all entries that *should* be encrypted are encrypted before the file touches the disk. A user of org-crypt shouldn't have to worry about setting up a hook, it should just happen automatically. Any suggestions on the best way to make that happen in org-crypt? -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US ___ 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 -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] Show parent PROJECTS for an item
No, just a workaround of inserting both the parent and the child and letting the dots tell you the relationship between them. But perhaps I am not following the thread closely enough. On Mon, May 18, 2009 at 15:01, Eraldo Helal ad...@eraldo.at wrote: On Mon, May 18, 2009 at 18:21, Samuel Wales samolog...@gmail.com wrote: I recall that there was a variable that controls whether dots get put into the agenda line to show that it is a child of the previous agenda line, or something like that. Might possibly work if you include the parent? I remember having seen those dots in the agenda some time So, what you are suggesting is inserting the headline istead of just the dot? That would be awesome if that could be done! Greetings, Eraldo -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] Show parent PROJECTS for an item
On Tue, May 19, 2009 at 00:16, Samuel Wales samolog...@gmail.com wrote: No, just a workaround of inserting both the parent and the child and letting the dots tell you the relationship between them. How? I would have to show all Project headlines in order to make this work... However, I only want the parent of my ACTION (keyword) headlines... not all projects. And it would waste waaay to much space on my daily-printed-out-agenda. I am looking for something like this format: Org-file: * PROJECT *My-project *** PROJECT *My-sub-project* *** PROJECT *My-sub-sub-project* *NEXT** Clean garage*:home: Agenda-output: *My-sub-sub-project* *NEXT Clean garage*:home: This is my most-wanted feature atm. :) ___ 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] Show parent PROJECTS for an item
I had the idea of using CATEGORY as a keyword. Benefit: using #+CATEGORY (or the CATEGORY property) has the disadvantage that if I change the headline the category does not update: example: Org-file: * PROJECT *my_renamed_project1* :PROPERTIES: :CATEGORY: *myproject1* :END: ** TODO clean garage:home: Agenda-output: *myproject1* TODO *clean garage*:home: In this example the Agenda should show *my_renamed_project1* instead of * myproject1* The next step would then be to enable the user to define this CATEGORY-keyword or bind it's function to an existing keyword. (e.g. PROJECT) If there is a simpler way of getting the partent headline as agenda-prefix... that would be even cooler and much less work I can imagine. Greetings from Austria, Eraldo On Tue, May 19, 2009 at 00:47, Eraldo Helal ad...@eraldo.at wrote: On Tue, May 19, 2009 at 00:16, Samuel Wales samolog...@gmail.com wrote: No, just a workaround of inserting both the parent and the child and letting the dots tell you the relationship between them. How? I would have to show all Project headlines in order to make this work... However, I only want the parent of my ACTION (keyword) headlines... not all projects. And it would waste waaay to much space on my daily-printed-out-agenda. I am looking for something like this format: Org-file: * PROJECT *My-project *** PROJECT *My-sub-project* *** PROJECT *My-sub-sub-project* *NEXT** Clean garage*:home: Agenda-output: *My-sub-sub-project* *NEXT Clean garage*:home: This is my most-wanted feature atm. :) ___ 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] begin_src problems
I'm having some issues using #+BEGIN_SRC; doing the following doesn't seem to use the org-code face, and doesn't seem to work correctly with C-c i: #+BEGIN_SRC html-mode pfoobar/p #+END_SRC Am I missing something? The short form for code literals (prepending a line with colon-space) seems to work fine. I was using org-mode 6.13, but just upgraded to the latest HEAD from the master git branch and had the same issue. ___ 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] cannot edit two source code examples simultaneously
* On Sat 05:39PM +, 16 May 2009, Carsten Dominik (carsten.domi...@gmail.com) wrote: Hi Hsiu-Khuern, On May 15, 2009, at 7:38 AM, Hsiu-Khuern Tang wrote: Hi Carsten, You recently changed org-edit-src-code to use a separate buffer instead of an indirect buffer. One side effect of this is that I can no longer edit several code examples at the same time: opening the second buffer will silently discard any changes made in the first. I would prefer this behavior: when opening the second edit source buffer, write any changes in the first buffer to the originating Org buffer (but don't save it, of course). Another approach is to use different buffer names. I think the second idea is better, provided that a mechanism ensures that not two editing instances of the same region are created. This is what I have implemented now. Thank you for your report. Thanks for implementing this and the subsequent refinements based on Dan's and Taru's inputs! -- Best, Hsiu-Khuern. ___ 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] begin_src problems
Hi Tom, Tom Tobin korp...@korpios.com writes: I'm having some issues using #+BEGIN_SRC; doing the following doesn't seem to use the org-code face, and doesn't seem to work correctly with C-c i: C-c i is undefined with my setup. Did you mean C-c '? #+BEGIN_SRC html-mode pfoobar/p #+END_SRC I think you want #+BEGIN_SRC html. Then it works for me. Dan Am I missing something? The short form for code literals (prepending a line with colon-space) seems to work fine. I was using org-mode 6.13, but just upgraded to the latest HEAD from the master git branch and had the same issue. ___ 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] begin_src problems
On Mon, May 18, 2009 at 7:47 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Tom Tobin korp...@korpios.com writes: I'm having some issues using #+BEGIN_SRC; doing the following doesn't seem to use the org-code face, and doesn't seem to work correctly with C-c i: C-c i is undefined with my setup. Did you mean C-c '? Yeah, sorry; I meant C-c '. #+BEGIN_SRC html-mode pfoobar/p #+END_SRC I think you want #+BEGIN_SRC html. Then it works for me. Hmm ... C-c ' now works only if the block is flush with the left margin. Is this intentional? Org-mode tries to align it with the header it falls under, which seems right to me. The block still doesn't get the org-code face either way (although the #+BEGIN_SRC html and #+END_SRC gets their own face if the block is against the left margin). ___ 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] Show parent PROJECTS for an item
On Sat, May 16, 2009 at 8:41 PM, Carsten Dominik wrote: On May 15, 2009, at 11:33 PM, Marcelo de Moraes Serpa wrote: Hello list, I'd like to do a little modification to the code that grabs the summary of items for the agenda view. For each item that has a parent with a PROJECT type, I'd like org to render this parent in a hierarchical, tree way, like this:. Let's say I search for a specific item using a regexp. This item has three parents, which all are PROJECTS, it would show like this: PROJECT My project PROJECT My sub-project PROJECT My sub-sub-project NEXT Call Liz to check if the account has been created :@call:@work: So, searched for Liz and got this specific item, but org then would give me more context, showing me to which project it belongs to. Not sure if it's already possible, but if not, would be a great addition to support the GTD system, IMO :) The purpose of the flat agenda list is to be compact, and what you want would defeat that purpose. If you are working with a single file, a sparse tree might be the best alternative. If not, you could give follow mode in the agenda a try. Follow mode is fit for the purpose when you are _in_ Emacs but when you want to print and take your lists along then missing context can be confusing. Would it be possible to encode the task hierarchy into the task display like so: ,[ sample tree ] | * PROJECT Take over the world | ** SUBPROJ Make a plan | *** TODO Print a trillion dollars ` ,[ sample todo list ] |TODO Take over the world/Make a plan/Print a trillion dollars | or TODO Print a trillion dollars [Take over the world/Make a plan] | or [Take over the world/Make a plan] TODO Print a trillion dollars | or TODO [Take over the world/Make a plan] Print a trillion dollars | or TODO Print a trillion dollars\Make a plan\Take over the world ` Personally I prefer the last one most. The number of characters added from each node, and/or the numbers of nodes added and/or the total length of todo item in agenda can be made configurable to limit the length of the agenda lines. At present, some of us try to be more descriptive when defining a task so as to identify the context from the task alone. If this is implemented, we can try to be succinct instead. Of course, I do not know elisp nor do I understand Org internals so the idea might just be nonsense from an implementation perspective. Regards, -- Manish ___ 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] begin_src problems
Tom Tobin korp...@korpios.com writes: On Mon, May 18, 2009 at 7:47 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Tom Tobin korp...@korpios.com writes: I'm having some issues using #+BEGIN_SRC; doing the following doesn't seem to use the org-code face, and doesn't seem to work correctly with C-c i: C-c i is undefined with my setup. Did you mean C-c '? Yeah, sorry; I meant C-c '. #+BEGIN_SRC html-mode pfoobar/p #+END_SRC I think you want #+BEGIN_SRC html. Then it works for me. Hmm ... C-c ' now works only if the block is flush with the left margin. Is this intentional? Yes, it's intentional. The # has to be the first character on the line. It's the same with the other org syntax which starts #+. Org-mode tries to align it with the header it falls under, which seems right to me. The block still doesn't get the org-code face either way (although the #+BEGIN_SRC Not quite sure what you mean by 'org-code' face. The source code gets fontified, in a different buffer, when you hit C-c ' (fontification is according to the language major mode specified in the header, i.e. html-mode in your example). Does this happen for you? The code in the original org buffer never gets fontified according to language. It used to be the case that nothing much happened to it, but if you are using bleeding-edge org from today's commits then it is subject to some different magic. Dan html and #+END_SRC gets their own face if the block is against the left margin). ___ 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] begin_src problems
On Mon, May 18, 2009 at 10:15 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Tom Tobin korp...@korpios.com writes: Hmm ... C-c ' now works only if the block is flush with the left margin. Is this intentional? Yes, it's intentional. The # has to be the first character on the line. It's the same with the other org syntax which starts #+. Ahh, that explains it. It looks kind of odd not indented like the rest of the content under a header, which is probably what threw me off. Org-mode tries to align it with the header it falls under, which seems right to me. The block still doesn't get the org-code face either way (although the #+BEGIN_SRC Not quite sure what you mean by 'org-code' face. The source code gets fontified, in a different buffer, when you hit C-c ' (fontification is according to the language major mode specified in the header, i.e. html-mode in your example). Does this happen for you? The code in the original org buffer never gets fontified according to language. It used to be the case that nothing much happened to it, but if you are using bleeding-edge org from today's commits then it is subject to some different magic. Yes, that happens for me (now that I have it left-flushed); I think my expectation was that the lines between the #+ lines would become light gray, like lines starting with : (colon-space) do (by default, anyway). Thanks, though! ___ 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