Re: [Orgmode] Re: DocBook exporter code (version 1.0)
On Mar 13, 2009, at 3:05 AM, Baoqiu Cui wrote: Baoqiu Cui cbao...@yahoo.com writes: Dale Smith da...@vxitech.com writes: Somthing that muse has that I'd really like to see in org is some way to insert raw docbook into the exported output. The LaTeX exporter already has a feature like this. Muse-mode uses the literal tag. In the past, I've used this for inserting a programming instruction that cauaes a page-break. I'm sure there could be many many uses. Any ideas or suggestions? Something I've missed? This may require adding a markup like #+BEGIN DOCBOOK ... #+END DOCBOOK, which is some external change that makes Org less lightweight. (LaTeX is a little different, because LaTeX fragments do not need a markup in Org-mode.) Don't know how Carsten and other people think. Oh, I just noticed that #+BEGIN_LaTeX ... #+END_LaTeX already exists. Then maybe it is OK to add #+BEGIN_DOCBOOK ... #+END_DOCBOOK. This is already in org-exp.el and should work: #+DOCBOOK: dockbookcode and #+BEGIN_DOCBOOK docbookcode docbookcode docbookcode #+END_DOCBOOK Also I have just pushed changes to org-mtags.el (contributed package). If you load it, muse-like tags will be understood by Org as well, and you can write: literal style=docbook dockbookcode /literal - 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
[Orgmode] Re: removal of appointments
Richard, On Thu, 12 Mar 2009 15:02:19 +0100 Richard Riley rileyrg...@googlemail.com wrote: While on the subject, is there any concept of an alarm in org? Or is this just a scheduled item? It would be nice of there was a way to trigger specific functions based on the tags -e.g play wave file for a reminder of a task of a certain type. Is there something like this anyone can recommend or point me to? I would like to configure org as my alarm clock too! if you are willing to run another application you can do it with remind. There exisits an org2rem script you could add a hook to to automatically invoke, I guess, after inserting a timed appointment. Remind itself can run in daemon mode and has very easy syntax to run arbitrary commands at arbitrary times :-) As you only had a one-way push and no problems syncing remind and org it may well be a usable way. Nice introduction from remind's author: http://www.linuxjournal.com/article/3529 Homepage: http://www.roaringpenguin.com/products/remind Greeting from the other side of the city Detlef ___ 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] follow mode - open linked entities
Hi Carsten et al, A feature request - have follow mode open up the first linked property if so configured. Possibly a configured property name such as Link if linking to something internal like an gnus email. I realise that's probably quite a major thing if done generically and came to mind because I use follow mode as the default through org-agenda-start-with-follow-mode and was thinking how nice it would be if agenda items which are inserted from elisp snippets such as %%(org-bbdb-anniversaries) could be opened in follow mode - in this case someones birthday in the agenda and setting focus would open their bbdb entry. This in turn made me wonder if an anything link from the agenda might be the way since a lot of entities already have anything template. I realise that this is probably quite tricky, but just thought I 'd mention it in case anyone had taking any steps in this direction already, regards, r. ___ 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] ~verbatim~ and =code= inconsistency exporting to Latex/HTML
#+TITLE: (bug|feature)? report -- exporting ~verbatim~ and =code= into Latex #+AUTHOR: me #+EMAIL: e...@ma.il # I use latest Git (that's 1 commit ahead of 6.24c) on Emacs 22.3.1 * ~verbatim~ and =code=---inconsistency exporting to Latex and HTML #+BEGIN_EXAMPLE [a-zA-Z_] [!#*+-/:;=?] [\t\n\r ,] This works OK #+END_EXAMPLE However if I want to randomly inline any of those in a paragraph, =[!#*+-/:;=?]= they're not properly escaped =[a-zA-Z_]= for Latex ---while for HTML =[\t\n\r ,]= org-mode does the Right Thing(tm). I also find odd that ~verbatim~'ed text is =monospaced= in Latex while it is not in HTML. * Another little thing---EMAIL option for Latex seems to have no effect The +EMAIL option below is not shown in Latex---whereas I can see it in the exported HTML. Is that a feature, a bug, or both? * 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
[Orgmode] Emacs org-mode mailing-list : a quick reminder about moderation
Hello, this is a quick reminder for you, beloved org-mode user, reading this mailing list but not subscribed to it yet. The traffic on this list is hand-moderated, that means that somebody really reads every mails sent by a non-subscribed user. Depending of the content, the mail will go through or not (for spam only). This is the reason why this list is 100% spam-free. Subscribing has some advantages for you and for moderators : - your post wil go through immediatly, so your reaction will arrive on time ; - the moderator will not have to spend time checking if your post is valid or spam ; So please, if you are planning to participate to this list, take a minute to subscribe using the link below. http://lists.gnu.org/mailman/listinfo/emacs-orgmode For exemple, why not take this opportunity to subscribe right now and report how you are currently using org-mode and what your dreams about it are ? Org-mode evolves a lot, very quickly and in many directions, so you ought to raise your voice if you want it to even better suit your needs in the future :) Again : http://lists.gnu.org/mailman/listinfo/emacs-orgmode Thanks, -- Paul ___ 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] printing pdf of agenda buffer: two issues
På Fri, 06 Mar 2009 10:38:22 +0100, skrev Carsten Dominik domi...@science.uva.nl: On Mar 6, 2009, at 6:32 AM, Alan E. Davis wrote: Maybe I have missed something about the use of this new feature. And also other attempts to print have failed. So I am posing two questions in this post (hopefully related). They may well be due to my setup. 1. When I attempt to write a pdf file of a buffer of TODO items as collected by C-c a t, the following error is reported: comment-normalize-vars: Command attempted to use minibuffer while in minibuffer Formatting... 0% color-values: Wrong type argument: stringp, (blue :weight bold) There is little use in my theorizing about this. I cannot reproduce this. C-x C-w somefile.pdf RET in my agenda works. 2. I have tried two other ways to print agenda output, using scripts posted elsewhere. One of them was a script from an org-mode tutorial, and the other, perhaps, from the FAQ. Both times, I get colored text that cannot print. It is pale yellow. Very likel this is because you are using a script that runs Emacs in batch-mode, in which case the font colors are poorly defined. You can try to bind org-agenda-with-colors to nil during the agenda command, as one of the options. Perhaps these are related? I don't think so. HTH - Carsten I am running Emacs on Windows, and I have a similar problem with org-mode 6.24b. My *Messages* gives me this Preparing diary...done Loading cl-macs...done Loading cl-seq...done Formatting... 0% Loading ps-mule...done Loading composite...done Collecting face information... Formatting... 39% ps-e-color-values: Wrong type argument: stringp, (blue :weight bold) Hope anyone can help. An pdf from agenda view would give a good kick in the butt to they guys in the office who frowns upon planning done elsewhere than MS Projects and Outlook :P - Ivan ___ 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] server-kill-new-buffers and org-agenda
Hello It seems that server-kill-new-buffers in emacs23 works fine for normal org-mode files, but it doesn't affect buffers opened with org-agenda. Is it possible to fix this? The problematic behaviour is as follows: 1) look at the agenda in emacsclient 2) close emacsclient (org-mode buffers opened by agenda are not closed) 3) some hours later the files are edited by git etc 4) open emacsclient to edit some org-file and when saving in emacs it complains rightly that the file has been changed on the disk. Thus I would need a way to close the buffers opened by org-agenda when the emacsclient exits. Any suggestions? - 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
[Orgmode] Re: DocBook exporter code (version 1.0)
Carsten Dominik domi...@science.uva.nl writes: On Mar 13, 2009, at 3:05 AM, Baoqiu Cui wrote: Baoqiu Cui cbao...@yahoo.com writes: Dale Smith da...@vxitech.com writes: Somthing that muse has that I'd really like to see in org is some way to insert raw docbook into the exported output. Any ideas or suggestions? Something I've missed? Heh. Figured I'd miss it. Oh, I just noticed that #+BEGIN_LaTeX ... #+END_LaTeX already exists. Then maybe it is OK to add #+BEGIN_DOCBOOK ... #+END_DOCBOOK. This is already in org-exp.el and should work: #+DOCBOOK: dockbookcode and #+BEGIN_DOCBOOK docbookcode docbookcode docbookcode #+END_DOCBOOK Also I have just pushed changes to org-mtags.el (contributed package). If you load it, muse-like tags will be understood by Org as well, and you can write: literal style=docbook dockbookcode /literal Both look good. 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] A little warning
Carsten Dominik wrote: I am abandoning the CLOCK drawer, and instead use the LOGBOOK drawer also for CLOCK lines and clock-out notes. This makes a lot of sense to me, hopefully also to you. Is it sensible to global search and replace :CLOCK: with :LOGBOOK: to upgrade my org files? David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: removal of appointments
Richard's question makes me wonder about org and diary integration. Whats the good/proper way of doing that? Bastien's note in org2rem says that perhaps orgmode makes remind unnecessary but interoperability wont hurt. The org docs themselves seem to say that org and diary are complementary but Im not quite getting how. Sorry if I am a little dull here but this is one of those things I most want to get but somehow or other cannot bend my head around. This is also related to another question (also from Richard?) about archiving more to his taste. To my mind this is a special case of a more general problem (or stupidity of mine?) that I am suffering Things like (a) TODO lists, diaries etc are 'live'. By contrast (b) Files are 'dead' (or inanimate at least) Activities like archiving move from (a) to (b) Processes like org/diary/cron etc etc move from (b) to (a) An effective use of tools like emacs/org (for say GTD) depends on smoothing these transitions. Some of my posts on the emacs list eg http://lists.gnu.org/archive/html/help-gnu-emacs/2009-03/msg00268.html -- seemingly unrelated to org -- is actually about the other side of this. Any thoughts/tips on this much appreciated ___ 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] server-kill-new-buffers and org-agenda
Taru Karttunen tar...@taruti.net writes: It seems that server-kill-new-buffers in emacs23 works fine for normal org-mode files, but it doesn't affect buffers opened with org-agenda. Is it possible to fix this? As you probably realize, this is because those buffers aren't server-editing buffers. The problematic behaviour is as follows: 1) look at the agenda in emacsclient 2) close emacsclient (org-mode buffers opened by agenda are not closed) 3) some hours later the files are edited by git etc 4) open emacsclient to edit some org-file and when saving in emacs it complains rightly that the file has been changed on the disk. Thus I would need a way to close the buffers opened by org-agenda when the emacsclient exits. You might consider global-auto-revert-mode. If a buffer does not have unsaved changes, and emacs notices that it has changed on disk, it automatically refreshes it to the new version. If it does have unsaved changes, then it uses the normal behaviour. As long as you remember to save your org-mode buffers when you're done with the agenda, and rely on your VCS to avoid losing data to overwriting, then it should be pretty transparent. -- +---+ | Jason F. McBrayerjmcb...@carcosa.net | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada| ___ 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] BUG: org-clock-find-position slurpes a non-clock line into drawer
To reproduce, set your org-clock-into-drawer to 3 (or any number). Then: , | * Foo | - [ ] bar baz ` Clock in and out org-clock-into-drawer times, after that I get (= the checkbox line got into the logbook drawer): , | * Foo |:LOGBOOK: |CLOCK: [2009-03-13 Fri 18:45]--[2009-03-13 Fri 18:45] = 0:00 |CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] = 0:00 |CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] = 0:00 |- [ ] bar baz |:END: ` The bug is in org-clock-find-position, I commented out these lines: ; (if (and (= (org-get-indentation) ind-last) ;(org-at-item-p)) ; (org-end-of-item)) Now it works, but maybe this breaks other stuff, so please Carsten take a look at this, thanks! -- Richard ___ 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] A little warning
Yes. - Carsten On Mar 13, 2009, at 3:45 PM, David Bremner wrote: Carsten Dominik wrote: I am abandoning the CLOCK drawer, and instead use the LOGBOOK drawer also for CLOCK lines and clock-out notes. This makes a lot of sense to me, hopefully also to you. Is it sensible to global search and replace :CLOCK: with :LOGBOOK: to upgrade my org files? David ___ 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] Spreadsheet: Last row in ranges
No, $LR1 inserts the *value* of that field. You can do this: | 1 | 6 | | 2 | | | 3 | | #+TBLFM: @1$2=vsum(@1$...@i-1$1) Org imagines a hline at the end of a table, in your case this would be the first hline in the table, so @I-1 refers to the last row. HTH - Carsten On Mar 13, 2009, at 1:09 AM, Gabor Maroti wrote: Dear All, A quick spreadsheet question. I just wanted the compute the sum of an entire column by using | 1 | | | 2 | | | 3 | | #+TBLFM: @1$2=vsum(@1$1..$LR1) It doesn't do the trick (neither in v6.24a nor in v6.24c): the value of @1$2 is 3, 12, 29, 120, etc., after multiple application of the TBLFM line. Thus it looks to me that the $LR1 syntax is not really welcome in ranges. Is it so? Anyway, is it possible to compute the sum of a column apart from the slightly cumbersome vsum(@1$...@3$1)? Thanks, G. ___ 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] server-kill-new-buffers and org-agenda
On Mar 13, 2009, at 2:34 PM, Taru Karttunen wrote: Hello It seems that server-kill-new-buffers in emacs23 works fine for normal org-mode files, but it doesn't affect buffers opened with org-agenda. Is it possible to fix this? The problematic behaviour is as follows: 1) look at the agenda in emacsclient 2) close emacsclient (org-mode buffers opened by agenda are not closed) 3) some hours later the files are edited by git etc 4) open emacsclient to edit some org-file and when saving in emacs it complains rightly that the file has been changed on the disk. Thus I would need a way to close the buffers opened by org-agenda when the emacsclient exits. Any suggestions? It might help if you exit the agenda with x before quitting. x will remove org files loaded to create the agenda. - 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] printing pdf of agenda buffer: two issues
On Mar 13, 2009, at 2:01 PM, Ivan Nedrehagen wrote: På Fri, 06 Mar 2009 10:38:22 +0100, skrev Carsten Dominik domi...@science.uva.nl : On Mar 6, 2009, at 6:32 AM, Alan E. Davis wrote: Maybe I have missed something about the use of this new feature. And also other attempts to print have failed. So I am posing two questions in this post (hopefully related). They may well be due to my setup. 1. When I attempt to write a pdf file of a buffer of TODO items as collected by C-c a t, the following error is reported: comment-normalize-vars: Command attempted to use minibuffer while in minibuffer Formatting... 0% color-values: Wrong type argument: stringp, (blue :weight bold) There is little use in my theorizing about this. I cannot reproduce this. C-x C-w somefile.pdf RET in my agenda works. 2. I have tried two other ways to print agenda output, using scripts posted elsewhere. One of them was a script from an org- mode tutorial, and the other, perhaps, from the FAQ. Both times, I get colored text that cannot print. It is pale yellow. Very likel this is because you are using a script that runs Emacs in batch-mode, in which case the font colors are poorly defined. You can try to bind org-agenda-with-colors to nil during the agenda command, as one of the options. Perhaps these are related? I don't think so. HTH - Carsten I am running Emacs on Windows, and I have a similar problem with org- mode 6.24b. My *Messages* gives me this Preparing diary...done Loading cl-macs...done Loading cl-seq...done Formatting... 0% Loading ps-mule...done Loading composite...done Collecting face information... Formatting... 39% ps-e-color-values: Wrong type argument: stringp, (blue :weight bold) What is ps-e-color-values? I do not have this function. - Carsten Hope anyone can help. An pdf from agenda view would give a good kick in the butt to they guys in the office who frowns upon planning done elsewhere than MS Projects and Outlook :P - Ivan ___ 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] non-text file handling method / stucture
Salve! I am just starting to use Emacs-Org-Mode and planning to use it for my GTD system. However I am not sure what files (file structure) to use. Until now, I made a directory for each project. In each project directory I have a text file called plan. This is where I did my thinking and planing until now... but is is very limited and lacks the ability to get an overview/idea of the whole project. I used this structure because I knew where everything was. (.pdf and other files as well as text) Now that I discovered Org-Mode, I am thinking about the following methods: 1) Replacing the plan files in the project directorys with plan.org files. Still having one directory per project. 2) Having one projects.org file and a directory called documents (or something similar) where all the non-text-documents go. The projects.orgfile then links to the appropreate documents. Seperate higher goals file. - document handling can get confusing... - deleting / moving of documents could result in broken links - backing up / archiving done projects (AND their documents [maybe]) 3) Having one gtd.org file and having a directory only for the projects for which I have non-text documents. And linking to thouse directories in the general gtd.org file. - my favourite option until now - unsure how to handle the creation/deletion of directories and the links that go along... - an automated option would be ideal! - e.g. a script or something similar that makes sure that the project names (headlines with a :PROJECT: tag) at the same time link to that project if a directory exists in my projects directory. Please let me know what you think... any idea is welcome... comments on my ideas / other methods / mistures / etc Thank you for reading :) 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
[Orgmode] [Patch] Add another bullet type (→)
Hi All, I tend to use a right arrow (→, U2192) from time to time in plain lists to separate normal item from conclusions / next actions etc.: - Topic - Fact 1 - Fact 2 → Conclusion I would appreciate it if org-mode could support this type of bullet point. The attached patch implements what I had in mind. I'm not sure if the adaptation in /org-cycle-list-bullet/ is useful for others --- I don't use the arrow for many items in a list, but only single ones --- But I included it in the patch for completeness. (Also, there may be better ways to encode unicode chars in regexp than using the utf-8 encoding, that the patch uses.) Cheers, Martin --- /home/mp26/src/org-mode/lisp/org-list.el2009-03-13 23:42:05.0 +0100 +++ org-list.el 2009-03-13 19:57:51.0 +0100 @@ -118,7 +118,7 @@ :type 'integer) (defvar org-list-beginning-re - ^\\([ \t]*\\)\\([-+*]\\|[0-9]+[.)]\\) +\\(.*\\)$) + ^\\([ \t]*\\)\\([-+*â]\\|[0-9]+[.)]\\) +\\(.*\\)$) (defcustom org-list-radio-list-templates '((latex-mode % BEGIN RECEIVE ORGLST %n @@ -158,9 +158,9 @@ (goto-char (point-at-bol)) (looking-at (cond - ((eq llt t) \\([ \t]*\\([-+]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\)) - ((= llt ?.) \\([ \t]*\\([-+]\\|\\([0-9]+\\.\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\)) - ((= llt ?\)) \\([ \t]*\\([-+]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\( \\|$\\)) + ((eq llt t) \\([ \t]*\\([-+â]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\)) + ((= llt ?.) \\([ \t]*\\([-+â]\\|\\([0-9]+\\.\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\)) + ((= llt ?\)) \\([ \t]*\\([-+â]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\( \\|$\\)) (t (error Invalid value of `org-plain-list-ordered-item-terminator'))) (defun org-at-item-bullet-p () @@ -205,7 +205,7 @@ (looking-at [ \t]*$) (timerp (and descp (save-match-data - (string-match ^[-+*][ \t]+[0-9]+:[0-9]+:[0-9]+$ + (string-match ^[-+*â][ \t]+[0-9]+:[0-9]+:[0-9]+$ descp (eow (save-excursion (beginning-of-line 1) (looking-at [ \t]*) (match-end 0))) @@ -337,7 +337,7 @@ (condition-case nil (org-back-to-heading t) (error (throw 'exit nil))) (unless (org-entry-get nil ORDERED) (throw 'exit nil)) - (if (re-search-forward ^[ \t]*[-+*0-9.)] \\[[- ]\\] end t) + (if (re-search-forward ^[ \t]*[-+*â0-9.)] \\[[- ]\\] end t) (org-current-line) nil)) @@ -360,7 +360,7 @@ (end (move-marker (make-marker) (progn (outline-next-heading) (point (re \\(\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)\\)) - (re-box ^[ \t]*\\([-+*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\)) + (re-box ^[ \t]*\\([-+â*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\)) (re-find (concat re \\| re-box)) beg-cookie end-cookie is-percent c-on c-off lim eline curr-ind next-ind continue-from startsearch @@ -674,7 +674,7 @@ Cycle through the different itemize/enumerate bullets. This cycle the entire list level through the sequence: - `-' - `+' - `*' - `1.' - `1)' + `-' - `+' - `â' - `*' - `1.' - `1)' If WHICH is a string, use that as the new bullet. If WHICH is an integer, 0 means `-', 1 means `+' etc. @@ -688,11 +688,12 @@ new old) (setq new (cond ((and (numberp which) - (nth (1- which) '(- + * 1. 1) + (nth (1- which) '(- + â * 1. 1) ((string-match - current) (if prevp 1) +)) ((string-match \\+ current) -(if prevp - (if (looking-at \\S-) 1. *))) - ((string-match \\* current) (if prevp + 1.)) +(if prevp - (if (looking-at \\S-) 1. â))) + ((string-match â current) (if prevp + *)) + ((string-match \\* current) (if prevp â 1.)) ((string-match \\. current) (if prevp (if (looking-at \\S-) + *) 1))) ((string-match ) current) (if prevp 1. -)) @@ -929,7 +930,7 @@ ((and (condition-case nil (progn (org-previous-item) t) (error nil)) (or (forward-char 1) t) -(re-search-forward ^\\([ \t]*\\([-+]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\) bolpos t)) +(re-search-forward ^\\([ \t]*\\([-+â]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\)\\( \\|$\\) bolpos t)) (setq ind-down (org-get-indentation))) ((and (goto-char pos) (org-at-item-p)) @@ -956,8 +957,8 @@ (setq itemsep [0-9]+\\(?:\\.\\|)\\) ltype 'ordered)) ((string-match ^.*:: (match-string 0)) - (setq itemsep [-+] ltype 'descriptive)) - (t (setq
[Orgmode] SOLVED: elisp formulas in column view (without converting to tables)
Hi, I have rewritten the org-columns-compute function to allow elisp formulas in column view. It allows you to specify how to accumulate values from child headers, and how to specify the value for the current header, based on other columns. In the column specification you place elisp code between the braces {} after the column name. This elisp should return a list of 2 values. The first value should be the value for that header, and the second value should be the running total of values so far at that level, which will eventually be used to set the value for the parent header. The following values may be referenced by your elisp code: | $name | the value of the 'name' column for this header (swap 'name' for whatever columns you have) | | curval| the current value for this header | | curtotal | the running total from headers at the same level as this one | | prevtotal | the total from headers below this level | Here is the column specification for the example that Eric gave: :COLUMNS: %25ITEM %2d{`(,(or curval 0) 0)} %f{`(,(or curval 0) 0)} %2fd{`(,(+ $f $d) 0)} This will ensure that the 'fd' column contains the sum of the 'f' and 'd' columns. If there are any missing values in the 'f' and 'd' columns they will be replaced with 0's. No running total is needed for that example so the second element of the return list just contains 0. I use the ` and , chars to evaluate the elements between the brackets before returning the list, but you could also use the (list val1 val2) form. Here is a more complicated example that calculates the geometric mean of child headers: :COLUMNS: %25ITEM %5count{`(,(or prevtotal 1) ,(if curtotal (1+ curtotal) 1))} %21val{`(,(if prevtotal (exp (/ prevtotal $count)) (or curval 1)) ,(if curtotal (+ curtotal (log curval)) (or (log curval) 1)))} The 'val' column will contain either raw data, or a geometric mean depending on whether the header has children or not. The extra column 'count' is used to count the number of children (is there an org function for this?). You could use the calc-eval function in your elisp code to do some calculations for you, but this would get a bit messy as it takes a string argument and returns a string, so you would need to make lots of use of the number-to-string and string-to-number functions. I guess it is not a very simple solution but it does the job for now. It anyone can improve on it that would be great... or maybe Dominik already has something? Here it is: (defun org-columns-compute (property) Compute the values of property PROPERTY hierarchically, for the entire buffer. (interactive) (let* ((re (concat ^ outline-regexp)) (lmax 30) ; Does anyone use deeper levels??? (level 0) (ass (assoc property org-columns-current-fmt-compiled)) ;; parse elisp form if there is one (form (nth 3 ass)) (uselisp (and ( (length form) 1) (or (equal ( (substring form 0 1)) (equal ( (substring form 1 2) (form (if uselisp (replace-regexp-in-string \$\\([^()\]+\\) (string-to-number (org-entry-get nil \\\1\)) (nth 3 ass) t))) ;; vector to hold running totals for each level (lsum (make-vector lmax (if uselisp nil 0))) (format (nth 4 ass)) (printf (nth 5 ass)) (beg org-columns-top-level-marker) last-level val valflag end sumpos sum-alist str str1 useval prevtotal curtotal newvals) (save-excursion ;; Find the region to compute (goto-char beg) (setq end (condition-case nil (org-end-of-subtree t) (error (point-max (goto-char end) ;; Walk the tree from the back and do the computations (while (re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level level level (org-outline-level) ;; total from children, or nil if there were none prevtotal (if ( level last-level) (aref lsum last-level) nil) ;; total at this level curtotal (aref lsum level) ;; current property value as string val (org-entry-get nil property) ;; is it non-empty? valflag (and val (string-match \\S- val)) ;; current property value as number (or nil if empty) curval (if valflag (org-column-string-to-number val format) nil) ;; get values to replace current value and running total newvals (if uselisp (eval-expression (read form))
[Orgmode] Clocking time from existing git repository logs
Has anyone devised a format to bring git commit logs into org-mode for the purposes of clocking time? I have a few repositories that I need to retroactively log hours worked from commit messages. I expect that appropriate git log formatting might make it much easier. Thanks, Jeff ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: SOLVED: elisp formulas in column view (without converting to tables)
n...@aleblanc.cotse.net writes: Hi, I have rewritten the org-columns-compute function to allow elisp formulas in column view. It allows you to specify how to accumulate values from child headers, and how to specify the value for the current header, based on other columns. In the column specification you place elisp code between the braces {} after the column name. This elisp should return a list of 2 values. The first value should be the value for that header, and the second value should be the running total of values so far at that level, which will eventually be used to set the value for the parent header. The following values may be referenced by your elisp code: | $name | the value of the 'name' column for this header (swap 'name' for whatever columns you have) | | curval| the current value for this header | | curtotal | the running total from headers at the same level as this one | | prevtotal | the total from headers below this level | I forgot to mention that curtotal will be nil if the current header is the first header at the current level, and prevtotal will be nil if the current header has no children. You can test for these in your elisp functions. -- aleblanc ___ 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] column view: hiding :PROPERTIES:, and overriding edit restrictions
Hi, when I enter column view I can cycle through tree visibility settings by hitting the tab key, but can only hide the :PROPERTIES: line under the top heading if I fold the tree completely. I want to be able to see all headings, but no :PROPERTIES: How can I do this? Also.. how can I override the restriction that prevents me from editing a value when there is a corresponding formula and the header has children: The value is computed from the entry's children When using my previously posted org-columns-content function, I may be only interested in accumulating values to the top level, and not intermediate levels. So I may want to be able to edit these intermediate level headings. -- aleblanc ___ 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