[BUG] org-save-all-org-buffers reapplies startup visibility [9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)]
Summary: When calling `org-save-all-org-buffers` the initial visibility setting as specified in `org-startup-folded` or specified in =#+STARTUP: overview= will be applied to the org buffer in view. My usecase is that `org-save-all-org-buffers` is called in an idle timer and makes working on org files annoying, as the outline keeps changing all the time, for example after returning from an interrupting phonecall. To reproduce: - create two files: test.org: --8<---cut here---start->8--- #+SETUPFILE: ~/test-config.org * Header one Test header folding on save all buffers ** Header two This will collapse after calling org-save-all-org-buffers --8<---cut here---end--->8--- test-config.org; --8<---cut here---start->8--- #+STARTUP:overview --8<---cut here---end--->8--- - emacs -Q test.org - make sure the outline is unfolded - make a change so test.org is 'dirty' - M-x org-save-all-org-buffers Observed behaviour: The outline in test.org will collapse and only show 'Header one' Expected behaviour: Outline state does not change on calling `org-save-all-buffers` Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-10-03 Package: Org mode version 9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)
Re: [O] Jekyll and Pygments
> [William:] > Is there anyone on the list who uses Jekyll (the Ruby-based > static site > generator [1]) and has a way of writing in Org that works with the syntax > highlighting done with Pygments [2]? > I wrote a little blog [1] about it earlier this year. Perhaps that will be helpful to you. marcel [1] https://mrblog.nl/2015/03/22/completing-orgmode-based-jekyll.html -- Marcel van der Boom → mar...@hsdev.com +31·168·468·824 xmpp:mar...@hsdev.com | http://telegram.me/marcel http://hsdev.com
Re: [O] [PATCH] Add author and title to exported PDF properties
On wo 14-mei-2014 09:05 Nicolas Goaziou n.goaz...@gmail.com wrote: [...] + ?a (or (first (plist-get info :author)) ) + ?t (or (first (plist-get info :title)) ) The usual way to achieve this is to create an anonymous export back-end, derived from `latex', with `org-export-create-backend', and let it handle specially problematic objects. You then use it within `org-export-data-with-backend'. See `org-html--format-toc-headline' for an example. Are you saying 'author' and 'title' are problematic? How do they differ from, say 'subject'? Was this the reason they are not included by default in the PDF info? marcel signature.asc Description: PGP signature
Re: [O] [PATCH] Add author and title to exported PDF properties
On wo 14-mei-2014 14:48 Nicolas Goaziou n.goaz...@gmail.com wrote: [...] How do they differ from, say 'subject'? subject, which refers to :description property, only contains a single string, no Org syntax. OTOH, TITLE and AUTHOR keywords have their contents parsed and, as such, can contain parsed objects. E.g., | keyword | value | property value | |-+-+| | DESCRIPTION | some *text* | some *text* | | TITLE | some *text* | (some (bold ... text)) | See also `org-element-document-properties'. Thanks, this section made the click for me. I think I sort of assumed that 'LateX codes' in author and title were just going to be dropped by the hyperref package itself to produce the properties. I'm not sure I can find the time to produce a better patch, this is uncharted territory for me, so it will take some learning effort. Thanks again, marcel signature.asc Description: PGP signature
[O] [PATCH] Add author and title to exported PDF properties
* lisp/ox-latex.el (org-latex-template): add pdfauthor and pdftitle (org-latex-hyperref-template): add placeholders for author and title (org-latex-template): adjust default template with author and title This adds author and title to the pdf properties of the exported PDF file when using the LaTeX backend. --- lisp/ox-latex.el | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index cea21be..844f2cd 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -349,7 +349,7 @@ the toc:nil option, not to those generated with #+TOC keyword. :type 'string) (defcustom org-latex-hyperref-template - \\hypersetup{\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}}\n + \\hypersetup{\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c},\n pdfauthor={%a},\n pdftitle={%t}} Template for hyperref package options. Value is a format string, which can contain the following placeholders: @@ -357,6 +357,8 @@ Value is a format string, which can contain the following placeholders: %k for KEYWORDS line %d for DESCRIPTION line %c for CREATOR line + %a for AUTHOR line + %t for TITLE line Set it to the empty string to ignore the command completely. :group 'org-export-latex @@ -1216,6 +1218,8 @@ holding export options. (format-spec (plist-get info :latex-hyperref) (format-spec-make ?k (or (plist-get info :keywords) ) + ?a (or (first (plist-get info :author)) ) + ?t (or (first (plist-get info :title)) ) ?d (or (plist-get info :description)) ?c (if (plist-get info :with-creator) (plist-get info :creator) -- 1.9.1
[O] org-add-note in adapted workflow always wants to be the last action
Hi, I have written a snippet of code with the goal to ask me if I want to archive a TODO item when marking it DONE or CANCELLED. The code I have so far is this: #+BEGIN_SRC emacs-lisp (require 'org-habit) ;; I need a modified version of org-is-habit, which takes inheritance ;; in to account (defun mrb/org-is-habit-recursive-p (optional pom) Is the task at POM or point a habit, taking property inheritance into account? (equalp habit (org-entry-get (or pom (point)) STYLE t))) (defun mrb/archive-done-item() ;; Determine if the item went to the DONE/CANCELLED state ;; if so, ask to archive it, but skip habits which have ;; their own logic. (when (and (or (equal org-state DONE) (equal org-state CANCELLED)) (not (mrb/org-is-habit-recursive-p))) ;; Try to use a dialog box to ask for confirmation (setq last-nonmenu-event nil) (org-archive-subtree-default-with-confirmation))) ;; Run archive for the item that changed state (add-hook 'org-after-todo-state-change-hook 'mrb/archive-done-item) #+END_SRC The above works for marking items DONE. A dialog box pops up, I (usually) hit enter and continue. On marking items CANCELLED this does not work as expected because the CANCELLED state is defined with the '@' postfix like so: #+SEQ_TODO: WAITING TODO | DONE CANCELLED(@) What happens now is that I first get the question on whether to archive the item and after that I get asked to write a note. This seems to be the case because the note is handled by adding it to the post-command-hook through =org-add-log-setup= in the =org-todo= command. Is there anything I can do to reverse that order, i.e. Make sure that the archiving question comes last? My orgmode version is 8.1.1 Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Bug: org-archive-subtree should not include statitics counters for :ARCHIVE_OLPATH: [8.0.1 (release_8.0.1-10676-gd887b9 @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
On di 07-mei-2013 15:29 Carsten Dominik carsten.domi...@gmail.com wrote: On 7 mei 2013, at 15:12, Bastien b...@gnu.org wrote: Carsten Dominik carsten.domi...@gmail.com writes: I can reproduce this, and I agree that it might be useful to remove them when constructing the OLPATH. I would accept a patch to this effect. I just pushed a fix for this. Thanks you Bastien. Marcel, can you please verify the change? Thanks. Thanks! I ran a couple of quick testcases and they all went ok! marcel PS I first looked at the headers themselves in the archive and thought it didn't work when I realized I was supposed to look at the ARCHIVE_OLPATH property. It triggered the thought that it would make sense, to me, to have the statistics also filtered from the header on archiving? -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Bug: org-archive-subtree should not include statitics counters for :ARCHIVE_OLPATH: [8.0.1 (release_8.0.1-10676-gd887b9 @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
On ma 29-apr-2013 10:50 Marcel van der Boom mar...@hsdev.com wrote: When using org-archive-subtree, any statistic counters present in the header will be copied to the :ARCHIVE_OLPATH: property. Can anyone else reproduce this? Do I need to provide more information? Thx, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
[O] Bug: org-archive-subtree should not include statitics counters for :ARCHIVE_OLPATH: [8.0.1 (release_8.0.1-10676-gd887b9 @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
When using org-archive-subtree, any statistic counters present in the header will be copied to the :ARCHIVE_OLPATH: property. Example: The property is set to: ':ARCHIVE_OLPATH: Development [22%] [82/358]/Openobject tasks/OpenERP 7.x Interne HSD implementatie [31%] [35/112]' when the hierarchy is * Development [22%] [82/358] ** Openobject tasks *** OpenERP 7.x Interne HSD implementatie [31%] [35/112]' These statistics should not be copied to the property. Emacs : GNU Emacs 24.3.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-03-30 on mrb Package: Org-mode version 8.0.1 (release_8.0.1-10676-gd887b9 @ /home/mrb/dev/emacs/packages/org-mode/lisp/) -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
[O] Bug: ATTACH tag gets exported unconditonally to PDF [8.0-pre (release_8.0-pre-11014-gd195e8 @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
When exporting a subtree, I often use the attach functionality (C-c C-a) to attach files to a heading. This gives the heanding an :ATTACH: tag. When exporting such a subtree via latex to pdf, using org-export-dispatch (C-c e) the output in pdf contains the :ATTTACH: tag. If I use other tags on headings, they are not printed, which is what I expect to happen, given my configuration. Possibly related is that setting '#+EXPORT_EXCLUDE_TAGS: exclude' also does NOT hide the section having that tag if using a #SETUPFILE directive. It *does* work when setting the 'org-export-excluded-tags' variable directly, so I think this is a separate issue. marcel Emacs : GNU Emacs 24.3.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-03-30 on mrb Package: Org-mode version 8.0-pre (release_8.0-pre-11014-gd195e8 @ /home/mrb/dev/emacs/packages/org-mode/lisp/) -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Bug: SETUPFILE directive not working [8.0-pre (release_8.0-pre-10873-gafb59b @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
On vr 05-apr-2013 09:20 Bastien b...@altern.org wrote: This should now be fixed in master. Thanks for reporting this with all the details. Cool, thanks! This was the last hurdle for me before upgrading. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Bug: SETUPFILE directive not working [8.0-pre (release_8.0-pre-10873-gafb59b @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
On do 04-apr-2013 15:22 Carsten Dominik carsten.domi...@gmail.com wrote: I think the change is that you now need to put the file names into quotes. I am not entirely sure why, but I guess Nicolas had a reason for it. This does not make a difference for me. I should have been added that in the first place in the bug report. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Bug: SETUPFILE directive not working [8.0-pre (release_8.0-pre-10873-gafb59b @ /home/mrb/dev/emacs/packages/org-mode/lisp/)]
On do 04-apr-2013 18:57 Nicolas Goaziou n.goaz...@gmail.com wrote: Also, #+SETUPFILE directive has stopped working for me isn't very informative. Would you care to elaborate? Given the line: #+SETUPFILE: /path/to/settings.org in an orgmode buffer. C-c C-c on that line says Local setup has been refreshed but at least some of the settings do not get applied. Notably i have several lines in that 'settings.org' file like this: #+TAGS: { buy(b) sell(s) } build(u) fix(f) clean(n) or #+TAGS: call(c) check(e) mail(m) read(r) write(w) learn(l) The shortcuts nor grouping is available after refreshing the config. Also reloading org-mode or restarting Emacs does not make a difference. Trying the same setup with the minimal org loading as suggested on the Feedback page [1] shows the same behaviour. [1] http://orgmode.org/org.html#Feedback -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
[O] Logbook drawer entries make editing very slow
Hi, I'm using habit-style items a lot in my 'org' routine. A typical entry would look like this: #+BEGIN_SRC org *** TODO Do something daily SCHEDULED: 2013-02-20 wo .+1d :LOGBOOK: - State DONE from TODO [2013-02-19 di 14:01] - State DONE from TODO [2013-02-17 zo 12:39] ... [lots of entries here] ... - State DONE from TODO [2010-02-25 Thu 13:51] - State DONE from TODO [2010-02-10 Wed 15:19] :END: :PROPERTIES: :STYLE: habit :LAST_REPEAT: [2013-02-19 di 14:01] :CREATED: 2011-03-25 vr 12:33 :END: ...Some description... #+END I have all habits in a file habits.org which is part of the 'org-agenda-files' list. When editing entries in the habits.org file, for example changing the header, emacs CPU using goes to 100% and every keystroke takes 5-10 seconds. Apparently the long list of logbook entries is making org-mode do a lot of work. If I remove the logbook entries from a header, editing it becomes fast again I've run elp-instrument-package and the top lines in the results were: (while entering some text in the heading) Function name Call Count Elapsed Time Average Time -- org-self-insert-command 24 102.20533396 4.258817 org-indent-refresh-maybe96 102.19307239 1.0645111708 org-indent-add-properties 96 102.14709837 1.0640322747 org-at-item-p 49728 99.277038295 0.0019964011 org-list-in-valid-context-p 48768 98.348947434 0.0020166696 org-in-block-p 48768 98.188771636 0.0020133852 org-fix-tags-on-the-fly 24 76.427716178 3.1844881740 org-align-tags-here 24 76.427226749 3.1844677812 org-between-regexps-p 438912 74.150505545 0.0001689416 org-at-regexp-p 438912 3.2884631479 7.492...e-06 org-list-item-body-column 48768 1.3817966130 2.833...e-05 org-item-re 49728 0.1814685910 3.649...e-06 org-get-indentation 960 0.1036291090 0.0001079469 Is there anything I can do to improve performance. If possible I'd like to keep the logbook entries in the same file as the habits. Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] killing all contents of a headline
On Tue 19-Feb-2013 06:01 42 147 aeus...@gmail.com wrote: Title is self-explanatory. Is there a command that lets me place the cursor on a headline and delete its contents (i.e., all of its text)? If you have the subtree collapsed and with your point on the heading, 'org-kill-line' kills the heading plus the content below it. It is bound to C-k by default I think. So, a clever combination of 'org-cycle' and 'org-kill-line' could be combined to form one command to kill a heading and its contents, regardless of the collapsed state. hth marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
[O] Date/time prompt parses '3-2' as 'Month-Day', can I configure it to parse it as 'Day-Month' ?
Hi, The date/time prompt, as described at [1], helps me a lot to quickly go over items and (re-)schedule or put a deadline to them. It has bitten me a couple of times though where I typed '3-2' where my intention was to put it at the 'third of february' and ended up with something at the 'second of march'. Is there some way I could adapt the interpretation? The date format 'd-m-y' is wired into my hands apparently. Thx, marcel [1] http://orgmode.org/manual/The-date_002ftime-prompt.html -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Date/time prompt parses '3-2' as 'Month-Day', can I configure it to parse it as 'Day-Month' ?
On Tue 29-Jan-2013 21:00 Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Marcel van der Boom wrote: The date/time prompt, as described at [1], helps me a lot to quickly go over items and (re-)schedule or put a deadline to them. It has bitten me a couple of times though where I typed '3-2' where my intention was to put it at the 'third of february' and ended up with something at the 'second of march'. Is there some way I could adapt the interpretation? The date format 'd-m-y' is wired into my hands apparently. [...] Not tested, but I would try to play with: #+begin_src emacs-lisp (setq calendar-date-style 'iso) ;; or 'european #+end_src Thanks for the suggestion. It does not make a difference. A quick grep/glance in the org-mode code confirms that. Thanks again, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
[O] Can not get keybinding to work in org-agenda-mode
Hi, I use org-mime to mail subtrees from org-mode and have bound this to 'C-c m' I would like to be able to do the same thing from my agenda views, but somehow I can't get the keybinding to work. This is what I have: (defun m/ms-org-agenda () (interactive) (org-agenda-goto) (org-mime-subtree)) ;; This works (define-key org-mode-map [(control c) m] 'org-mime-subtree) ;; This does not (define-key org-agenda-mode-map [(control c) m] 'm/ms-org-agenda) When asking help about modes (C-h m) I see the keybinding listed: key binding --- --- ... C-c m m/ms-org-agenda ... I don't get any errors, other than 'C-c m is undefined' What am I missing here? Thx, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] Can not get keybinding to work in org-agenda-mode
On ma 05-nov-2012 13:43 Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: I don't get any errors, other than 'C-c m is undefined' What am I missing here? I experimented a bit and (define-key org-agenda-mode-map \C-cm 'm/ms-org-agenda) also seems to work. I don't understand what the difference is, if any. Marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] GTD - Natural Planning Model properties - add automatically
On zo 14-okt-2012 09:06 Chris Henderson henders...@gmail.com wrote: I would like the project to automatically inherit a few properties like: Purpose, Outcome, Todo's and also date when the project was added to the list. For the last bit I use org-expiry.el with a little glue. The idea I wanted to implement was that when a TODO/PROJECT item was created, a property with the current date should be inserted automatically. The main feature I was looking for was creating a list of incomplete items sorted or grouped by that date. org-expiry.el contains the function, 'org-expiry-insert-created', to insert a 'created' property. To have that work the way I wanted it I added an advice to two functions. One to 'org-insert-todo-heading' to have the created property inserted when creating an new todo heading. The other advices 'org-capture' to do the same when capturing new todo items. The snippet which does the above is here: https://gist.github.com/3910203 marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org
Re: [O] auto-push to mobile (but only when editing org buffer)
On di 14-aug-2012 19:10 Ken Mankoff mank...@gmail.com wrote: How can I wrap that to only run when the active buffer is in Org Mode? (run-at-time 00:10 10 (lambda () (if (eq major-mode 'org-mode) (org-mobile-push That works well. After reading run-at-time documentation, the 00:10 isn't ideal. I now use the following, which syncs files every 60 seconds starting 1 minute after launching emacs: (run-at-time 1 min 60 (lambda () (if (eq major-mode 'org-mode)(org-mobile-push Perhaps you will find https://gist.github.com/3111823 interesting. It contains a bit of code to do the org-mobile-push asynchronously (and notify me about it when done). This makes the push work in the background, in my case it can take quite a while, and not interfere with normal usage. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org smime.p7s Description: S/MIME cryptographic signature
[O] Commit bb2848 causes performance problems
commit bb28480169558a183fab2330476a49b4fb1aec46 causes major performance problems in my install. GNU Emacs 24.0.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6) The relevant change: diff --git a/lisp/org.el b/lisp/org.el index 587d298..f670787 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6301,6 +6301,8 @@ in special contexts. (org-list-set-item-visibility (point-at-bol) struct 'children) (org-show-entry) (show-children) + (when (memq 'org-cycle-hide-drawers org-cycle-hook) + (org-cycle-hide-drawers 'subtree)) ;; Fold every list in subtree to top-level items. (when (eq org-cycle-include-plain-lists 'integrate) (save-excursion I isolated this commit by using 'git bisect'. The problem is very noticeable on a reasonably large org file (about 15000 lines). The behaviour I am seeing is a delay in cursor movement (and cpu load increasing for the emacs process) when the point is on the higher outline levels. The delay is less when moving the point further down the tree, presumably because the subtree below that particular point gets smaller. By commenting out the two lines marked in the diff, the delay disappears completely. Do I have a configaration error, or is this a bug? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org smime.p7s Description: S/MIME cryptographic signature
Re: [O] Subtasks are blocked in todo-items of ordered projects. Bug?
On ma 20-jun-2011 19:37 Bernt Hansen be...@norang.ca wrote: Should the first task in a subproject of a project having the ':ORDERED:' property set to true be blocked from marking 'DONE'? If so, why? I think the answer is yes it should be blocked because the entire tree is blocked - the previous task needs to be DONE first. When the subtree is unblocked you can then complete the first task in the subtree. Ok, to get the behaviour I want, I could remove the 'TODO' keyword from the subproject. That will allow me to work on the subitems in parallel. Obvious disadvantage is that the subproject as such can only have a 'count' or 'percentage' but not a 'state' and thus cannot be tracked anymore. Any other suggestions for a way to work on subitems in parallel with the 'main tasks'? I'll spent some time digging if the wanted behaviour could be formulated as an option to set without disturbing the default behaviour. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org smime.p7s Description: S/MIME cryptographic signature
Re: [O] Subtasks are blocked in todo-items of ordered projects. Bug?
On di 21-jun-2011 07:30 Bernt Hansen be...@norang.ca wrote: You can also force the task state to DONE with a triple prefix (C-u C-u C-u C-c C-t d) which will ignore the blocking rules for this state change. I think I'll use this, sounds the simplest for my usecase. Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org smime.p7s Description: S/MIME cryptographic signature
Re: [O] [PATCH] Subtasks are blocked in todo-items of ordered projects. Bug?
On di 21-jun-2011 13:40 Marcel van der Boom mar...@hsdev.com wrote: You can also force the task state to DONE with a triple prefix (C-u C-u C-u C-c C-t d) which will ignore the blocking rules for this state change. I think I'll use this, sounds the simplest for my usecase. On second thought, the patch is quite minimal, I've applied the attached patch in my branch which seems to do what I want. I'd obviously welcome this being applied in the main tree, but I can understand if it won't. What would be nice in general if the message that is produced contained a hint on why the entry was blocked by the system (children incomplete, sibling blocked etc.) Thanks everyone for the help. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org diff --git a/lisp/org.el b/lisp/org.el index fee3174..c28d355 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2181,6 +2181,17 @@ to change is while Emacs is running is through the customize interface. :group 'org-todo :type 'boolean) +(defcustom org-blocker-ignore-ancestor-siblings nil + Non-nil means that when determining if a TODO entry is blocked, +siblings of entries which are higher up the hierarchy are not +considered. This allows to register state changes for item in +subprojects of ordered projects which enforce ordering. The +subproject itself is not affected. See +`org-block-todo-from-children-or-siblings-or-parent' for the +implementation. + :group 'org-todo + :type 'boolean) + (defcustom org-enforce-todo-checkbox-dependencies nil Non-nil means unchecked boxes will block switching the parent to DONE. When this is nil, checkboxes have no influence on switching TODO states. @@ -11151,7 +11162,8 @@ changes. Such blocking occurs when: (when (and (org-not-nil (org-entry-get (point) ORDERED)) (forward-line 1) (re-search-forward org-not-done-heading-regexp pos t)) - (throw 'dont-block nil ; block, older sibling not done. + ; block, older sibling not done, unless configured to ignore. + (throw 'dont-block org-blocker-ignore-ancestor-siblings (defcustom org-track-ordered-property-with-tag nil Should the ORDERED property also be shown as a tag? smime.p7s Description: S/MIME cryptographic signature
[O] Subtasks are blocked in todo-items of ordered projects. Bug?
Hi all, I've run into an annoyance wrt the :ORDERED: property and the blocking of tasks due to it. Here is the minimal usecase: --- * TODO Project like header, containing subtasks :PROPERTIES: :ORDERED: t :END: ** TODO This item is the first to be done in the project This one is not blocked, as I expect. ** TODO Next task with subtasks This is blocked by the sibling above, which is what I expect *** TODO Subtask of a blocked sibling. This seems to be blocked and I can't understand why. Marking it DONE would not mark the parent done (neither explicit nor implicit). Why is it blocked then? Bug? *** TODO Second item in the blocked This is also blocked, which could be right, because the parent project has an ordered property and the sibling above is not yet complete. --- Should the first task in a subproject of a project having the ':ORDERED:' property set to true be blocked from marking 'DONE'? If so, why? The above minimal case is easy, but it's far from trivial to see why tasks in projects are blocked if the project is longer and has more outline levels. My expectation of the ordered property would be that it only acted one-level deep, regarded from a 'block-or-not' standpoint. Thoughts? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org smime.p7s Description: S/MIME cryptographic signature
[O] Bug: LaTeX_CLASS_OPTIONS does not work when specified in SETUPFILE [7.5 (release_7.5.214.g0e2c)]
Hi, I use a '#+SETUPFILE: org-config.org' line in all my org files to have a central configuration. One of the lines in this file is: #+LaTeX_CLASS_OPTIONS: [11pt,a4paper,twoside] which I expect to see in the generated TeX file when exporting to PDF. This however is not the case. If I add the options in the customize section for the latex artice class options, the export does take them into account. I'm using this as a workaround now. I am not sure if adding the option directive to the source org file yields the same results, I have not test that. I do not know if it has ever worked, this is the first time I am using it like above. Emacs : GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.21.6) of 2010-09-01 on americium, modified by Debian Package: Org-mode version 7.5 (release_7.5.214.g0e2c) marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] Continuation of main section text after subsections
On ma 18-apr-2011 11:34 Colin Fraizer orgm...@cfraizer.com wrote: Was there ever a conclusion from this discussion? My personal conclusion was, given proper outlining and no or very few assumptions about indentation preferences, it would be very difficult or confusing to implement. The amount of alternatives given in the thread gave me enough food for a while to try out if those would be sufficient. So far, the inline tasks (see below) seem to fit my need the best, although their use feels a bit like a hack to me. I think I want something very similar to what Mr. van der Boom requested. I have outlines that contain varying amounts of text (paragraphs) and then, to avoid forgetting some task, I add a TODO item somewhere in the middle. That TODO item absorbs all the text following it until the next headline at the same or higher level. This specific functionality might be already available by using the 'inline tasks' I mentioned above See the function 'org-inlinetask-insert-task'. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
[O] Re: Why are special properties like CLOSED etc. not in the properties drawer?
On di 05-apr-2011 10:52 Bernt Hansen be...@norang.ca wrote: I don't think there should be a requirement for having a drawer when you mark a task done just to record the CLOSED date. Having an option to enable this behaviour would be fine with me. Agreed, such an option would be welcomed by me too obviously. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
[O] Why are special properties like CLOSED etc. not in the properties drawer?
Hi, I've been wondering about this for a bit. It would make things a bit more consistent for me if all properties are in the 'properties'-drawer. Or am I missing something here? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] document structure question
On vr 01-apr-2011 05:10 Colin Fraizer orgm...@cfraizer.com wrote: With lists I can use two blank lines to end the list item. Is there a similar mechanism for subtrees? This is the exact same question as in a recent thread: Continuation of main section text after subsections - [1] Perhaps read that thread first? marcel [1] http://thread.gmane.org/gmane.emacs.orgmode/40182 -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] FAQ? (was: Continuation of main section text after subsections ?)
On ma 28-mrt-2011 00:00 Memnon Anon gegendosenflei...@googlemail.com wrote: Marcel van der Boom mar...@hsdev.com writes: [...] I've looked for documentation or customization options on this, but haven't found any yet. What I have done so far is turn the subheadings into lists or surround them by *bold markers*, which helps a little. Seems to me to be worth an entry in the FAQ, isn't it? Definitely, especially the part about what is considered a proper outline according to org-mode. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] Continuation of main section text after subsections
On zo 27-mrt-2011 18:07 Samuel Wales samolog...@gmail.com wrote: Perhaps we could have a tag like :noexport: except that it exports body. It does not export the header. Optionally, it would be replaced with a blank line. Then he can put headers anywhere he wants. Would this work for the OP's use case? As others have already mentioned, this would indeed not solve my issue. Once I am ready for export/publishing I'm more or less settled on the document structure. Except for some cases, where I mark blocks with my /noexport/ tag, I would expect the same (logical) structure in the published document as in the source org file. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] Re: Continuation of main section text after subsections ?
On zo 27-mrt-2011 13:08 Filippo A. Salustri salus...@ryerson.ca wrote: I would humbly suggest that the real question is a design / use case question. Is it reasonable to expect authors to stick to proper outline format throughout their drafting process? If it is, then org is fine as is. If it isn't, then there's a problem. Very much agreed. I think that paragraph is the best summary so far for the problem, stated in generic terms. marcel PS For what it is worth, I think the 'case of inline tasks' is exactly the same problem as mine. -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
[O] [PATCH] Allow inactive timestamps in org-expiry (copy of lost patch)
Hi, Attached is a patch to org-expiry.el in contrib/lisp to allow a customization of the timestamps inserted by org-expiry for 'CREATED' and 'EXPIRED' properties. This patch is what is attached to the message displayed at [1]. I have been using this patch for a while and it works fine. From searching it looks like this patch was 'forgotten', but I may have overlooked something. If the patch was rejected, you can ignore me. If it was forgotten I'd like to request to include it. Thx, marcel [1] http://www.mail-archive.com/emacs-orgmode@gnu.org/msg20882.html -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl diff --git a/contrib/lisp/org-expiry.el b/contrib/lisp/org-expiry.el index 4a49399..930b921 100644 --- a/contrib/lisp/org-expiry.el +++ b/contrib/lisp/org-expiry.el @@ -81,6 +81,11 @@ :tag Org Expiry :group 'org) +(defcustom org-expiry-inactive-timestamps nil + Insert inactive timestamps for the created and expired time properties + :type 'boolean + :group 'org-expiry) + (defcustom org-expiry-created-property-name CREATED The name of the property for setting the creation date. :type 'string @@ -283,21 +288,25 @@ to today's date. With two `C-u' prefixes, prompt the user for to update the date. (interactive P) (let* ((d (org-entry-get (point) org-expiry-created-property-name)) - d-time d-hour) + d-time d-hour timestr) (when (or (null d) arg) ;; update if no date or non-nil prefix argument ;; FIXME Use `org-time-string-to-time' - (setq d-time (if d (apply 'encode-time (org-parse-time-string d)) + (setq d-time (if d (org-time-string-to-time d) (current-time))) (setq d-hour (format-time-string %H:%M d-time)) + (setq timestr + ;; two C-u prefixes will call org-read-date + (if (equal arg '(16)) + (concat (org-read-date + nil nil nil nil d-time d-hour) ) + (format-time-string (cdr org-time-stamp-formats + ;; maybe transform to inactive timestamp + (if org-expiry-inactive-timestamps + (setq timestr (concat [ (substring timestr 1 -1) ]))) (save-excursion (org-entry-put - (point) org-expiry-created-property-name - ;; two C-u prefixes will call org-read-date - (if (equal arg '(16)) - (concat (org-read-date - nil nil nil nil d-time d-hour) ) - (format-time-string (cdr org-time-stamp-formats + (point) org-expiry-created-property-name timestr) (defun org-expiry-insert-expiry (optional today) Insert a property with the expiry date. @@ -306,15 +315,20 @@ and insert today's date. (interactive P) (let* ((d (org-entry-get (point) org-expiry-expiry-property-name)) d-time d-hour) -(setq d-time (if d (apply 'encode-time (org-parse-time-string d)) +(setq d-time (if d (org-time-string-to-time d) (current-time))) (setq d-hour (format-time-string %H:%M d-time)) +(setq timestr (if today + (format-time-string (cdr org-time-stamp-formats)) + (concat (org-read-date + nil nil nil nil d-time d-hour) ))) +;; maybe transform to inactive timestamp +(if org-expiry-inactive-timestamps + (setq timestr (concat [ (substring timestr 1 -1) ]))) + (save-excursion (org-entry-put - (point) org-expiry-expiry-property-name - (if today (format-time-string (cdr org-time-stamp-formats)) - (concat (org-read-date - nil nil nil nil d-time d-hour) )) + (point) org-expiry-expiry-property-name timestr ;;; Functions to process expired entries:
Re: [O] [PATCH] Allow inactive timestamps in org-expiry (copy of lost patch)
On ma 28-mrt-2011 14:55 Nick Dokos nicholas.do...@hp.com wrote: The patch is now in patchwork (under your name), so it will be addressed at some point. One question: there was a second patch in the link you provided - should that be resubmitted as well? The patch I attached combined the two mentioned in the message into one patch. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
[O] Continuation of main section text after subsections ?
Hi, When I'm using orgmode to write out largish documents, I often run into the outlining problem that it's apparently not possible to continue text of a higher level outline once subsections have been started. A simplified example of such an outline would be: --- * Main headline Some thoughts expressed here ** Subheading 1 More thoughts expressed here ** Subheading 2 More thoughts expressed here I would like to have this text part of 'Main headline', not of 'Subheading 2' I've looked for documentation or customization options on this, but haven't found any yet. What I have done so far is turn the subheadings into lists or surround them by *bold markers*, which helps a little. The current outlining interrupts my flow of writing too often; it's getting a nuisance. What are my options, if any, to get the outline behaviour as above? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [O] Re: Continuation of main section text after subsections ?
On zo 27-mrt-2011 16:52 Cian cian.ocon...@gmail.com wrote: You can't do that, as it would be akin to trying to have in a book Section 1 Stuff Section 1.1.1 More stuff Now this goes under Section 1 Not really an idiom that makes sense (I find its best to think of org-mode's headings as chapter headers Agreed, for paper books that would not make much sense (depending on how you do it) and that fact kept me from asking the question for a while. For electronic texts however, especially in the drafting stage where (sub-)sections get shuffled around, promoted, demoted, split etc. it does make sense, to me at least. When writing I tend to think about org headings as 'handles' to a logical block of information, including its child blocks. Apparently my analogy clashes with what org-mode wants. I had my hopes on a customization option. Is there a strong reason this could not work as an option in org-mode? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl
Re: [Orgmode] Exporting to blogspot.com
On vr 25-feb-2011 10:53 Karl Eichwalder k...@gnu.franken.de wrote: The HTML export is mostly ok. The rather longish org-export-as-html function even seems to allow tuning options. How can I make use of 'body-only'? How can I pass it to org-export-as-html I have this in my emacs settings file: ; This puts the body inside a buffer called blog-entry (defun org-export-body-as-html () (interactive) (org-export-as-html 3 nil nil blog-entry t)) marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-capture adds newline(s) when it should not
On di 26-okt-2010 11:06 Noorul Islam noo...@noorul.com wrote: [...] Sounds like a but to me too. For now I am working around this in the latest git version. Marcel, this should be fixed. Could you please submit a bug report to Emacs 24, stating that (newline 0) does insert a newline? I filed a bug report. Here is the link http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7281 Thanks guys! You're way too fast for me. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-capture adds newline(s) when it should not
On di 26-okt-2010 06:35 Carsten Dominik carsten.domi...@gmail.com wrote: I find that puzzling. What might have changed in Emacs 24 to cause such differences? I do not use Emacs 24 on a day-to-day basis yet. On emacs 24 (newline 0) inserts a new line which I think is incorrect. Sounds like a but to me too. For now I am working around this in the latest git version. Marcel, this should be fixed. Could you please submit a bug report to Emacs 24, stating that (newline 0) does insert a newline? The newlines are indeed fixed, but I have to manually widen the target buffer before the captured entry is visible. Tried this on emacs 23 as well and there it is functioning properly, so this seems emacs 24 specific too. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-capture adds newline(s) when it should not
On di 26-okt-2010 13:54 Noorul Islam noo...@noorul.com wrote: On Tue, Oct 26, 2010 at 1:46 PM, Marcel van der Boom mar...@hsdev.com wrote: On di 26-okt-2010 06:35 Carsten Dominik carsten.domi...@gmail.com wrote: I find that puzzling. What might have changed in Emacs 24 to cause such differences? I do not use Emacs 24 on a day-to-day basis yet. On emacs 24 (newline 0) inserts a new line which I think is incorrect. Sounds like a but to me too. For now I am working around this in the latest git version. Marcel, this should be fixed. Could you please submit a bug report to Emacs 24, stating that (newline 0) does insert a newline? The newlines are indeed fixed, but I have to manually widen the target buffer before the captured entry is visible. Tried this on emacs 23 as well and there it is functioning properly, so this seems emacs 24 specific too. How did you fix it? Sorry, I wasn't clear. Capturing with emacs 23 with the latest git version works perfectly. If I use emacs 24 with the latest git capturing works with respect to the newlines, but leaves the captured entry invisible in the target buffer until I widen the buffer. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-capture adds newline(s) when it should not
Hi all, I'm in the process of migrating from org-remember to org-capture. Pretty easy going so far, but it seems org-capture adds newlines, which I think it should not do. My (test) capture-template is: ((t Todo entry (file ~/.outlet/GTD.org) * TODO %? :prepend t :empty-lines 0) with the intention of inserting the captured task on the first line of the file ~/.outlet/GTD.org. What happens when I capture an task is this: beginning of file * TODO Captured task original first line of file here Both before and after the task is a newline. Also, when capturing and cancelling the capture with C-c C-k the newlines remain whereas the task is removed. I'm using the latest git version with emacs 24.0.50.1 on Ubuntu 10.10 Am I doing something wrong or is this a bug? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf11 So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Orgmode meetup at FOSDEM, February 2011. Who would come?
On di 28-sep-2010 19:44 Carsten Dominik carsten.domi...@gmail.com wrote: Please reply to this email if you'd consider to come to FOSDEM[1,2], February 5 and 6 next year in Brussels, in order to join an Org-mode meet-up there. [X] I would come and listen [ ] I would come and give a talk in the devroom marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Counters and percentage are visible in refile targets, is that configurable?
On vr 03-sep-2010 01:48 Bastien bastien.gue...@wikimedia.fr wrote: Yes, I also think so. I just pushed a change to get rid of [/] cookies in targets. Cool, works like a charm. Any particular reason you did not do the '[%]'-cookies? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Counters and percentage are visible in refile targets, is that configurable?
On vr 03-sep-2010 10:43 Bastien bastien.gue...@wikimedia.fr wrote: Marcel van der Boom mar...@hsdev.com writes: Cool, works like a charm. Any particular reason you did not do the '[%]'-cookies? None. It does now, thanks. Wow, fast service. ;-) Would it be beneficial for others too, to split the matching on [/] and [%] style cookies so control freaks like me which have both the counter and percentage style cookies on large projects (* PROJECT [23/1345] [2%] ) marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how to sort in the column view?
On Fri 18-Jun-2010 17:25 Marcel van der Boom mar...@hsdev.com wrote: Hi, I have a custom agenda command which produces a list of items which are scheduled, i.e. have a SCHEDULED or a DEADLINE property. Producing that column view is now defined in 'org-agenda-custom-commands' as: [...] (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? No ideas? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how to sort in the column view?
On Tue 22-Jun-2010 12:38 Carsten Dominik carsten.domi...@gmail.com wrote: (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? How about you start by showing us what you have tried with the sorting strategy? What I have tried is to change the configuration of the custom command to have a line '(org-agenda-sorting-strategy (quote (alpha-up)))' as the first line. I was expecting this to have the effect to sort the column view by the item text (my first column), but it did not seem to change anything at all. This made me wonder if i was on the right track. I presume if the alpha sorting works, i could try to write a custom sort on the SCHEDULED/DEADLINE property? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how to sort in the column view?
Hi, I have a custom agenda command which produces a list of items which are scheduled, i.e. have a SCHEDULED or a DEADLINE property. Producing that column view is now defined in 'org-agenda-custom-commands' as: [...] (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how to sort in the column view?
Hi, I have a custom agenda command which produces a list of items which are scheduled, i.e. have a SCHEDULED or a DEADLINE property. Producing that column view is now defined in 'org-agenda-custom-commands' as: [...] (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Automatic tagging based on # of todo items as children
Hi, I would like to have org-mode assist me in tagging headlines with a 'prj' tag if that headline contains more than one todo item. It does not matter if the items are completed or not, if it has more than one task as its children, I would like to have it tagged with 'prj' I came up with this: #+begin_src elisp (defun ensure-prj-tag() Ensure a header gets a prj tag (interactive) (org-toggle-tag prj (if ( (length (org-map-entries t /+TODO|DONE|CANCELLED 'tree))1) 'on 'off)) ) #+end_src which sort-of works if the cursor is on the heading. I need some help with the following: - I would like it to be automatic and the org-todo-statistics hook seem candidates to attach a function to, but I also want it for heading which do not have a [1/N] or [%] counter. How to proceed? - Can I do this automatically on a whole file? marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode