Re: [O] ODT Export does not seem to recognise org-export-default-language
Jambunathan K kjambunat...@gmail.com writes: Hello Rainer Hi! Exporting an org file via C-c C-e O to an ODT file does not seem to recognise the org-export-default-language setting. I can confirm the bug and I have a fix for this issue. I will include the fix in the next set of patches which I plan to submit in another few hours. I am attaching 3 patches. Patches 1 2 are misc improvements. Patch 3 fixes the above issue. Jambunathan K. From 6877ee1c53fddd7bd04c15acd56b768856ae1670 Mon Sep 17 00:00:00 2001 From: Jambunathan K kjambunat...@gmail.com Date: Wed, 20 Jul 2011 15:02:53 +0530 Subject: [PATCH 1/3] org-lparse: Update docstring of org-lparse-debug * contrib/lisp/org-lparse.el (org-lparse-debug): Improve docstring. --- contrib/lisp/org-lparse.el | 21 ++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-lparse.el b/contrib/lisp/org-lparse.el index 7665591..c96ec84 100755 --- a/contrib/lisp/org-lparse.el +++ b/contrib/lisp/org-lparse.el @@ -1595,9 +1595,24 @@ the alist of previous items. (defvar org-lparse-output-buffer) (defcustom org-lparse-debug nil - Turn on/off debugging for `org-lparse'. - :type 'boolean - :group 'org-lparse) + Enable or Disable logging of `org-lparse' callbacks. +The parameters passed to the backend-registered ENTITY-CONTROL +and ENTITY-FORMAT callbacks are logged as comment strings in the +exported buffer. (org-lparse-format 'COMMENT fmt args) is used +for logging. Customize this variable only if you are an expert +user. Valid values of this variable are: +nil : Disable logging +control : Log all invocations of `org-lparse-begin' and + `org-lparse-end' callbacks. +format : Log invocations of `org-lparse-format' callbacks. +t : Log all invocations of `org-lparse-begin', `org-lparse-end' + and `org-lparse-format' callbacks, + :group 'org-lparse + :type '(choice + (const :tag Disable nil) + (const :tag Format callbacks format) + (const :tag Control callbacks control) + (const :tag Format and Control callbacks t))) (defun org-lparse-begin (entity rest args) Begin ENTITY in current buffer. ARGS is entity specific. -- 1.7.2.3 From 90cb47ff00c667ec499bc32f0b56fa2f48b79de2 Mon Sep 17 00:00:00 2001 From: Jambunathan K kjambunat...@gmail.com Date: Wed, 20 Jul 2011 15:44:12 +0530 Subject: [PATCH 2/3] org-odt: Simplify org-odt-format-org-entity * contrib/lisp/org-odt.el (org-odt-format-org-entity): Simplify. Component xml files in odt document are always utf-8 encoded. As a result, emitting of numeric character references based on utf-8 value is superfluous. --- contrib/lisp/org-odt.el |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index bd2ea33..e0790de 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -771,9 +771,7 @@ PUB-DIR is set, use this as the publishing directory. (format \n!-- %s --\n comment))) (defun org-odt-format-org-entity (wd) - ;; FIXME: Seems to work. But is this correct? - (let ((s (org-entity-get-representation wd 'utf8))) -(and s (format #x%x; (string-to-char s) + (org-entity-get-representation wd 'utf8)) (defun org-odt-fill-tabs-and-spaces (line) (replace-regexp-in-string -- 1.7.2.3 From 0fcc4a6d4158355ac4e8c0127db6ec794b133f33 Mon Sep 17 00:00:00 2001 From: Jambunathan K kjambunat...@gmail.com Date: Wed, 20 Jul 2011 19:07:23 +0530 Subject: [PATCH 3/3] org-odt: Use lang specific value for Table Of Contents * contrib/lisp/org-odt.el (org-odt-begin-toc): Use lang specific value for Table Of Contents. --- contrib/lisp/org-odt.el |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index e0790de..ea4e32b 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -691,14 +691,15 @@ PUB-DIR is set, use this as the publishing directory. /text:table-of-content-entry-template level level))) - (insert + (insert + (format /text:table-of-content-source text:index-body text:index-title text:style-name=\Sect1\ text:name=\Table of Contents1_Head\ - text:p text:style-name=\Contents_20_Heading\Table of Contents/text:p + text:p text:style-name=\Contents_20_Heading\%s/text:p /text:index-title -)) + lang-specific-heading))) (defun org-odt-end-toc () (insert -- 1.7.2.3
Re: [O] org-edit-file ?
Dov Grobgeld dov.grobg...@gmail.com writes: I just thought of an idea that I wonder if someone has implemented. While writing my journal I find myself wanting to insert a graphics file, e.g. a svg file and I write file:foo.svg . After having written the name I enter inkscape to create the contents of the file. To do that I have to run inkscape manually and eventually doing saveas and navigate to the correct directory to save the file. So my idea is to have a a new command org-edit-file that would: If the file does not exist, copy a skeleton file to the filename or generate the skeleton file by an emacs-function or by calling an external application. Call the configured editor application on the new file. If invoked with Ctrl-u , allow the user to specify what editor to run on the file, e.g. inkscape, or killustrator on svg files. Does something like this already exists? Start from C-h f org-open-file. Regards, Dov --
Re: [O] New feature: loop over siblings for some commands
After a first look at the macro and its usage I have the feeling that the macro would be wrong and/or a bad design choice. It conditionally implements a mapping of body to a headline's siblings. Thus it is a specialized case of applying a function to zero or more headlines based on a selection criteria: In other words it is a special case of org-map-entries. So first there is duplicate code. Second the usage of the macro in for instance `org-schedule'. The macro is wrapped around the entire function body (except the interactive expression) and its only use is avoidance of creating a separate function with the scheduling implementation. I highly recommend to not use this macro but to build the intended functionality with separate building blocks: Factor out the flesh of the respective functions (e.g. org-schedule) and use org-map-entries to map. As far as I can see, the latter provides all we need: (org-map-entries FUNC optional MATCH SCOPE rest SKIP) We have FUNC (schedule) and MATCH (siblings). Region is the SCOPE (we have to extend map-entries here). We might even extend the syntax of MATCH to accept symbols indicating concepts like sibling and the like. Ideally: #+begin_src emacs-lisp (if (or (not (org-region-active-p)) (not org-loop-over-siblings-within-active-region-p)) ;; -p? its not a predicate function! (org-really-do-the-schedule) (org-map-entries 'org-really-do-the-schedule 'siblings 'region)) #+end_src Another abstraction: Instead 'org-loop-over-siblings-with-active-region' something like: 'org-loop-over-headlines-with-active-region' that can be set to a symbol or a list of symbols indicating which headings to loop over (e.g. 'siblings, 'children, ...). Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp1ROKL7JIb5.pgp Description: PGP signature
Re: [O] TODO type problem on speedbar and imenu.
Hi Nicolas, Nicolas Goaziou wrote: I think it is better to enforce some whitespace after a TODO keyword than a word boundary. There are a few places where this could also be changed (i.e. `org-complex-heading-regexp-format'). Any opinion on this? I share your opinion. Best regards, Seb -- Sebastien Vauban
Re: [O] Wrong type argument listp on export
Hi, On Wed, Jul 20, 2011 at 16:36, Dirk Scharff dirk.scha...@googlemail.com wrote: I narrowed down my problem to the following short example: * My Test Block This is a test #+source testblock #+begin_src python :var x=3 :exports both :results output print x*x #+end_src executing the source-bock yields the correct result. When exporting this file however I get the folowing error: Wrong type argument: listp, 3 I can confirm this using Org-mode from git (d8bd43e). Enabling debugging shows that the problem occurs in ‘org-babel-sha1-hash’ when it tries to run ‘copy-seq’ on ‘(x . 3)’ at line 759. It doesn’t seem to be specific to Python—using ‘:var foo=bar’ seems to be what triggers it. Aankhen
[O] convert html file into orgmode .org file?
Can org-mode do this so that a user of orgmode can edit the page in orgmode then export the edited work back out to an html file?
Re: [O] DONE all subtasks recursively
Hello Marcelo, On Wed, Jul 20, 2011 at 21:11, Marcelo de Moraes Serpa celose...@gmail.com wrote: *bump* Hey guys, if someone could guide me a hint on where I should look to hack some elisp code in order to do that, I'd be grateful ;) Cheers, Marcelo. On Mon, Jul 18, 2011 at 1:30 PM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Hey guys If I have a headline with children, like this: * Project ** TODO Task ** TODO Task ** SubProject *** TODO Task *** TODO Task Does org have any functionality that allows me to automatically close (Change TODO-DONE, put DONE when TODO is not available (in the case of Projects)) automatically and recursively for each child if I close the main parent headline? You can use ‘org-map-region’ to call a function on every headline in a region. ‘org-end-of-subtree’ will move point to… well, the end of the current subtree. Finally, ‘org-todo’ is what changes the todo state of the headline containing point. Add your custom function to either ‘org-after-todo-state-change-hook’[1] or ‘org-trigger-hook’.[2] (I’m not sure what the difference is.) Happy hacking! Aankhen [1]: http://orgmode.org/worg/org-configs/org-hooks.html#sec-1_13 [2]: http://orgmode.org/worg/org-configs/org-hooks.html#sec-1_15
[O] [calfw] Better use of space
Hi, I have a feature request for Calfw. Masashi, would you prefer these to be posted here or on your github page? Anyhow, the month view is just superb! However, when using especially the two week view (and this is probably also true for the week view) I would like calfw to utilize vertical space better. By 'better' I basically mean that I would like calfw to be greedy. Refer to the following screenshot: http://ompldr.org/vOWtjdA Compare (the second week) to Google Cal: http://ompldr.org/vOWtjdg Seeing there is a lot of space left in each of Calfw's day-column it would be nice if it could be used to enhance the overview. This could for example be archived mapping events against time on the vertical axis as the Google calendar does (and also Mozilla Lightning but it no longer work on my system). This might also allow for printing more text from the even entry (using multiple lines). On the other hand we probably also want to make sure that it is still works on a 800x600 display. Thus, it might be best to introduce a governing variable. Unfortunately, my own Emacs Lisp skills are not sufficient to implement such a thing at the moment. Thanks a bunch for Calfw. It a great supplement to Org-Agenda. Cheers, Rasmus -- Sent from my Emacs
Re: [O] convert html file into orgmode .org file?
On Thu, Jul 21, 2011 at 2:08 PM, Jude DaShiell jdash...@shellworld.net wrote: Can org-mode do this so that a user of orgmode can edit the page in orgmode then export the edited work back out to an html file? Org-mode cannot import html files. But, you could try using Pandoc[1] for this. [1] - http://johnmacfarlane.net/pandoc/ -- Puneeth
Re: [O] [BABEL,PATCH] ob-fortran, ert tests
Hi Sergey, Litvinov Sergey slitvi...@gmail.com writes: ob-fortran.el: fix a bug with string input, add ob-fortran tests with ert. Applied, thanks! -- Bastien
Re: [O] ODT Export does not seem to recognise org-export-default-language
Jambunathan K kjambunat...@gmail.com writes: I am attaching 3 patches. Patches 1 2 are misc improvements. Patch 3 fixes the above issue. Tested. I confirm the fix. I applied the three patches. Thanks a lot! -- Bastien
Re: [O] org-edit-file ?
Hi Dov, Jambunathan K kjambunat...@gmail.com writes: have a a new command org-edit-file that would: If the file does not exist, copy a skeleton file to the filename or generate the skeleton file by an emacs-function or by calling an external application. Such a functionality belongs to Emacs itself rather than Org-mode. Are you aware of existing templating facilities? http://emacs-template.sourceforge.net/ Call the configured editor application on the new file. If invoked with Ctrl-u , allow the user to specify what editor to run on the file, e.g. inkscape, or killustrator on svg files. Does something like this already exists? Start from C-h f org-open-file. Indeed! Best, -- Bastien
Re: [O] bug when tuning agenda views
Hi Роман, Роман Новиков unique.smi...@gmail.com writes: when adding this string to my .emacs agenda is generating well, but when into agenda window I typing 't' to change TODO state of entry - emacs is hanging and only rebooting helps. without '\n' everything works well. (org-agenda-prefix-format [ ] \n %T: ) I cannot reproduce this -- please try with a more recent version of Org-mode if you have this opportunity. Thanks, -- Bastien
Re: [O] iCalendar export
Tassilo Horn tass...@member.fsf.org writes: And have anyone got this information to their mobile devices? Android? Well, I have it there using the Google Calendar app. It's ok to see my appointments in some graphical read-only view, but nothing more... I use some .ics files the same way Tassilo does. It's convenient to share with others. -- Bastien
Re: [O] org-edit-file ?
I'm not sure that emacs is the best tool to e.g. generate a template png file of a given size and given background, or a svg file. I still don't feel that any of the proposed solutions solves the file:foo.svg edit scenario, where foo.svg does not exist yet. Also I would rather differentiate between opening a few for viewing and opening a file for editing, as e.g. eog and inkview are good for viewing, whereas gimp and inkscape are better for editing. Regards, Dov On Thu, Jul 21, 2011 at 12:32, Bastien b...@altern.org wrote: Hi Dov, Jambunathan K kjambunat...@gmail.com writes: have a a new command org-edit-file that would: If the file does not exist, copy a skeleton file to the filename or generate the skeleton file by an emacs-function or by calling an external application. Such a functionality belongs to Emacs itself rather than Org-mode. Are you aware of existing templating facilities? http://emacs-template.sourceforge.net/ Call the configured editor application on the new file. If invoked with Ctrl-u , allow the user to specify what editor to run on the file, e.g. inkscape, or killustrator on svg files. Does something like this already exists? Start from C-h f org-open-file. Indeed! Best, -- Bastien
[O] can orgmode sort tables based on time stamps?
I have a table and ended up somehow inserting a table entry between two existing table entries and wanted to insert at the bottom of that table. The sort(1) command shows the time stamped records in proper order, but leaves the table headers below records and above a backup versioning section.
Re: [O] [BABEL, PATCH] ob-maxima.el add variables and graphical output
Hi Sergey, Litvinov Sergey slitvi...@gmail.com writes: I would like to contribute an extension of babel maxima support. The patch adds variables and graphical output (currently limited to png files). There is a file with examples (tests). It is not ERTed yet. org-mode/testing/examples/ob-maxima-test.org I let Eric S. handle this patch. Btw, the first line of lisp/ob-maxima.el says the filename is ob-babel-maxima.el -- Eric, can you fix this as well? Thanks, -- Bastien
Re: [O] problems with org-edit-special and python
Hi Dirk, Dirk Scharff dirk.scha...@googlemail.com writes: When I try to run org-edit-special (C-c ') in the python source block an empty buffer is opened as expected. My mini-buffer states the following: Language mode 'python-mode' fails with: Invalid file-name. I cannot reproduce this with Emacs 24.0.50.1 and Org 7.6. I guess this is a problem with your version of Emacs -- can you tell us what version do you use? Thanks, -- Bastien
Re: [O] Bug: inconsistent docstring of org-agenda-prefix-format [7.6 (release_7.6.143.g98b7c)]
Tassilo Horn tass...@member.fsf.org writes: The docstring of `org-agenda-prefix-format' is heavily broken. I just pushed a fix, I tried to improve the docstring. Let me know if this is clearer and less buggy. Thanks! -- Bastien
Re: [O] Bug: Refiling is broken [7.6 (release_7.6.132.gd8bd4)]
Bernt Hansen be...@norang.ca writes: Bulk refiling from the agenda (B r) no longer works for me. Git bisect identifies the following commit as the problem: Thanks for reporting this -- I've reverted the change. The feature was half-backed, as I didn't fully understand Jason's request. I'll work on a more correct patch. -- Bastien
Re: [O] Bug: inconsistent docstring of org-agenda-prefix-format [7.6 (release_7.6.143.g98b7c)]
Bastien b...@altern.org writes: Hi Bastien, The docstring of `org-agenda-prefix-format' is heavily broken. I just pushed a fix, I tried to improve the docstring. Let me know if this is clearer and less buggy. Yes, it's much better now. :-) Bye, Tassilo
Re: [O] org-edit-file ?
Dov I believe you would like to follow a link to svg file and have it open in one of the many external editors depending on whether the link is visited (read-only) or opened (edit). May be others could help you here. What you need to begin with is a home-brewed elisp command to view or edit a file based on (say a prefix modifier). Read on. Hints below. I'm not sure that emacs is the best tool to e.g. generate a template png file of a given size and given background, or a svg file. I don't think there are any svg or png experts here in this list and I don't think any of us understand what you mean by template. Please provide an example. I still don't feel that any of the proposed solutions solves the file:foo.svg edit scenario, where foo.svg does not exist yet. We never proposed solutions. We only gave you hints. Your questions are better suited to help-gnu-emacs list. See URL: https://lists.gnu.org/archive/html/help-gnu-emacs/ Also I would rather differentiate between opening a few for viewing and opening a file for editing, as e.g. eog and inkview are good for viewing, whereas gimp and inkscape are better for editing. You are the expert here and you have right to feel the way you feel - unsatisifed and disappointed. Not many of us use eog, inkview, gimp or inkscape. At the minimum you should list how these apps open a given file - ie, the exact command line string to open a given file and then you can use `call-process' to launch the app. Jambunathan K. Regards, Dov On Thu, Jul 21, 2011 at 12:32, Bastien b...@altern.org wrote: Hi Dov, Jambunathan K kjambunat...@gmail.com writes: have a a new command org-edit-file that would: If the file does not exist, copy a skeleton file to the filename or generate the skeleton file by an emacs-function or by calling an external application. Such a functionality belongs to Emacs itself rather than Org-mode. Are you aware of existing templating facilities? http://emacs-template.sourceforge.net/ Call the configured editor application on the new file. If invoked with Ctrl-u , allow the user to specify what editor to run on the file, e.g. inkscape, or killustrator on svg files. Does something like this already exists? Start from C-h f org-open-file. Indeed! Best, -- Bastien
Re: [O] problems with org-edit-special and python
Hi Bastien, On Thu, Jul 21, 2011 at 11:58 AM, Bastien b...@altern.org wrote: Hi Dirk, Dirk Scharff dirk.scha...@googlemail.com writes: When I try to run org-edit-special (C-c ') in the python source block an empty buffer is opened as expected. My mini-buffer states the following: Language mode 'python-mode' fails with: Invalid file-name. I cannot reproduce this with Emacs 24.0.50.1 and Org 7.6. I guess this is a problem with your version of Emacs -- can you tell us what version do you use? I use Emacs 24.0.50 and Orgmode 7.6 (from git repository as of yesterday) and the python setup package from http://gabrielelanaro.github.com/emacs-for-python/ . I used this to quickly enable me to continue working on my thesis (involving some python coding), while migrating to emacs. I played around with this issue again today and found out, that it doesn't happen if i comment out the initialization of the python setup i mentioned in my .emacs . So I guess its some incompatibility introduced in this package. I think I'll abandon the package and create my own setup when I find the time to do it. I guess this issue doesn't have anything to do with org-mode after all, I'm sorry for any inconvenience I may have caused. regards, Dirk.
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Daniel E. Doherty ded-...@ddoherty.net writes: Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. what about using a minute rate? (/ 50 60.0) 0.83 so: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 57.27 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2 cheers, Giovanni
[O] [bug] org block not correctly exported to LaTeX
Hello, when the follwing org-file is exported to LaTeX, #+BEGIN_ORG and #+END_ORG is inserted in the tex-file. --8schnipp-8--- * Testing output perl to org #+srcname: TestingPerlToOrg #+begin_src perl :exports results :results output org print Hello World\n; #+end_src #+results: TestingPerlToOrg #+BEGIN_ORG Hello World #+END_ORG --8schnapp-8--- Relevant part of the tex-file: --8schnipp-8--- #+begin_src latex \#+begin\_{}org Hello World \#+end\_{}org #+end_src --8schnapp-8--- If the #+BEGIN_ORG ... #+END_ORG starts at column 0 it is not inserted into the tex-file. Other blocks (e.g. #+BEGIN_EXAMPLE ... #+END_EXAMPLE) are not inserted if they are indented. Tested with: emacs 23.2.1 on WinXP Org-mode version 7.6 (release_7.6.75.g67e9) (local patch to makefile) Thanks again for org-mode. More and more of my collegues are starting to use it! -- Mit freundlichen Grüßen / Best regards Thomas Holst DGS-EC/ESE4 Tel. +49 (711) 811-40681 PC-Fax +49 (711) 811-5182208
Re: [O] Bug: Refiling is broken [7.6 (release_7.6.132.gd8bd4)]
Bastien b...@altern.org writes: Bernt Hansen be...@norang.ca writes: Bulk refiling from the agenda (B r) no longer works for me. Git bisect identifies the following commit as the problem: Thanks for reporting this -- I've reverted the change. The feature was half-backed, as I didn't fully understand Jason's request. I'll work on half-baked ? a more correct patch. Thanks -- Bernt
Re: [O] Remove current heading from refile targets?
Hi Jason, Jason Dunsmore ja...@dunsmor.com writes: It looks like it removes top-level headings from the refile targets, but nothing below that. For example, in the org file below, place the cursor on Subheading1 and type M-x org-refile. The current heading will be in the list of refile targets. * Heading1 ** Subheading1 * Heading2 Okay, I didn't get it first. Please test this attached patch against latest git. There are two limitations: 1. It works only if `org-refile-use-cache' is nil. 2. Targets are not excluded when refiling is done from the agenda (see Bernt's bug report about this) I think those limitations are okay -- but let me know what you think. From eeeb24bd41a021708d0d22ae183c8c409fc322a9 Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date: Thu, 21 Jul 2011 15:03:59 +0200 Subject: [PATCH] org-refile: exclude current heading and subheadings from targets * org.el (org-refile-get-targets): new optional argument `excluded-entries' to exclude entries from the targets. (org-refile-get-location): From an org-mode buffer, exclude current heading and subheadings from the list of target when org-refile-use-cache is nil. Thanks to Jason Dunsmore for this idea. --- lisp/org.el | 37 +++-- 1 files changed, 23 insertions(+), 14 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index ac60e4e..51b8615 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -1095,8 +1095,8 @@ for the duration of the command. (plain-list-item . auto)) Should `org-insert-heading' leave a blank line before new heading/item? The value is an alist, with `heading' and `plain-list-item' as CAR, -and a boolean flag as CDR. The cdr may also be the symbol `auto', in -which case Org will look at the surrounding headings/items and try to +and a boolean flag as CDR. The cdr may also be the symbol `auto', in +which case Org will look at the surrounding headings/items and try to make an intelligent decision whether to insert a blank line or not. For plain lists, if the variable `org-empty-line-terminates-plain-lists' is @@ -1983,7 +1983,7 @@ Interested libraries should add to this list.) (defcustom org-loop-over-siblings-within-active-region-p nil Shall some commands act upon siblings in the active region? -The list of commands is: +The list of commands is: - `org-schedule' - `org-deadline' - `org-archive-subtree' @@ -4712,7 +4712,7 @@ This variable is set by `org-before-change-function'. (defvar org-inhibit-blocking nil) ; Dynamically-scoped param. (defvar org-table-buffer-is-an nil) -;; org-outline-regexp ought to be a defconst but is let-binding +;; org-outline-regexp ought to be a defconst but is let-binding ;; in some places -- e.g. see the macro org-with-limited-levels (defvar org-outline-regexp \\*+ ) (defconst org-outline-regexp-bol ^\\*+ ) @@ -7740,12 +7740,12 @@ and still retain the repeater to cover future instances of the task. (with-temp-buffer (insert template) (goto-char (point-min)) - (while (re-search-forward + (while (re-search-forward ^[ \t]*CLOCK:.*$ (save-excursion (org-end-of-subtree t t)) t) (replace-match ) (kill-whole-line)) (goto-char (point-min)) - (while (re-search-forward + (while (re-search-forward (concat ^[ \t]*: (regexp-opt org-drawers) :[ \t]*$) nil t) (mapc (lambda(d) (org-remove-empty-drawer-at d (point))) org-drawers)) (setq template (buffer-substring (point-min) (point-max @@ -10153,7 +10153,7 @@ on the system \/user@host:\. org-refile-cache (and set (org-refile-cache-check-set set) set) -(defun org-refile-get-targets (optional default-buffer) +(defun org-refile-get-targets (optional default-buffer excluded-entries) Produce a table with refile targets. (let ((case-fold-search nil) ;; otherwise org confuses TODO as a kw and Todo as a word @@ -10216,7 +10216,8 @@ on the system \/user@host:\. (save-match-data (or (funcall org-refile-target-verify-function) (throw 'next t - (when (looking-at org-complex-heading-regexp) + (when (and (looking-at org-complex-heading-regexp) + (not (member (match-string 4) excluded-entries))) (setq level (org-reduced-level (- (match-end 1) (match-beginning 1))) txt (org-link-display-format (match-string 4)) @@ -10352,8 +10353,8 @@ the *old* location.) The list of target headings is compiled using the information in `org-refile-targets', which see. -At the target location, the entry is filed as a subitem of the target -heading. Depending on `org-reverse-note-order', the new subitem will +At the target location, the entry is filed as a subitem of the target +heading. Depending on `org-reverse-note-order', the new subitem will either be the first or the last subitem. If there is an active region, all entries in that region will be moved. @@ -10374,7 +10375,7 @@ See also
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Daniel E. Doherty ded-...@ddoherty.net writes: That's certainly thinking outside the box, but I don't think it works. Actually, Daniel you don't have to *think*, you've to demonstrate that it works or that it doesn't /tertium non datur/. In your example, 1:09 represents 1/9th in calc's fraction mode, not 1+9/60 which it would have to in order to compute with it. Not with GNU/Emacs 23.3 calc. If you bill 50 per 1 hour, you bill (/ 50 60.0 ) is 0.83 per minute. If you bill 1 hour + 9 minutes it is 69 minutes (* 0.83 69) 57.266 = 57.27 isn't it ? And the fifth column in my table (see below) does compute 57.27 or not? You may say: Ah but this is only one example, you've been lucky! I reply, what about the second line? (* (+ 120 48) 0.83) = 139.44 Calc is *really* smart, isn't it? cheers, Giovanni Regards, At Thu, 21 Jul 2011 13:07:28 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. what about using a minute rate? (/ 50 60.0) 0.83 so: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 57.27 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2
[O] [feature request] tangle on org-special-edit
Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (the-block-to-be-included-here ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the code-block should be tangled to a temporary file. Then a buffer should be stated with that file loaded in its native language environment. If you'd do that the code would really be executable and therefore debuggable and analyzable with the tools the programming language provides. You'll have to keep track on the tangled code blocks then. I think some info in comments should do the trick. I uploaded a mockup of what I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf best regards, Dirk.
Re: [O] Suggestion: Stackoverflow for Orgmode
Bastien b...@altern.org writes: Something like ask.orgmode.org with a StackOverflow interface would be very nice. I think this would be a great way to start a community-driven FAQ. Why don't we use the org-mode tag on stackoverflow.com: http://stackoverflow.com/questions/tagged/org-mode It's a fully-featured site with an already-established Org community (http://stackoverflow.com/tags/org-mode/topusers). We wouldn't have to upgrade the server's memory to support a new site, nor would we have to constantly update a web app due to security issues. Here's an Atom feed for new org-mode questions: http://stackoverflow.com/feeds/tag?tagnames=org-modesort=newest I created a redirect for ask.orgmode.org: http://ask.orgmode.org What do you think? Should we link to ask.orgmode.org from orgmode.org?
Re: [O] Remove current heading from refile targets?
Bastien b...@altern.org writes: Hi Jason, Jason Dunsmore ja...@dunsmor.com writes: It looks like it removes top-level headings from the refile targets, but nothing below that. For example, in the org file below, place the cursor on Subheading1 and type M-x org-refile. The current heading will be in the list of refile targets. * Heading1 ** Subheading1 * Heading2 Okay, I didn't get it first. Please test this attached patch against latest git. Looks good except for one quirk. If the heading has a TODO keyword, it isn't excluded. Example: --8---cut here---start-8--- * Heading1 ** TODO Subheading1 * Heading2 --8---cut here---end---8--- Thanks!
Re: [O] Suggestion: Stackoverflow for Orgmode
On Thu, Jul 21, 2011 at 3:58 PM, Jason Dunsmore emacs-orgm...@dunsmor.com wrote: Bastien b...@altern.org writes: Something like ask.orgmode.org with a StackOverflow interface would be very nice. I think this would be a great way to start a community-driven FAQ. Why don't we use the org-mode tag on stackoverflow.com: http://stackoverflow.com/questions/tagged/org-mode This looks like the perfect solution without all the headaches. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Or if you want to preserve your rounding until the last point in your calculations: | Test 1 | | | 1:15 | 62.50 | 76 | | Test 2 | | | 2:48 | 140.00 | 169 | #+TBLFM: $5=$4*(50/60.0);Df2::$6=$4+1 Since 50/60 is 0.8333... by rounding it prematurely you lose some of the precision in your billing. Column 6 is just there to confirm for me what org does when you add or multiply times. It counts the minutes as units and properly adjusts the hours to be 60*# of hours. So you just have to account for that when billing On Thu, Jul 21, 2011 at 09:37, Giovanni Ridolfi giovanni.rido...@yahoo.itwrote: Daniel E. Doherty ded-...@ddoherty.net writes: That's certainly thinking outside the box, but I don't think it works. Actually, Daniel you don't have to *think*, you've to demonstrate that it works or that it doesn't /tertium non datur/. In your example, 1:09 represents 1/9th in calc's fraction mode, not 1+9/60 which it would have to in order to compute with it. Not with GNU/Emacs 23.3 calc. If you bill 50 per 1 hour, you bill (/ 50 60.0 ) is 0.83 per minute. If you bill 1 hour + 9 minutes it is 69 minutes (* 0.83 69) 57.266 = 57.27 isn't it ? And the fifth column in my table (see below) does compute 57.27 or not? You may say: Ah but this is only one example, you've been lucky! I reply, what about the second line? (* (+ 120 48) 0.83) = 139.44 Calc is *really* smart, isn't it? cheers, Giovanni Regards, At Thu, 21 Jul 2011 13:07:28 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. what about using a minute rate? (/ 50 60.0) 0.83 so: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 57.27 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2
[O] [babel] escaping of links when result from source code block?
Hi when evaluating the code blocks below, I would expect [[file:./cv.cls]] , but I get [[file:./cv\.cls]], i.e. the . is escaped and does not work. When not using [[]], the . is not escaped - is this a bug, or how can I circumvent the esaping? Cheers, Rainer #+begin_src R :results org paste([[file:./cv.cls]]) #+end_src #+results: #+BEGIN_ORG [[file:\./cv\.cls]] #+END_ORG #+begin_src sh :results org echo [[file:./cv.cls]] #+end_src #+results: #+BEGIN_ORG [[file:\./cv\.cls]] #+END_ORG #+begin_src R :results org paste(file:./cv.cls) #+end_src #+results: #+BEGIN_ORG file:./cv.cls #+END_ORG -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug
Re: [O] Suggestion: Stackoverflow for Orgmode
On Thu, Jul 21, 2011 at 9:15 AM, suvayu ali fatkasuvayu+li...@gmail.com wrote: On Thu, Jul 21, 2011 at 3:58 PM, Jason Dunsmore emacs-orgm...@dunsmor.com wrote: Bastien b...@altern.org writes: Something like ask.orgmode.org with a StackOverflow interface would be very nice. I think this would be a great way to start a community-driven FAQ. Why don't we use the org-mode tag on stackoverflow.com: http://stackoverflow.com/questions/tagged/org-mode This looks like the perfect solution without all the headaches. :) That, and not sure anyone else noticed, but the org-mode area51 proposal was closed as a duplicate of Stack Overflow... so looks like this is the only remaining option :) The moderator suggested taking a look at this, http://blog.stackoverflow.com/2011/06/se-podcast-07/, which looks like it's proposing to do what has come up here -- follow things on S.O. via tags. John -- Suvayu Open source is the future. It sets us free.
[O] Archiving broken
Hello Nicolas, It looks like the latest commit broke org-archive-subtree: http://orgmode.org/w/?p=org-mode.git;a=commit;h=5b39df0523 I get the following error when I try to archive anything: if: The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway I checked out the previous commit (71f654a182) and the problem is gone. Regards, Jason
Re: [O] Remove current heading from refile targets?
Jason Dunsmore ja...@dunsmor.com writes: Looks good except for one quirk. If the heading has a TODO keyword, it isn't excluded. Example: * Heading1 ** TODO Subheading1 * Heading2 Please test this second patch over the previous one. From 04a43208d096e792aea68efadc5df95fcbb7d94b Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date: Thu, 21 Jul 2011 16:51:12 +0200 Subject: [PATCH 2/2] org-refile: exclude current (sub)heading(s) even if they start with a TODO keyword. (org-get-heading): New optional argument to return heading with no TODO keyword. (org-refile-get-location): Use this new argument. --- lisp/org.el | 26 ++ 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 51b8615..2ba345b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6971,15 +6971,25 @@ This is important for non-interactive uses of the command. (hide-subtree))) (run-hooks 'org-insert-heading-hook) -(defun org-get-heading (optional no-tags) - Return the heading of the current entry, without the stars. +(defun org-get-heading (optional no-tags no-todo) + Return the heading of the current entry, without the stars. +When NO-TAGS is non-nil, don't include tags. +When NO-TODO is non-nil, don't include TODO keywords. (save-excursion (org-back-to-heading t) -(if (looking-at - (if no-tags - (org-re \\*+[ \t]+\\([^\n\r]*?\\)\\([ \t]+:[[:alnum:]:_@#%]+:[ \t]*\\)?$) - \\*+[ \t]+\\([^\r\n]*\\))) - (match-string 1) ))) +(cond + ((and no-tags no-todo) + (looking-at org-complex-heading-regexp) + (match-string 4)) + (no-tags + (looking-at \\*+[ \t]+\\([^\n\r]*?\\)\\([ \t]+:[[:alnum:]:_@#%]+:[ \t]*\\)?$) + (match-string 1)) + (no-todo + (looking-at (concat \\*+[ \t]+ org-todo-regexp + + \\([^\n\r]*?[ \t]+:[[:alnum:]:_@#%]+:[ \t]*\\)?$)) + (match-string 2)) + (t (looking-at \\*+[ \t]+\\([^\r\n]*\\)) + (match-string 1) (defun org-heading-components () Return the components of the current heading. @@ -10504,7 +10514,7 @@ this function appends the default value from (org-map-tree (lambda() (setq excluded-entries - (append excluded-entries (list (org-get-heading t))) + (append excluded-entries (list (org-get-heading t t))) (setq org-refile-target-table (org-refile-get-targets default-buffer excluded-entries))) (unless org-refile-target-table -- 1.7.5.2 Thanks! -- Bastien
Re: [O] Archiving broken
Hello, Jason Dunsmore emacs-orgm...@dunsmor.com writes: It looks like the latest commit broke org-archive-subtree: http://orgmode.org/w/?p=org-mode.git;a=commit;h=5b39df0523 I get the following error when I try to archive anything: if: The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway I checked out the previous commit (71f654a182) and the problem is gone. Indeed. I think it is fixed now. Thanks for the quick report. Regards, -- Nicolas Goaziou
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Jonathan Leech-Pepin jonathan.leechpe...@gmail.com writes: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:15 | 62.25 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2 Or if you want to preserve your rounding until the last point in your calculations: | Test 1 | | | 1:15 | 62.50 | 76 | | Test 2 | | | 2:48 | 140.00 | 169 | #+TBLFM: $5=$4*(50/60.0);Df2::$6=$4+1 Since 50/60 is 0.8333... by rounding it prematurely you lose some of the precision in your billing. yes, you're right. Thanks for pointing it out, Jonathan Giovanni
Re: [O] Remove current heading from refile targets?
Bastien b...@altern.org writes: Jason Dunsmore ja...@dunsmor.com writes: Looks good except for one quirk. If the heading has a TODO keyword, it isn't excluded. Example: * Heading1 ** TODO Subheading1 * Heading2 Please test this second patch over the previous one. That seems to work perfectly. Thanks again Bastien.
Re: [O] [dev] org-indent-mode patch
Hello, Carsten Dominik carsten.domi...@gmail.com writes: On 13.3.2011, at 17:21, Nicolas wrote: I'd like to submit the following org-indent-mode patch for testing. It implements two things: 1. It indents correctly text when using visual-line-mode; 2. It removes the idle timer previous implementation was using, which means it won't refresh indentation more often than necessary. Unfortunately, there is a price to pay: 1. Initialization will be much longer for large Org files, but I've added a message to the user saying so. 2. It is a bit slower, as the algorithm has more things to check. Last point is obviously my main concern. Although not noticeable on my not-so-recent laptop, I don't know how it behaves on old machines. Initial testing seems to show that this works well, very nice. The delay at the beginning is long, and it might be annoying when org pulls in a buffer just to look something up, without org-inhibit-startup scoped into the file loading. Maybe one could arrange for the initialization to happen just before the buffer is first *displayed* (I do not know if that is possible). Just one nitpicking: The idle timer may force updating when not necessary - but using after-change-functions will update after each character inserted. So in fact your code might be updating more often at least while typing - maybe not while looking at the buffer and jumping around. I am not a fast typist, but maybe fast typists will notice significant delays, in particular while writing inside a very long section? In order to circumvent the slow process at initialization, I've implemented an asynchronous initialization. Thus, one can open the buffer and start to write in it before initialization is complete. Once it is done, everything else is synchronous again. I think it is a good compromise. It needs testing though. Thus, if anyone is interested, I'll gladly hear his feedback. The branch is located at : git://github.com/ngz/org-mode-lists.git indent-patch-no-timer Regards, -- Nicolas Goaziou
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
At Thu, 21 Jul 2011 15:37:55 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: That's certainly thinking outside the box, but I don't think it works. Actually, Daniel you don't have to *think*, you've to demonstrate that it works or that it doesn't /tertium non datur/. In your example, 1:09 represents 1/9th in calc's fraction mode, not 1+9/60 which it would have to in order to compute with it. Not with GNU/Emacs 23.3 calc. If you bill 50 per 1 hour, you bill (/ 50 60.0 ) is 0.83 per minute. Agreed. If you bill 1 hour + 9 minutes it is 69 minutes (* 0.83 69) 57.266 = 57.27 isn't it ? It is. And the fifth column in my table (see below) does compute 57.27 or not? Not. At least when I do it. Here's what I get after recalcing your example. | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 0.09 | | Letter of Discovery Deficiencies | | | 2:48 | 0.03 | #+TBLFM: $5=$4*0.83;Df2 Maybe I have a different mode setting or something. You seem to have the $4, or 1:09, being interpreted as 69, but I have it being interpreted as a calc fraction, i.e., 1/9 = 0.. So 0.83 * 0.11 gives me 0.9259, which rounds to 0.9. You may say: Ah but this is only one example, you've been lucky! I would. I reply, what about the second line? (* (+ 120 48) 0.83) = 139.44 Calc is *really* smart, isn't it? Undoubtedly. Apart from Org, my favorite features of Emacs. I'm waiting for vi to duplicate that functionality. Thanks for taking the time to look at this. cheers, Giovanni Regards, At Thu, 21 Jul 2011 13:07:28 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. what about using a minute rate? (/ 50 60.0) 0.83 so: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 57.27 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Hi, Which version of Org are you using? 7.6 (archive from org) with very few org-related customizations (Emacs-Starter-Kit along with one or two small changes) behaved properly. I took your original table and updated the formulas and the values behaved as whole numbers rather than fractions | Headline | Time| | | | |---+-+---+--+---| | *Total time* | *28:09* | | | 0 | |---+-+---+--+---| | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 0 | | Activities | | 28:09 | | 0 | | DONE Activity Log | | | 0:05 | 250 | | DONE Draft Complaint for Damages | | | 5:40 | 17000 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 1600 | | DONE [#A] Motion for Appointment of Private Process Server | | | 1:24 | 4200 | | DONE [#A] File Affidavit of Service with Court | | | 0:25 | 1250 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 550 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 4150 | | Work on brief in opposition to motion to dismiss. | | | 3:03 | 9150 | | Prepared for Hearing | | | 0:24 | 1200 | | Hearing on Case Status (Div 25:7th Flr) 2010-10-19 Tue 09:00 | | | 0:30 | 1500 | | Hearing on Motion to Dismiss 2010-11-30 Tue 09:00 | | | 1:15 | 3750 | | Hearing on Motion to Dismiss 2010-12-21 Tue 09:00 | | | 1:09 | 3450 | | Status Hearing 2011-01-25 Tue 09:00 | | | 1:31 | 4550 | | Status Hearing 2011-04-26 Tue 09:00 | | | 1:42 | 5100 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 200 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 300 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 14400 | | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 3450 | | Letter of Discovery Deficiencies | | | 2:48 | 8400 | #+TBLFM: $5=$4*50;Df2 Not sure where the issue might be in your case, however the formula should behave correctly. Jonathan On Thu, Jul 21, 2011 at 11:55, Daniel E. Doherty ded-...@ddoherty.netwrote: At Thu, 21 Jul 2011 15:37:55 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: That's certainly thinking outside the box, but I don't think it works. Actually, Daniel you don't have to *think*, you've to demonstrate that it works or that it doesn't /tertium non datur/. In your example, 1:09 represents 1/9th in calc's fraction mode, not 1+9/60 which it would have to in order to compute with it. Not with GNU/Emacs 23.3 calc. If you bill 50 per 1 hour, you bill (/ 50 60.0 ) is 0.83 per minute. Agreed. If you bill 1 hour + 9 minutes it is 69 minutes (* 0.83 69) 57.266 = 57.27 isn't it ? It is. And the fifth column in my table (see below) does compute 57.27 or not? Not. At least when I do it. Here's what I get after recalcing your example. | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 0.09 | | Letter of Discovery Deficiencies | | | 2:48 | 0.03 | #+TBLFM: $5=$4*0.83;Df2 Maybe I have a different mode setting or something. You seem to have the $4, or 1:09, being interpreted as 69, but I have it being interpreted as a calc fraction, i.e., 1/9 = 0.. So 0.83 * 0.11 gives me 0.9259, which rounds to 0.9. You may say: Ah but this is only one example, you've been lucky! I would. I reply, what about the second line? (* (+ 120 48) 0.83) = 139.44 Calc is *really* smart, isn't it? Undoubtedly. Apart from Org, my favorite features of Emacs. I'm waiting for vi to duplicate that functionality. Thanks for taking the time to look at this. cheers, Giovanni Regards, At Thu, 21 Jul 2011 13:07:28 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. what about using a minute rate? (/ 50 60.0) 0.83 so: | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 57.27 | | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | #+TBLFM: $5=$4*0.83;Df2
[O] Hyperlink handling broken
Hi guys, Hyperlink handling for org is kind of broken for me. Each time I click a hyperlink in an org file, it will create a new instance of Firefox. Does someone know how to change the browser (to Chrome, for example) and make it open subsequent links in the same browser instance, as tabs? Thanks in advance, - Marcelo.
Re: [O] Wrong type argument listp on export
Aankhen aank...@gmail.com writes: Hi, On Wed, Jul 20, 2011 at 16:36, Dirk Scharff dirk.scha...@googlemail.com wrote: I narrowed down my problem to the following short example: * My Test Block This is a test #+source testblock #+begin_src python :var x=3 :exports both :results output print x*x #+end_src executing the source-bock yields the correct result. When exporting this file however I get the folowing error: Wrong type argument: listp, 3 I can confirm this using Org-mode from git (d8bd43e). Enabling debugging shows that the problem occurs in ‘org-babel-sha1-hash’ when it tries to run ‘copy-seq’ on ‘(x . 3)’ at line 759. It doesn’t seem to be specific to Python—using ‘:var foo=bar’ seems to be what triggers it. Thanks Dirk for pointing out this problem and thanks Aankhen for isolating the offending line in the code. I've just pushed up a fix -- Eric Aankhen -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [BABEL, PATCH] ob-maxima.el add variables and graphical output
Bastien b...@altern.org writes: Hi Sergey, Litvinov Sergey slitvi...@gmail.com writes: I would like to contribute an extension of babel maxima support. The patch adds variables and graphical output (currently limited to png files). There is a file with examples (tests). It is not ERTed yet. org-mode/testing/examples/ob-maxima-test.org I let Eric S. handle this patch. Hi Sergey, Thanks for this patch, it looks like a definite improvement to Babel's maxima support. Given the size of the patch (well over 10 lines), I will hold this until the FSF process completes, at which point I will happily apply this to the code base. Btw, the first line of lisp/ob-maxima.el says the filename is ob-babel-maxima.el -- Eric, can you fix this as well? Fixed. Thanks -- Eric Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [feature request] tangle on org-special-edit
Dirk Scharff dirk.scha...@googlemail.com writes: Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (the-block-to-be-included-here ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the code-block should be tangled to a temporary file. Then a buffer should be stated with that file loaded in its native language environment. If you'd do that the code would really be executable and therefore debuggable and analyzable with the tools the programming language provides. You'll have to keep track on the tangled code blocks then. I think some info in comments should do the trick. I uploaded a mockup of what I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf Hi Dirk, If you would like to pop to a code block *with* the noweb references expanded try the `org-babel-expand-src-block' command, which is bound to C-c C-v v. This view of code blocks is not editable however because there would be no way to propagate edits back into the original code blocks -- consider an edit taking placed on the boundary between two code blocks, or multiple nested noweb references. There has been some interest in propagating changes back from tangled code to Org-mode blocks (search these list archives for the term detangle) however such functionality is currently not implemented -- an `org-babel-detangle' function does exist but is not fully functional. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [babel] escaping of links when result from source code block?
Hi Rainer, The leading [ makes the string result look like a list to Babel, so it is passed to the `read' function which then escapes the periods in the file name. You can inhibit this interpretation of the string by explicitly informing the code block that you will be returning a string with the :results scalar header argument. You may also want to look at the :results file header argument. Best -- Eric Rainer M Krug r.m.k...@gmail.com writes: Hi when evaluating the code blocks below, I would expect [[file:./cv.cls]] , but I get [[file:./cv\.cls]], i.e. the . is escaped and does not work. When not using [[]], the . is not escaped - is this a bug, or how can I circumvent the esaping? Cheers, Rainer #+begin_src R :results org paste([[file:./cv.cls]]) #+end_src #+results: #+BEGIN_ORG [[file:\./cv\.cls]] #+END_ORG #+begin_src sh :results org echo [[file:./cv.cls]] #+end_src #+results: #+BEGIN_ORG [[file:\./cv\.cls]] #+END_ORG #+begin_src R :results org paste(file:./cv.cls) #+end_src #+results: #+BEGIN_ORG file:./cv.cls #+END_ORG -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] Hyperlink handling broken
Am 21.07.2011 19:29, schrieb Marcelo de Moraes Serpa: Hi guys, Hyperlink handling for org is kind of broken for me. Each time I click a hyperlink in an org file, it will create a new instance of Firefox. Does someone know how to change the browser (to Chrome, for example) and make it open subsequent links in the same browser instance, as tabs? Thanks in advance, - Marcelo. Hi, as far as I know this is a general Emacs-issue, not an orgmode-issue; nevertheless, here's my (working) solution: In your ~/.emacs, insert this (or something similar): (setq browse-url-browser-function 'browse-url-generic browse-url-generic-program firefox) This opens a new Firefox-tab for me.
Re: [O] Hyperlink handling broken
Yes, sorry should have put OT. On Thu, Jul 21, 2011 at 12:36 PM, imi...@ymail.com imi...@ymail.com wrote: Am 21.07.2011 19:29, schrieb Marcelo de Moraes Serpa: Hi guys, Hyperlink handling for org is kind of broken for me. Each time I click a hyperlink in an org file, it will create a new instance of Firefox. Does someone know how to change the browser (to Chrome, for example) and make it open subsequent links in the same browser instance, as tabs? Thanks in advance, - Marcelo. Hi, as far as I know this is a general Emacs-issue, not an orgmode-issue; nevertheless, here's my (working) solution: In your ~/.emacs, insert this (or something similar): (setq browse-url-browser-function 'browse-url-generic browse-url-generic-program firefox) This opens a new Firefox-tab for me.
[O] [PATCH 1/2] Fix error with %e agenda prefix format when there is no effort set
`org-agenda-prefix-format' has un undocumented format %e for Effort, which is broken. it throws error on entries without effort property. Following patch fixes that problem. TODO: make agenda redraw current line when `org-agenda-set-effort' sets a new effort From c06b376737142eff5cdec71e8fc8129552aba673 Mon Sep 17 00:00:00 2001 From: Max Mikhanosha m...@openchat.com Date: Wed, 6 Jul 2011 20:05:06 -0400 Subject: [PATCH 1/2] Fix error with %e agenda prefix format when there is no effort set --- lisp/org-agenda.el |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index cd09a74..f34ffae 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5511,7 +5511,9 @@ Any match of REMOVE-RE will be removed from TXT. (error nil))) (when effort (setq neffort (org-duration-string-to-minutes effort) - effort (setq effort (concat [ effort ] ) + effort (setq effort (concat [ effort ]) + ;; prevent erroring out with %e format when there is no effort + (or effort (setq effort )) (when remove-re (while (string-match remove-re txt) @@ -5549,6 +5551,7 @@ Any match of REMOVE-RE will be removed from TXT. (= (length category) org-prefix-category-max-length)) (setq category (substring category 0 (1- org-prefix-category-max-length) ;; Evaluate the compiled format + (assert effort) (setq rtn (concat (eval org-prefix-format-compiled) txt)) ;; And finally add the text properties -- 1.7.3.4
[O] [PATCH 2/2] Log yesterday item today, better org-extend-today-until
Started using habits, which are a great addition. My only problem with habits is that for some of them such as workout or cardio, I just don't have the energy to get to the computer in the evening and mark them done. Instead I do most of my planning for the day in the first 20 minutes or so of the morning, catching up, refiling, etc. But there is no way to mark the habit DONE yesterday, and have the correct consistency graph shown, without manual editing of LOGGING drawer. There is already unfinished support for backdating stuff via org-extend-today-until variable, but it does not work in the log-note time-stamp. Following patch fixes that oversight, and adds two new commands: (org-done-yesterday) and (org-agenda-done-yesterday), which are exactly as their today counterparts, but all the timestamps and CLOSED line will be marked as of 23:59 yesterday. From daebd6ca8f75ad3266075a8b3ec5d3a1f411ecfb Mon Sep 17 00:00:00 2001 From: Max Mikhanosha m...@openchat.com Date: Thu, 21 Jul 2011 13:20:01 -0400 Subject: [PATCH 2/2] Make `org-extend-today-until' variable affect log notes, and CLOSED: line. (org-done-yesterday), (org-agenda-done-yesterday): new functions --- lisp/org.el | 42 +- 1 files changed, 37 insertions(+), 5 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 611672b..b0f113a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10918,6 +10918,32 @@ nil or a string to be used for the todo mark. ) (defvar org-agenda-headline-snapshot-before-repeat) +(defun org-current-effective-time () + Return current time adjusted for `org-extend-today-until' variable + (let* ((ct (org-current-time)) + (dct (decode-time ct)) + (ct1 + (if ( (nth 2 dct) org-extend-today-until) + (encode-time 0 59 23 (1- (nth 3 dct)) (nth 4 dct) (nth 5 dct)) +ct))) +ct1)) + +(defun org-todo-yesterday (optional arg) + Like `org-todo' but the time of change will be 23:59 of yesterday + (interactive P) + (let* ((hour (third (decode-time + (org-current-time + (org-extend-today-until (1+ hour))) +(org-todo arg))) + +(defun org-agenda-todo-yesterday (optional arg) + Like `org-agenda-todo' but the time of change will be 23:59 of yesterday + (interactive P) + (let* ((hour (third (decode-time + (org-current-time + (org-extend-today-until (1+ hour))) +(org-agenda-todo arg))) + (defun org-todo (optional arg) Change the TODO state of an item. The state of an item is given by a keyword at the start of the heading, @@ -11097,7 +11123,7 @@ For calling through lisp, arg is also interpreted in the following way: (org-add-planning-info nil nil 'closed)) (when (and now-done-p org-log-done) ;; It is now done, and it was not done before - (org-add-planning-info 'closed (org-current-time)) + (org-add-planning-info 'closed (org-current-effective-time)) (if (and (not dolog) (eq 'note org-log-done)) (org-add-log-setup 'done state this 'findpos 'note))) (when (and state dolog) @@ -11638,7 +11664,7 @@ This function is run automatically after each state change to a DONE state. ((equal (match-string 1 ts) .) ;; Shift starting date to today (org-timestamp-change - (- (time-to-days (current-time)) (time-to-days time)) + (- (org-today) (time-to-days time)) 'day)) ((equal (match-string 1 ts) +) (let ((nshiftmax 10) (nshift 0)) @@ -11909,6 +11935,11 @@ be removed. (defvar org-log-note-extra nil) (defvar org-log-note-window-configuration nil) (defvar org-log-note-return-to (make-marker)) +(defvar org-log-note-effective-time nil + Remembered current time so that dynamically scoped +`org-extend-today-until' affects tha timestamps in state change +log) + (defvar org-log-post-message nil Message to be displayed after a log note has been stored. The auto-repeater uses this.) @@ -11976,7 +12007,8 @@ EXTRA is additional text that will be inserted into the notes buffer. org-log-note-state state org-log-note-previous-state prev-state org-log-note-how how - org-log-note-extra extra) + org-log-note-extra extra + org-log-note-effective-time (org-current-effective-time)) (add-hook 'post-command-hook 'org-add-log-note 'append) (defun org-skip-over-state-notes () @@ -12047,10 +12079,10 @@ EXTRA is additional text that will be inserted into the notes buffer. (cons %U user-full-name) (cons %t (format-time-string (org-time-stamp-format 'long 'inactive) - (current-time))) + org-log-note-effective-time)) (cons %T (format-time-string
Re: [O] [feature request] tangle on org-special-edit
On Thu, Jul 21, 2011 at 7:19 PM, Eric Schulte schulte.e...@gmail.comwrote: Dirk Scharff dirk.scha...@googlemail.com writes: Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (the-block-to-be-included-here ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the code-block should be tangled to a temporary file. Then a buffer should be stated with that file loaded in its native language environment. If you'd do that the code would really be executable and therefore debuggable and analyzable with the tools the programming language provides. You'll have to keep track on the tangled code blocks then. I think some info in comments should do the trick. I uploaded a mockup of what I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf Hi Dirk, If you would like to pop to a code block *with* the noweb references expanded try the `org-babel-expand-src-block' command, which is bound to C-c C-v v. This view of code blocks is not editable however because there would be no way to propagate edits back into the original code blocks -- consider an edit taking placed on the boundary between two code blocks, or multiple nested noweb references. There has been some interest in propagating changes back from tangled code to Org-mode blocks (search these list archives for the term detangle) however such functionality is currently not implemented -- an `org-babel-detangle' function does exist but is not fully functional. Best -- Eric Hi Eric, thanks for your answer. org-babel-expand-src-block doesn't seem to work for me (it does the same as C-c ' in my case). The noweb references are not expanded. Could be a local problem here, I don't know. Have you tried it recently? Tangeling the file works fine. I didn't search the List for detangleing for now. I'll look into it later. But I'll still drop my thoughts on it: I'm well aware of the detangleing problems you point out. But if you know you are not to edit between boundaries of two code blocks and still do it its your own fault right? Well not even that, its just not defined how org-mode should handle it right now. As for nested code blocks I don't see a problem at all. Consider the following (already tangled) file with block markers: !!mark_begin_outer_block_1 do something here !!mark_end_outer_block_1 you shouldn't edit here! (but it could be a new block added to the org file if you do couldn't it?) !!mark_begin_outer_block_2 do something in the outer block edit something here !!mark_begin_inner_block do something in the inner block edit inner block !!mark_end_inner_block do something else !!mark_end_outer_block_2 From the theoretical point of view I don't see an issue here besides the region I marked with you shouldn't edit here! . I guess you could even tell emacs to protect the !!marks against modification if you wanted. If I had knowledge in Lisp programming and time I'd consider giving it a shot. But as I'm writing my thesis in the moment (and time is of the essence) my hobby-programming-time is very limited. I requested the feature because I think C-c ' isn't as useful as it could be right now. (And of cause I could realy make great use of this for my thesis writing ;)). Its still useful to me but I have to tangle the code to debug it and detangle the changes manualy, what pretty much defeats the purpose in my opinion. regards, Dirk.
Re: [O] [feature request] tangle on org-special-edit
Hi Dirk, Using the simple attached Org-mode file, #+source: def-something #+begin_src sh SOMETHING=nothing #+end_src #+begin_src sh def-something echo $SOMETHING #+end_src When I call C-c C-v ' in the second code block I get a buffer containing --8---cut here---start-8--- def-something echo $SOMETHING --8---cut here---end---8--- but when I call C-c C-v v in the second code block I get a buffer containing --8---cut here---start-8--- SOMETHING=nothing echo $SOMETHING --8---cut here---end---8--- with the noweb reference expanded. I would suggest making sure you are on the latest version of Org-mode, and if you still don't get this behavior then I would recommend starting emacs with the -Q option to see if part of your config is changing this behavior. I agree with your points below, I think the main complication is introduced when the restriction to work w/o comments is added (to allow working with non-lp/org users). The main limiting factor right now is simply developer time to implement and test the debugging behavior you've described below. You may want to try the existing org-babel-detangle function, as (if you don't have nested blocks) it should be sufficient to be useful in your current situation. Best -- Eric Dirk Scharff dirk.scha...@googlemail.com writes: On Thu, Jul 21, 2011 at 7:19 PM, Eric Schulte schulte.e...@gmail.comwrote: Dirk Scharff dirk.scha...@googlemail.com writes: Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (the-block-to-be-included-here ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the code-block should be tangled to a temporary file. Then a buffer should be stated with that file loaded in its native language environment. If you'd do that the code would really be executable and therefore debuggable and analyzable with the tools the programming language provides. You'll have to keep track on the tangled code blocks then. I think some info in comments should do the trick. I uploaded a mockup of what I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf Hi Dirk, If you would like to pop to a code block *with* the noweb references expanded try the `org-babel-expand-src-block' command, which is bound to C-c C-v v. This view of code blocks is not editable however because there would be no way to propagate edits back into the original code blocks -- consider an edit taking placed on the boundary between two code blocks, or multiple nested noweb references. There has been some interest in propagating changes back from tangled code to Org-mode blocks (search these list archives for the term detangle) however such functionality is currently not implemented -- an `org-babel-detangle' function does exist but is not fully functional. Best -- Eric Hi Eric, thanks for your answer. org-babel-expand-src-block doesn't seem to work for me (it does the same as C-c ' in my case). The noweb references are not expanded. Could be a local problem here, I don't know. Have you tried it recently? Tangeling the file works fine. I didn't search the List for detangleing for now. I'll look into it later. But I'll still drop my thoughts on it: I'm well aware of the detangleing problems you point out. But if you know you are not to edit between boundaries of two code blocks and still do it its your own fault right? Well not even that, its just not defined how org-mode should handle it right now. As for nested code blocks I don't see a problem at all. Consider the following (already tangled) file with block markers: !!mark_begin_outer_block_1 do something here !!mark_end_outer_block_1 you shouldn't edit here! (but it could be a new block added to the org file if you do couldn't it?) !!mark_begin_outer_block_2 do something in the outer block edit something here !!mark_begin_inner_block do something in the inner block edit inner block !!mark_end_inner_block do something else !!mark_end_outer_block_2 From the theoretical point of view I don't see an issue here besides the region I marked with you shouldn't edit here! . I guess you could even tell emacs to protect the !!marks against modification if you wanted. If I had knowledge in Lisp programming and time I'd consider giving it a shot. But as I'm writing my thesis in the moment (and time is of the essence) my hobby-programming-time is very limited. I requested the feature because I think C-c ' isn't as useful as it could be right now. (And of cause I could realy make great use of this for my thesis writing ;)). Its still useful to me but I have to tangle the code to debug it
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Thanks, Jonathan. That was it. I updated to 7.6 and now all is well. At Thu, 21 Jul 2011 12:34:15 -0400, Jonathan Leech-Pepin wrote: Hi, Which version of Org are you using? 7.6 (archive from org) with very few org-related customizations (Emacs-Starter-Kit along with one or two small changes) behaved properly. I took your original table and updated the formulas and the values behaved as whole numbers rather than fractions | Headline | Time | | | | | ---+-+---+--+--- | | *Total time* | *28:09* | | | 0 | | ---+-+---+--+--- | | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 0 | | Activities | | 28:09 | | 0 | | DONE Activity Log | | | 0:05 | 250 | | DONE Draft Complaint for Damages | | | 5:40 | 17000 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 1600 | | DONE [#A] Motion for Appointment of Private Process Server | | | 1:24 | 4200 | | DONE [#A] File Affidavit of Service with Court | | | 0:25 | 1250 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 550 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 4150 | | Work on brief in opposition to motion to dismiss. | | | 3:03 | 9150 | | Prepared for Hearing | | | 0:24 | 1200 | | Hearing on Case Status (Div 25:7th Flr) 2010-10-19 Tue 09:00 | | | 0:30 | 1500 | | Hearing on Motion to Dismiss 2010-11-30 Tue 09:00 | | | 1:15 | 3750 | | Hearing on Motion to Dismiss 2010-12-21 Tue 09:00 | | | 1:09 | 3450 | | Status Hearing 2011-01-25 Tue 09:00 | | | 1:31 | 4550 | | Status Hearing 2011-04-26 Tue 09:00 | | | 1:42 | 5100 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 200 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 300 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 14400 | | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 3450 | | Letter of Discovery Deficiencies | | | 2:48 | 8400 | #+TBLFM: $5=$4*50;Df2 Not sure where the issue might be in your case, however the formula should behave correctly. Jonathan On Thu, Jul 21, 2011 at 11:55, Daniel E. Doherty ded-...@ddoherty.net wrote: At Thu, 21 Jul 2011 15:37:55 +0200, Giovanni Ridolfi wrote: Daniel E. Doherty ded-...@ddoherty.net writes: That's certainly thinking outside the box, but I don't think it works. Actually, Daniel you don't have to *think*, you've to demonstrate that it works or that it doesn't /tertium non datur/. In your example, 1:09 represents 1/9th in calc's fraction mode, not 1+9/60 which it would have to in order to compute with it. Not with GNU/Emacs 23.3 calc. If you bill 50 per 1 hour, you bill (/ 50 60.0 ) is 0.83 per minute. Agreed. If you bill 1 hour + 9 minutes it is 69 minutes (* 0.83 69) 57.266 = 57.27 isn't it ? It is. And the fifth column in my table (see below) does compute 57.27 or not? Not. At least when I do it. Here's what I get after recalcing your example. | Argo Status Hearing 2011-06-28 Tue 09:00 | | | 1:09 | 0.09 | | Letter of Discovery Deficiencies | | | 2:48 | 0.03 | #+TBLFM: $5=$4*0.83;Df2 Maybe I have a different mode setting or something. You seem to have the $4, or 1:09, being interpreted as 69, but I have it being interpreted as a calc fraction, i.e., 1/9 = 0.. So 0.83 * 0.11 gives me 0.9259, which rounds to 0.9. You may say: Ah but this is only one example, you've been lucky! I
Re: [O] [BUG] Changing TODO states sometimes modifies the schedulingof the next heading
Nicolas Goaziou n.goaziou at gmail.com writes: Would you mind telling me if the following patch fixes your problem? If so, I'll apply it to the code base. Yes, it seems to work with the test file I mentioned previously in the thread. I'm a bit suprised it took so long until someone fixed the problem though it was a major bug (changing scheduling of items unintentionally), the problem was well analyzed and the solution was simple. Anyway, thanks for the fix. Now I can remove my defadvice workaround from my setup as it apparently is no longer needed.
Re: [O] convert html file into orgmode .org file?
#secure method=pgpmime mode=sign Puneeth Chaganti puncha...@gmail.com writes: Org-mode cannot import html files. But, you could try using Pandoc[1] for this. [1] - http://johnmacfarlane.net/pandoc/ There is also an Emacs mode for pandoc: http://user.uni-frankfurt.de/~kremers/pandoc-mode.html Charles -- Why use Windows, since there is a door? (By fac...@galileo.rhein-neckar.de, Andre Fachat)
[O] [patch] Re: HTML Postamble is inside Content DIV
Hi Pierre, Bastien et al., Pierre de Buyl wrote: Le 8 juil. 11 à 09:36, Sebastien Vauban a écrit : Here is thus my proposition for a better div-structured HTML. There are only four parts required in the HTML for all the magic to work with the CSS: - The first part is a container div (content, by default) that surrounds everything. - Inside that are three more parts: + a preamble (in a div, if the user wants it), + a div body and + a postamble (in a div, if the user wants it). Any objection for applying this patch? Not at all. After off-line discussion with Bastien, here is the updated proposition -- and patch! There is no global DIV anymore directly inside the body, as there is already (in CSS) a virtual DIV called #body... Inside the body tags, 3 DIV: - preamble (useful for adding a static menu, outside of the content DIV) - content (by default, see org-export-html-content-div) - postamble Preamble and postamble DIV are only inserted if they're not void. The content DIV (name free to be customized) will always be inserted. Any comment or objection? Best regards, Seb -- Sebastien Vauban diff --git a/lisp/org-html.el b/lisp/org-html.el index 7bb8b61..8aff1c6 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -614,11 +614,6 @@ with a link to this URL. (const :tag Keep internal css nil) (string :tag URL or local href))) -(defcustom org-export-html-before-content-div - Arbitrary HTML code placed before div id=\content\. - :group 'org-export-html - :type 'string) - (defcustom org-export-html-content-div content The name of the container DIV that holds all the page contents. :group 'org-export-html @@ -1300,8 +1295,6 @@ lang=\%s\ xml:lang=\%s\ /head body %s -div id=\%s\ -%s (format (or (and (stringp org-export-html-xml-declaration) @@ -1317,8 +1310,6 @@ lang=\%s\ xml:lang=\%s\ date author description keywords style mathjax - org-export-html-before-content-div - org-export-html-content-div (if (or link-up link-home) (concat (format org-export-html-home/up-format @@ -1330,6 +1321,7 @@ lang=\%s\ xml:lang=\%s\ ;; insert html preamble (when (plist-get opt-plist :html-preamble) (let ((html-pre (plist-get opt-plist :html-preamble))) + (insert div id=\preamble\) (cond ((stringp html-pre) (insert (format-spec html-pre `((?t . ,title) (?a . ,author) @@ -1343,8 +1335,13 @@ lang=\%s\ xml:lang=\%s\ org-export-html-preamble-format)) (cadr (assoc en org-export-html-preamble-format))) `((?t . ,title) (?a . ,author) - (?d . ,date) (?e . ,email) + (?d . ,date) (?e . ,email)) + (insert /div\n))) + ;; begin wrap around body + (insert (format \ndiv id=\%s\ org-export-html-content-div))) + + ;; insert body (if (and org-export-with-toc (not body-only)) (progn (push (format h%d%s/h%d\n @@ -1748,8 +1745,11 @@ lang=\%s\ xml:lang=\%s\ (when bib (insert \n bib \n))) - ;; export html postamble (unless body-only + ;; end wrap around body + (insert /div\n) + + ;; export html postamble (let ((html-post (plist-get opt-plist :html-postamble)) (email (mapconcat (lambda(e) @@ -1759,19 +1759,18 @@ lang=\%s\ xml:lang=\%s\ (creator-info (concat Org version org-version with Emacs version (number-to-string emacs-major-version + (when (plist-get opt-plist :html-postamble) + (insert \ndiv id=\postamble\) (cond ((stringp html-post) - (insert div id=\postamble\\n) (insert (format-spec html-post `((?a . ,author) (?e . ,email) (?d . ,date) (?c . ,creator-info) - (?v . ,html-validation-link - (insert /div)) + (?v . ,html-validation-link) ((functionp html-post) (funcall html-post)) ((eq html-post 'auto) ;; fall back on default postamble - (insert div id=\postamble\\n) (when (plist-get opt-plist :time-stamp-file) (insert p class=\date\ (nth 2 lang-words) : date /p\n)) (when (and (plist-get opt-plist :author-info) author) @@ -1782,22 +1781,22 @@ lang=\%s\ xml:lang=\%s\ (insert p class=\creator\ (concat Org version org-version with Emacs version (number-to-string emacs-major-version) /p\n))) - (insert html-validation-link \n/div)) + (insert html-validation-link \n)) (t - (insert div id=\postamble\\n) (insert (format-spec (or (cadr (assoc (nth 0 lang-words) org-export-html-postamble-format)) (cadr (assoc en org-export-html-postamble-format))) `((?a . ,author) (?e . ,email) (?d . ,date) (?c . ,creator-info) - (?v . ,html-validation-link - (insert /div)) + (?v . ,html-validation-link)) + (insert /div) + ))) (if org-export-html-with-timestamp (insert org-export-html-html-helper-timestamp)) - (unless body-only
Re: [O] Wrong type argument listp on export
Hi Eric, thanks again for your support. I pulled again from git (release_7.6.146.g6b389). I'm still having difficulties with this. I'll attach your something.org example from earlier in a slightly modified version to fit this case. something.org Description: Binary data When I C-c C-e A on this file i still get the same error. I'm not good in using debug-on-error yet (and I don't know Lisp at all…), so I'll just paste the trace below this for now. Best regards, Dirk. Debugger entered--Lisp error: (wrong-type-argument listp 3) copy-seq((x . 3)) #[(G28402 G28403 arg) A\203 \303A!\202A\211\205[\304!\205$ :?\205$ G\305U?\205[ \203@\306\235\203\307\nJ!\310\\202[ ;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[ )\207 [arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results :exports) mapconcat identity split-string ] 7](cl-var--28400-- cl-var--28401-- (:var x . 3)) apply(#[(G28402 G28403 arg) A\203 \303A!\202A\211\205[\304!\205$ :?\205$ G\305U?\205[ \203@\306\235\203\307\nJ!\310\\202[ ;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[ )\207 [arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results :exports) mapconcat identity split-string ] 7] cl-var--28400-- cl-var--28401-- (:var x . 3)) (lambda (rest --cl-rest--) (apply #[(G28402 G28403 arg) A\203 \303A!\202A\211\205[\304!\205$ :?\205$ G\305U?\205[ \203@\306\235\203\307\nJ!\310\\202[ ;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[ )\207 [arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results :exports) mapconcat identity split-string ] 7] (quote cl-var--28400--) (quote cl-var--28401--) --cl-rest--))((:var x . 3)) #[(G28404 G28405 arg) J !\211\205 \303\304\n\)\207 [G28405 arg normalized format %S] 4](cl-var--28400-- cl-var--28401-- (:var x . 3)) apply(#[(G28404 G28405 arg) J !\211\205 \303\304\n\)\207 [G28405 arg normalized format %S] 4] cl-var--28400-- cl-var--28401-- (:var x . 3)) (lambda (rest --cl-rest--) (apply #[(G28404 G28405 arg) J !\211\205 \303\304\n\)\207 [G28405 arg normalized format %S] 4] (quote cl-var--28400--) (quote cl-var--28401--) --cl-rest--))((:var x . 3)) mapcar((lambda (rest --cl-rest--) (apply #[(G28404 G28405 arg) J !\211\205 \303\304\n\)\207 [G28405 arg normalized format %S] 4] (quote cl-var--28400--) (quote cl-var--28401--) --cl-rest--)) ((:cache . no) (:colname-names) (:comments . ) (:exports . both) (:hlines . no) (:noweb . no) (:padline . ) (:padnewline . yes) (:result-params replace) (:result-type . value) (:results . replace) (:rowname-names) (:session . none) (:shebang . ) (:tangle . no) (:var x . 3))) org-babel-sha1-hash((sh echo $x ((:cache . no) (:colname-names) (:comments . ) (:exports . both) (:hlines . no) (:noweb . no) (:padline . ) (:padnewline . yes) (:result-params replace) (:result-type . value) (:results . replace) (:rowname-names) (:session . none) (:shebang . ) (:tangle . no) (:var x . 3)) nil 0)) org-babel-exp-src-block(#(echo $x 0 7 (fontified t font-lock-fontified t line-prefix #( 0 2 (face org-indent)) wrap-prefix #( 0 2 (face org-indent #(sh 0 2 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(:exports 0 8 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(both 0 4 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(:var 0 4 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(x=3 0 3 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t))) apply(org-babel-exp-src-block #(echo $x 0 7 (fontified t font-lock-fontified t line-prefix #( 0 2 (face org-indent)) wrap-prefix #( 0 2 (face org-indent (#(sh 0 2 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(:exports 0 8 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(both 0 4 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(:var 0 4 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t)) #(x=3 0 3 (wrap-prefix #( 0 2 (face org-indent)) line-prefix #( 0 2 (face org-indent)) font-lock-fontified t fontified t byte-code(\306\307\211\211\211\211\211\211\211\211\211\211*+,-./\310\311!\2110\205)\311K1\312\216\311\313M\210eb\210`\3142\3152\307\306#\203@\316\2243\316\2254\317\320!G
Re: [O] [feature request] tangle on org-special-edit
Sorry, I forgot to forward this Mail to the list. regards, Dirk. Anfang der weitergeleiteten E-Mail: Von: Dirk Scharff dirk.scha...@googlemail.com Betreff: Re: [O] [feature request] tangle on org-special-edit Datum: 21. Juli 2011 22:32:13 MESZ An: Eric Schulte schulte.e...@gmail.com Hi Eric, playing with your file I found out that setting :noweb to yes does the trick. It doesn't work here without setting it. It was set to tangle in the file I tested this with, which seemed the problem. Thank you for helping me with this. I still got problems with :vars on exporting, but I'll answer to the other mail for this to not mix the threads up. As for the detangeling part: Its theoretically impossible to do that without comments. There is no reliable way to tell which block is which (after it was edited) without some sort of reference in the file. Some sort of probabilistic method could yield somewhat useable results but I'd go for determinism (with comments) here. Am 21.07.2011 um 21:10 schrieb Eric Schulte: Hi Dirk, Using the simple attached Org-mode file, #+source: def-something #+begin_src sh SOMETHING=nothing #+end_src #+begin_src sh def-something echo $SOMETHING #+end_src When I call C-c C-v ' in the second code block I get a buffer containing --8---cut here---start-8--- def-something echo $SOMETHING --8---cut here---end---8--- but when I call C-c C-v v in the second code block I get a buffer containing --8---cut here---start-8--- SOMETHING=nothing echo $SOMETHING --8---cut here---end---8--- with the noweb reference expanded. I would suggest making sure you are on the latest version of Org-mode, and if you still don't get this behavior then I would recommend starting emacs with the -Q option to see if part of your config is changing this behavior. I agree with your points below, I think the main complication is introduced when the restriction to work w/o comments is added (to allow working with non-lp/org users). The main limiting factor right now is simply developer time to implement and test the debugging behavior you've described below. You may want to try the existing org-babel-detangle function, as (if you don't have nested blocks) it should be sufficient to be useful in your current situation. Best -- Eric Dirk Scharff dirk.scha...@googlemail.com writes: On Thu, Jul 21, 2011 at 7:19 PM, Eric Schulte schulte.e...@gmail.comwrote: Dirk Scharff dirk.scha...@googlemail.com writes: Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (the-block-to-be-included-here ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the code-block should be tangled to a temporary file. Then a buffer should be stated with that file loaded in its native language environment. If you'd do that the code would really be executable and therefore debuggable and analyzable with the tools the programming language provides. You'll have to keep track on the tangled code blocks then. I think some info in comments should do the trick. I uploaded a mockup of what I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf Hi Dirk, If you would like to pop to a code block *with* the noweb references expanded try the `org-babel-expand-src-block' command, which is bound to C-c C-v v. This view of code blocks is not editable however because there would be no way to propagate edits back into the original code blocks -- consider an edit taking placed on the boundary between two code blocks, or multiple nested noweb references. There has been some interest in propagating changes back from tangled code to Org-mode blocks (search these list archives for the term detangle) however such functionality is currently not implemented -- an `org-babel-detangle' function does exist but is not fully functional. Best -- Eric Hi Eric, thanks for your answer. org-babel-expand-src-block doesn't seem to work for me (it does the same as C-c ' in my case). The noweb references are not expanded. Could be a local problem here, I don't know. Have you tried it recently? Tangeling the file works fine. I didn't search the List for detangleing for now. I'll look into it later. But I'll still drop my thoughts on it: I'm well aware of the detangleing problems you point out. But if you know you are not to edit between boundaries of two code blocks and still do it its your own fault right? Well not even that, its just not defined how org-mode should handle it right now. As for nested code blocks I don't see a problem at all. Consider the following (already tangled) file with block
Re: [O] Wrong type argument listp on export
Dirk Scharff dirk.scha...@googlemail.com wrote: Hi Eric, thanks again for your support. I pulled again from git (release_7.6.146.g6b389). I'm still having difficulties with this. I'll attach your something.org example from earlier in a slightly modified version to fit this case. When I C-c C-e A on this file i still get the same error. Did you reload org or restart emacs? Do you have old/stale .elc files? I exported your something.org to html using an earlier version and got the error you describe, but I then pulled, M-x org-reload and re-exported, this time with no problem. Nick Org-mode version 7.6 (release_7.6.146.g6b389)
Re: [O] Wrong type argument listp on export
Hi, thanks for pointing that out, while I pulled, used make and restarted emacs, I skipped on a make clean before compiling again. I recompiled org-mode again (this time with clean) and it works now. Am 21.07.2011 um 22:55 schrieb Nick Dokos: Dirk Scharff dirk.scha...@googlemail.com wrote: Hi Eric, thanks again for your support. I pulled again from git (release_7.6.146.g6b389). I'm still having difficulties with this. I'll attach your something.org example from earlier in a slightly modified version to fit this case. When I C-c C-e A on this file i still get the same error. Did you reload org or restart emacs? Do you have old/stale .elc files? I exported your something.org to html using an earlier version and got the error you describe, but I then pulled, M-x org-reload and re-exported, this time with no problem. Nick Org-mode version 7.6 (release_7.6.146.g6b389)
Re: [O] Was tj3 -- tikz gantt chart
On Tue, Nov 9, 2010 at 3:46 AM, Eric S Fraga ucec...@ucl.ac.uk wrote: John Hendy jw.he...@gmail.com writes: Hi Eric, While I like tj3, I was looking around for something on tikz/gantt and found something from the pgf mailing list I thought I'd pass along. Check it out. [1] Thanks for the link. My own code was based on this snippet of tikz code actually; I just forgot to give a proper attribution blush. [snip] All of these would be nice. The format of the table I defined is sufficient to enable dependency representation as well, by the way. I look forward to your improvements! Eric (Fraga) (and whoever else), I was just revisiting this as I'd like to get a bit better about longer-ish term planning of projects (I have a horrid habit of procrastination and not taking bite-sized chunks at a time along the way). I looked into taskjuggler again, but I can't figure out what the status is on tj3 and org-mode. I see some dead-end conversations but nothing that seems for sure implemented and I'm not a big fan of tj2. In any case, it looks like *just* after this discussion, something a bit more formal came about for gantt charts and TikZ. I thought you and others might be interested in it: http://wiki.contextgarden.net/Gantt-tikz It looks like a summary/walkthrough of this package: http://www.martin-kumm.de/tex_gantt_package.php It looks quite reasonable and seems to be as advanced as I'd need for the moment -- just something to track progress and map action paths through a project. Anyway, let me know what you think and if you think org-mode could be adapted to export via that or pull together the necessary info to generate such a chart based on tags or properties. I haven't done much with that. Let me know your thoughts! John Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.02trans (release_7.3.29.gd96c.dirty)
[O] wolfram's computable document format
http://www.wolfram.com/cdf/ Looks nice, and could be very interesting to orgmoders.
Re: [O] org-edit-file ?
Dov Grobgeld dov.grobg...@gmail.com writes: I'm not sure that emacs is the best tool to e.g. generate a template png file of a given size and given background, or a svg file. I still don't feel that any of the proposed solutions solves the file:foo.svg edit scenario, where foo.svg does not exist yet. Also I would rather differentiate between opening a few for viewing and opening a file for editing, as e.g. eog and inkview are good for viewing, whereas gimp and inkscape are better for editing. I used to do what you request on a dayly base creating SVGs from GPX-Data. I Use a special link type: [[track:((12.0399212 14.919293)(32.12394 15.342345))FILE.svg][Name of track]] See https://github.com/SebastianRose/org-osm/blob/de4634518c8dd7713ff702412cfc7ae89852a074/org-osm-link.el and follow the function `osm-org-link-follow'. If the SVG-Map for the track does not exist, it calls code from https://github.com/SebastianRose/org-osm/blob/de4634518c8dd7713ff702412cfc7ae89852a074/osm-maps.el to create it. It's seems a bit complicated in that example, as the name and size of the resulting SVG image depends on the area, customized zoom factor a.s.o. but this second file boils down to approx. 50 lines for your use case. Either a PNG (not tested for a long time - I don't think it works) or an SVG (I use this on a dayly basis) is created, depending on your choice. You'll need image-magick to create PNGs while SVG is a simple text (XML) format, so emacs should be as good as any tool to create it. The track is drawn on top of background-images I download from Openstreetmap.org (customize google-maps if you like those better) in the function `osm-draw-track'. That's where your SVG-template would come to life. Once that file exists, it's easy to open it an editor. The function mentioned first calls `osm-org-image-viewer-function' which in turn opens the prepared image: In your case (provided inkscape is in your path): binxhUP8DvJdL.bin Description: application/emacs-lisp and don't forget to share the results :) Best wishes Sebastian
Re: [O] org-edit-file ?
Sebastian Rose sebastian_r...@gmx.de writes: Dov Grobgeld dov.grobg...@gmail.com writes: I'm not sure that emacs is the best tool to e.g. generate a template png file of a given size and given background, or a svg file. I still don't feel that any of the proposed solutions solves the file:foo.svg edit scenario, where foo.svg does not exist yet. Also I would rather differentiate between opening a few for viewing and opening a file for editing, as e.g. eog and inkview are good for viewing, whereas gimp and inkscape are better for editing. I used to do what you request on a dayly base creating SVGs from GPX-Data. I Use a special link type: I think you nailed the entire story. Will you teach me how to read people's mind over internet? I think OP should have just explained what he is trying to achieve in simple English instead of starting with what the solution would look like (as indicated by the subject chosen by him). My guess is that the OP is new to elisp. Anyways, I hope OP is happy now or has something concrete to work with. Jambunathan K.
[O] org-timestamp-up/down broken in tip
With latest git I can only press S-up or S-down on the time part of the timestamp once, after changing the time it moves point to the closing bracket, and doing another S-up or S-down changes the date part instead of time. Example: with point on the 05 at the timestamp [2011-07-21 Thu 19:05] doing Shift-Up results in time correctly changed to 19:10, but point moves to the closing bracket. Next time you press S-Up it changes date, not time. Reverting following commit fixes the problem for me: commit fd0f8e10d1d3a339da9460d6c71283e85897c455 Author: Nicolas Goaziou n.goaz...@gmail.com Date: Thu Jul 21 11:48:35 2011 +0200 Fix bug with TODO states changes modifying scheduling of next headline * lisp/org.el (org-timestamp-change): some locales don't use the same length for date abbreviations. Set a marker at origin in case length of new timestamp is different.
Re: [O] Wrong type argument listp on export
Eric Schulte schulte.eric at gmail.com writes: I've just pushed up a fix -- Eric Thanks for fixing this. -Luke
[O] Input on organization of files for multiple projects?
Hi, I've debated this before tangentially, but having used org-mode for more than a year, now, I'd like to revisit this with some more formal inquiries. [1] I just finished a mid-phase review for one of my projects and will also be interviewing for a potential new position in my company, and this has made me want to regroup and see if my use of org-mode is what it could/should be. My main method has been: - one file per month ~/org/-mmMMM.org (~/org/2011-07Jul.org) --- at the end of a year, I dump all the month files into ~/org/archive_.org - my notes look like so: #+begin_example * [date-stamp] ** Something I did :proj_tag: Notes about what it was, summary of things, or sub-level todo items ** todo [/] Something with some sub-steps :proj_tag: - [ ] step 1 - [ ] step 2 - [ ] step 3 ** Some data I collected :proj_tag: | a table | for my data | | etc | etc | #+end_example In any case, this works pretty well, but I think I'm becoming more and more sensitive to the fact that I'm not as interested in just tracking journal type entries. I now have bigger projects that are more coherent and on-going vs. just supporting other people's projects and noting what I contributed and test results. I find more often that I used C-a s to search for something and end up in a file a couple months back with some open todo items that I need to take care of. But then I run across and update or new data... and I find myself debating about whether to add it to 2011-05May.org or create a new timestamp for it in 2011-07Jul.org. So, I'm in the mood for input and suggestions. I've read a lot of the org tutorials (norang in particular), but not a lot quite put the whole picture out there -- how many files, how are they organized, etc. A lot of people describe having files per activity (writing, chores, research), but I'm in the same job, but contributing to perhaps 5 or so main projects as well as my ideas/brainstorming stuff (I work in RD engineering/product development). I'm hoping to hear some input about big picture structuring, keeping track of year+ long projects, todo flows, if files have ever gotten too big (a fear of mine), if and how you archive, etc. I've thought of going to a structure with proj1.org, proj2.org, etc. and then archiving into an archive_.org with main headings for each project as I finish todos or as things get old. Or maybe I won't need to. Maybe an org file can survive an entire project and just get archived for reference when I'm done working on it. I'll probably still need some kind of odds and ends file for things that don't belong to a specific project. Thanks for bearing with the rambling. Just itching for input and learning from those more experienced. Best regards, John --- [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-03/msg00390.html
Re: [O] DONE all subtasks recursively
Marcelo de Moraes Serpa celose...@gmail.com writes: *bump* Hey guys, if someone could guide me a hint on where I should look to hack some elisp code in order to do that, I'd be grateful ;) Cheers, Marcelo. --8---cut here---start-8--- (defun bh/mark-subtree-done () (interactive) (org-mark-subtree) (let ((limit (point))) (save-excursion (exchange-point-and-mark) (while ( (point) limit) (org-todo DONE) (outline-previous-visible-heading 1)) (org-todo DONE --8---cut here---end---8--- Then M-x bh/mark-subtree-done. This relies on the subtasks all being visible. You can enhance it so it handles folded tasks if needed. -Bernt On Mon, Jul 18, 2011 at 1:30 PM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Hey guys If I have a headline with children, like this: * Project ** TODO Task ** TODO Task ** SubProject *** TODO Task *** TODO Task Does org have any functionality that allows me to automatically close (Change TODO-DONE, put DONE when TODO is not available (in the case of Projects)) automatically and recursively for each child if I close the main parent headline? Thanks in advance, - Marcelo. -- Bernt
Re: [O] Input on organization of files for multiple projects?
John Hendy jw.he...@gmail.com writes: In any case, this works pretty well, but I think I'm becoming more and more sensitive to the fact that I'm not as interested in just tracking journal type entries. I now have bigger projects that are more coherent and on-going vs. just supporting other people's projects and noting what I contributed and test results. I find more often that I used C-a s to search for something and end up in a file a couple months back with some open todo items that I need to take care of. But then I run across and update or new data... and I find myself debating about whether to add it to 2011-05May.org or create a new timestamp for it in 2011-07Jul.org. So, I'm in the mood for input and suggestions. I've read a lot of the org tutorials (norang in particular), but not a lot quite put the whole picture out there -- how many files, how are they organized, etc. A lot of people describe having files per activity (writing, chores, research), but I'm in the same job, but contributing to perhaps 5 or so main projects as well as my ideas/brainstorming stuff (I work in RD engineering/product development). I'm hoping to hear some input about big picture structuring, keeping track of year+ long projects, todo flows, if files have ever gotten too big (a fear of mine), if and how you archive, etc. I've thought of going to a structure with proj1.org, proj2.org, etc. and then archiving into an archive_.org with main headings for each project as I finish todos or as things get old. Or maybe I won't need to. Maybe an org file can survive an entire project and just get archived for reference when I'm done working on it. I'll probably still need some kind of odds and ends file for things that don't belong to a specific project. Hi John, I've been using org-mode for 5+ years now and I'm still using the same structuring for tasks and notes that I originally set up. I have a miscellaneous todo.org that I dump miscellaneous non-project tasks into. Diary stuff goes in diary.org (i d in the agenda) and anything that should be grouped together (for some definition of a group) lives in a separate org file. I archive old entries from X.org to X.org_archive monthly. I now dump org files into directories and the directories contribute to org-agenda-files (so new files just show up as the are created), and I can add/drop entire directories of org files from my agenda easily. This has the advantage that I'm free to split or consolidate org files anytime I want - the agenda will still find the entries as long as they are in directories that contribute to the agenda. If you have 5 main projects that are unrelated I'd probably have one org file for each project and group stuff in there in whatever order makes sense to you. I tend to keep project notes in project files. When notes for a project are generally useful I'll split that into a notes-only org-file by itself and publish the results to HTML. HTH, -- Bernt
Re: [O] wolfram's computable document format
On 07/21/2011 05:41 PM, David O'Toole wrote: http://www.wolfram.com/cdf/ Looks nice, and could be very interesting to orgmoders. Mathematica is required to make a CDF document and the required reader is at least 100 MB in size. I think Sage is a superior alternative. Scott Randby
Re: [O] Thesaurus terms as org tags -- feature request
Hi, Bastien, I think this would open up interesting possibilities if implemented. Taggroups should be nestable, so #+TAGGROUP: :colour: :red:green: #+TAGGROUP: :red: :crimson:scarlet: would make searches for colour would display entries with scarlet (perhaps this is self-evident, I don't know). Yours, Christian On 7/19/11 1:45 AM, Bastien wrote: Hi John, thanks for your input. What I'm thinking about is this simple idea: #+TAGGROUP: :colour: :red:green: in such a way that: 1. searches for :red: will continue to display entries with :red: 2. searches for :colour: will display entries with :red: and/or :green: Would this be useful already? Would this go into the right direction for solving your problem? Thanks,