Re: [O] Bug: org-dblock-update regression in case of :maxlevel 0 [9.0.5 (9.0.5-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20170210/)]
Hi Nicolas, Nicolas Goaziou on 2017-02-13 16:46: > I can reproduce the problem. However, I'm not sure to understand the > meaning of ":maxlevel 0". Don't you mean ":maxlevel 1"? I have a clocktable that looks as follows. (Once more, I'll be happy to work this out as a minimum working example – later, don't have time right now.) #+BEGIN: clocktable :block 2017-W01 :maxlevel 0 :scope ("filename.org") :indent The output I got for this from an older Org version (9.0.something, definitely < 9.0.4) was: | File | Headline | Time | |--+--+| | | ALL *Total time* | *1:00* | |--+--+| | filename.org | *File time* | *1:00* | :maxlevel 1 would include level-1 headings _in_ this file, like this: | File | Headline | Time | |--+--+| | | ALL *Total time* | *1:00* | |--+--+| | filename.org | *File time* | *1:00* | | | Task 1 | 0:05 | | | Task 2 | 0:55 | where filename.org looks like * Task 1 * Task 2 ... > It sounds like a user error to me. Maybe the truth is that the handling of :maxlevel 0 was an undocumented feature? Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701
[O] Bug: org-dblock-update regression in case of :maxlevel 0 [9.0.5 (9.0.5-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20170210/)]
buffer org-src-mode-configure-edit-buffer) org-tags-column -90 org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-log-redeadline 'note org-mode-hook '(org-clock-load org-mode-reftex-setup evil-org-mode #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-refile-targets '((nil :level . 8)) org-goto-auto-isearch nil org-outline-path-complete-in-steps nil org-stuck-projects '("+prj/-MAYBE-DONE" ("TODO" "TASK") nil) org-archive-hook '(org-attach-archive-delete-maybe) org-use-speed-commands t org-agenda-sorting-strategy '((todo priority-down todo-state-down effort-down category-keep) (agenda habit-down time-up priority-down todo-state-down effort-down category-keep) (agenda habit-down time-up priority-down category-keep) (todo priority-down category-keep) (tags priority-down category-keep) (search category-keep)) org-clock-persist 'history org-refile-use-outline-path t org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-tags-exclude-from-inheritance '(quote ("prj" "FIX" "Tentative" "NotBusy" "OtherPeople")) org-load-hook '(org-insert-dblock-bindings) org-agenda-after-show-hook '(dfeich/org-open-if-in-drawer) org-agenda-finalize-hook '((lambda nil (undo-tree-mode -1)) bh/org-agenda-to-appt) org-enforce-todo-checkbox-dependencies t org-log-reschedule 'note org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-agenda-span 8 org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-link-parameters '(("w3m" :store org-w3m-store-link) ("wl" :follow org-wl-open :store org-wl-store-link) ("vm-imap" :follow org-vm-imap-open) ("vm" :follow org-vm-open :store org-vm-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("mew" :follow org-mew-open :store org-mew-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("tel") ("id" :follow org-id-open) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path ("https" :follow (lambda (path) (browse-url (concat "https:" path ("mailto" :follow (lambda (path) (browse-url (concat "mailto:; path ("message" :follow (lambda (path) (browse-url (concat "message:" path ("news" :follow (lambda (path) (browse-url (concat "news:; path ("shell" :follow org--open-shell-link)) org-babel-load-languages '((sh . t)) org-agenda-mode-hook '(dfeich/org-agenda-mode-fn) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-clock-out-remove-zero-time-clocks t ) -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701
[O] How to use symbolic names to refer to spreadsheet fields containing irregular values
Dear all, I would like to make the following work (with Org 8.3.5): |---+--++---| | |13:13 | - | 1 | | ^ |h | s | n | |---+--++---| | | 13:13:00 | #ERROR | 1 | |---+--++---| #+TBLFM: @3$2=$h;T::@3$3=$s::@3$4=$n I can give the field @1$2 the symbolic name $h, I can give the field @1$4 the symbolic name $n, and I can successfully refer to both of them in @3. However I didn't manage to refer to @1$3 using the symbolic name $s. The reason must be the value "-". If I use an alphabetic string value, it works. Any ideas? Or is this a bug? Thank you very much in advance, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.
Re: [O] Best practice for canceled/moved recurring events
SabreWolfy on 2016-07-22 15:29: > I have a meeting at 09:00 every Monday: > > --8<---cut here---start->8--- > * Diary > ** TODO Weekly Meeting >DEADLINE: <2016-07-18 Mon 09:00 +1w> > --8<---cut here---end--->8--- > > What is the best way of dealing with scenarios where (1) the meeting "next > week" is on the Wednesday and (2) the meeting "two weeks" after that (or > whatever) is canceled? If you need this to be a TODO, then I can't answer your question. However, for non-TODO entries like this … * Meeting <2016-07-18 Mon 09:00> <2016-07-25 Mon 09:00> ... I often use Lisp functions that work on dates. Essentially, you convert the entry to * Meeting 09:00 <%% SEXP > or * Meeting 09:00-10:00 <%% SEXP > When SEXP evaluates to true for a given day, the entry shows up on the agenda for that day. The basics of this are documented at http://orgmode.org/manual/Timestamps.html. Here are some examples from my diary. Note that I'm using (setq calendar-date-style 'iso) <%%(org-class 2016 02 17 2016 04 30 3 8 12 14 16 18 20)> Every Wednesday (3rd day of the week, starting with 0 = Sunday) in the given date range, except ISO calendar weeks 12, 14, etc. <%%(and (not (diary-block 2016 07 22 2016 08 31)) (org-class 2016 01 07 2016 12 31 4 1 3 5 7 9 11 13 15 17 18 20 21 22 24 26 27 28 30 32 34 36 38 40 42 44 46 48 50 52))> Like above, but not if the date is between 2016-07-22 and 2016-08-31. <%%(and (diary-float t 5 1) (diary-block 2016 03 01 2018 12 31) (not (diary-date 2016 06 03)))> First (1) Friday (day 5) of every month (t) in the given range (diary-block), but not on 2016-06-03. Hope this helps, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.
[O] Marking an item DONE using the most recently logged timestamp
Dear Org-mode community, as an extension to https://lists.gnu.org/archive/html/emacs-orgmode/2016-07/msg00183.html (Useful interactive functions for clock logs […]) I implemented another function you may find useful: org-todo-mark-done-from-log https://github.com/clange/emacs/blob/master/.emacs.d/init/org-clock.el#L18 (stable link to current revision: https://github.com/clange/emacs/blob/d6356d9b90bf02108bfbe226d06911ab4a8bb430/.emacs.d/init/org-clock.el#L18) This function marks the current item done. Instead of the current time, it reports the most recent time logged (clocked) for this item as closing time. Use case: you finished a TODO task and logged time on it but forgot to mark it DONE. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.
[O] Useful interactive functions for clock logs, and workarounds for large agenda files
Dear Org-mode community, I have recently developed a few functions related to clocking and the agenda, which are highly useful for me. So far I haven't found the time to add them to worg, but as I have meanwhile open-sourced my Emacs configuration, I thought I'd point you there for now. There is: 1. org-clock-split-current-interval https://github.com/clange/emacs/blob/master/.emacs.d/init/org-clock.el#L18 (stable link to current revision: https://github.com/clange/emacs/blob/f340dc1517f2a8017dd3a6f11124740c6af9367c/.emacs.d/init/org-clock.el#L18) This function splits the CLOCK time interval in the current line in two. Use case: you logged time on some task but afterwards realise that part of the time was spent on some other task. See https://lists.gnu.org/archive/html/emacs-orgmode/2015-03/msg01054.html for the original description, but meanwhile I have improved the function. 2. org-clock-change-hh-mm https://github.com/clange/emacs/blob/master/.emacs.d/init/org-clock.el#L102 (stable link to current revision: https://github.com/clange/emacs/blob/f340dc1517f2a8017dd3a6f11124740c6af9367c/.emacs.d/init/org-clock.el#L102) This function changes the HH:MM parts of the CLOCK time interval in the current line. My main use case for this: adding time logged outside of org-mode to one's org file. When not at my computer, I log time in an unstructured way on my phone, e.g. like this: Tue 12 Taskname 22:00-22:11, 23:31-23:45 (This is mainly because the VimTouch trick explained in https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00089.html no longer works for me, as on a non-rooted device one can't edit .vimrc any more.) I add such logs to my org file by first creating a CLOCK line for the right day, e.g. copied from somewhere else and possibly changed to the right day using org-shiftcontrolup, and then modifying the HH:MM parts. This has so far been quite cumbersome to do manually, as it required me to jump around a lot in the line. 3. a variant of org-calendar-goto-agenda that does not display an agenda with the default timespan but always just for one day, bound to the key "C" in the calendar. I need this because I'm lazy and keep all my history in one large org file (5.5 MB, grown over 6.5 years), which slows down the agenda. https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L67 (stable link to current revision: https://github.com/clange/emacs/blob/774b6d5ac33102dfd8bbc68b18a5a1227c486f75/.emacs.d/init/org.el#L67) BTW, I have more workarounds for coping with large agenda files; see e.g. https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L76 (https://github.com/clange/emacs/blob/774b6d5ac33102dfd8bbc68b18a5a1227c486f75/.emacs.d/init/org.el#L76) for how to export the agenda of the next month to an external file. I also have code for extracting from an org file only those tasks on which time was logged in a given interval, which is useful e.g. for (re-)generating clocktables for these intervals. Please let me know if you are interested. This is implemented as a Makefile plus shell and Perl scripts and is currently hosted in the same private repository in which I have my org files, but in principle I'm happy to open it. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.
[O] Bug: Multiple groups of mutually exclusive tags no longer working [8.3.4 (8.3.4-42-gae73c7-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20160425/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Dear Org developers, using the setup given below (started using emacs -q) I can no longer have multiple groups of mutually exclusive tags. Only the first group is recognised as mutually exclusive. Here is my example file: #+TAGS: { Bfoo(b) Bbar(B) Cat(c) SO(s) PlanB(P) } { FIX(X) Tentative(T) NotBusy(Y) OtherPeople(p) } * Foo Using org-set-tags-command, it is possible to assign, say, both the tags FIX and Tentative to the headline Foo. I would expect this to be impossible. Starting the second group on a new #+TAGS: line does not make a difference. I tested the same with Org 8.2.10, i.e. the version bundled with my Emacs, and it worked. Cheers, Christoph Emacs : GNU Emacs 25.0.92.1 (x86_64-w64-mingw32) of 2016-03-03 Package: Org-mode version 8.3.4 (8.3.4-42-gae73c7-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20160425/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → CSCUBS Computer Science Conference for University of Bonn Students 25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de
[O] Restore org-agenda-undo in the presence of evil and undo-tree
Hi all, I am using evil and undo-tree and therefore have (global-undo-tree-mode 1). In agenda views, I would like to be able to use org-agenda-undo, but the usual keyboard shortcuts for org-agenda-undo are occupied by undo-tree-undo. So I wondered how to disable undo-tree-mode in agenda views and came up with the following: (add-hook 'org-agenda-finalize-hook #'(lambda () (undo-tree-mode -1))) Nevertheless, undo is not working properly as long as the underlying Org buffer, which I am editing remotely from the agenda buffer, is in evil-mode. If I switch it to Emacs input, undo works. Can anyone confirm this behaviour? Cheers, and thanks in advance, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → CSCUBS Computer Science Conference for University of Bonn Students 25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de
Re: [O] logging the timings of task A + task B both at once?
Nicolas Goaziou on 2016-04-06 10:54: > Sharon Kimble <boudic...@skimble.plus.com> writes: >> Being that we can have multiple cursors, is it possible to have 2 >> separate, distinct, tasks being clocked both at the same time? > [...] > > There can only be one active clock at any given time. Although > I understand the need for some special features, I don't think it is > worth re-implementing "org-clock.el" to allow multiple ones. > > You may probably redefine "Task A" and "Task B" so they do not overlap > and require being clocked at the same time. I have a similar use case, which is related to booking working hours on multiple projects and/or multiple employers. I have many tasks which cannot clearly be associated to a single project or employer, such as "installing security updates on my computer". Here, it would be convenient to be able to define, by a special property, that, say, .7 of the time logged on one task should be attributed to one project/employer, and .3 to the other one. Such that a query for #+BEGIN: clocktable :tags "EmployerA" over * Security updates :EmployerA:EmployerB: :PROPERTIES: :LOGFACTOR-EmployerA: .7 :LOGFACTOR-EmployerB: .3 :END: :LOGBOOK: CLOCK: [2016-04-24 Sun 11:09]--[2016-04-24 Sun 12:09] => 1:00 :END: would result in a value of "0:42". I am currently using two workarounds for this: 1. Explicitly defining two separate tasks. Having logged some time on one of the tasks, I manually split the CLOCK: intervals and move the "other" part of the split to the other task. Thanks to my function org-clock-split-current-interval (https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L68) the latter is not as painful as one might think. 2. Not tagging tasks with :EmployerA: or :EmployerB: but with a common super-tag, e.g. :Work:. Then, in the spreadsheets I'm generating from my clock tables (see https://github.com/clange/org-mode/blob/master/clocktable-spreadsheet/working-hours.org for the general approach; those spreadsheets that generate project-/employer-specific timesheets I have not yet made public), I do something like "determine all time logged on :Work: but neither on :EmployerA: nor on :EmployerB:. Add .7 of that time to the time that's explicitly logged on :EmployerA:, and .3 of that time to the time that's explicitly logged on :EmployerB:." Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → CSCUBS Computer Science Conference for University of Bonn Students 25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de
[O] Two functions for efficient headline navigation
Dear Org community, at http://orgmode.org/worg/org-hacks.html#org-jump-to-child and http://orgmode.org/worg/org-hacks.html#org-jump-to-id I have contributed two interactive functions to aid structural navigation in large, complex trees (source: http://orgmode.org/worg/code/elisp/org-jump.el). The latter function I had already introduced on this list on 2015-03-31. Related to these functions I have a comment on Org's design. org-jump-to-child (prompts for the title of a sub-heading of the current heading and navigates there) was fairly complex to implement. Coming from an XML background I was surprised to see that Org has no notion of a data model or of the semantics of a document and its tree, but that I was basically required to implement an algorithm to walk through all sub-headings and collect them. Has an implementation based on a data model ever been considered? OTOH I could imagine it would not be easily to implement this efficiently: as an Org document is technically a text file that the user can edit without any restrictions, one would have to continuously sync some internal data structure with the user's text-level edits. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Project management / coordination job in WDAqua Marie Curie ITN http://eis.iai.uni-bonn.de/Jobs.html
[O] Bug: Clocking in fails when there is a dangling clock [8.3.1 (8.3.1-16-gf6aa53-elpaplus @ d:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150810/)]
-enforce-todo-checkbox-dependencies t org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-completion-use-ido t org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-clock-out-remove-zero-time-clocks t ) -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Web Intelligence Summer School “Question Answering with the Web” Saint-Étienne, FR. Apply by 4 July @ https://wiss.univ-st-etienne.fr/
Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]
Nicolas Goaziou on 2015-08-10 22:37: Correct. Fixed. Thank you to you both. Many thanks, @Nicolas, for fixing this so quickly, and @Kyle for tracking down the source of the problem! Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Web Intelligence Summer School “Question Answering with the Web” Saint-Étienne, FR. Apply by 4 July @ https://wiss.univ-st-etienne.fr/
Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]
Hi Nicolas, Nicolas Goaziou on 2015-08-10 09:29: You can bisect your configuration to find out the wrong part. You can also check what is called by C-c ! with your configuration. C-c ! and C-c . call org-time-stamp[-inactive] in my full configuration. And now I'm sure that I'm _always_ getting the wrong behaviour I reported initially. When I said in my previous email that I didn't get the wrong behaviour with emacs -q this was wrong, because emacs -q doesn't load org-mode 8.3.1, which I installed from elpa, but loads the bundled org-mode 8.2.x. Running emacs -q and then (package-initialize) and then opening a minimal file like * Hello CLOCK: [2015-08-07 Fri 10:14]--[2015-08-07 Fri 10:20] = 0:06 was enough to reproduce the bug. I.e. C-c ! or C-c . on the second timestamp prompted me with the time of the first one. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Web Intelligence Summer School “Question Answering with the Web” Saint-Étienne, FR. Apply by 4 July @ https://wiss.univ-st-etienne.fr/
[O] Subject: Bug: org-open-at-point no longer recognizes start and end timestamps of clock intervals [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]
Dear developers, I frequently use org-open-at-point on the start or end timestamps of CLOCK: intervals to open the agenda of that time. On a plain timestamp (e.g. [2015-08-09 Sun 11:11]) this still works, but on the start or end timestamp of CLOCK: start--end = difference it no longer works as of 8.3.1. This problem occurs before org-open-at-point invokes org-follow-timestamp-link. Cheers, Christoph Emacs : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-11 on KAEL Package: Org-mode version 8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-time-clocksum-format '(:hours %d :require-hours t :minutes :%02d :require-minutes t) org-clock-history-length 20 org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-clock-into-drawer 2 org-confirm-shell-link-function 'yes-or-no-p org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id org-finalize-agenda-hook '(bh/org-agenda-to-appt) org-clock-idle-time 10 org-agenda-sticky t org-file-apps '((auto-mode . emacs) (\\.mm\\' . default)) org-pretty-entities t org-agenda-custom-commands '((h Work todos tags-todo -personal-doat={.+}-dowith={.+}/!-TASK ((org-agenda-todo-ignore-scheduled t))) (H All work todos tags-todo -personal/!-TASK-MAYBE ((org-agenda-todo-ignore-scheduled nil))) (A Work todos with doat or dowith tags-todo -personal+doat={.+}|dowith={.+}/!-TASK ((org-agenda-todo-ignore-scheduled nil))) (j TODO dowith and TASK with ((org-sec-with-view TODO dowith) (org-sec-where-view TODO doat) (org-sec-assigned-with-view TASK with) (org-sec-stuck-with-view STUCK with)) ) (J Interactive TODO dowith and TASK with ((org-sec-who-view TODO dowith))) ) org-return-follows-link t org-todo-keyword-faces '((TODO :foreground DarkOrange1 :weight bold) (MAYBE :foreground sea green) (DONE :foreground light sea green) (CANCELLED :foreground forest green) (TASK :foreground blue)) org-agenda-include-diary t org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(org-mode-reftex-setup org-clock-load evil-org-mode #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-goto-auto-isearch nil org-stuck-projects '(+prj/-MAYBE-DONE (TODO TASK) nil) org-archive-hook '(org-attach-archive-delete-maybe) org-use-speed-commands t org-clock-persist 'history org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-tags-exclude-from-inheritance '(prj) org-agenda-start-with-log-mode t org-agenda-finalize-hook '(bh/org-agenda-to-appt) org-enforce-todo-checkbox-dependencies t org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-completion-use-ido t org-babel-load-languages '((sh . t)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-clock-out-remove-zero-time-clocks t ) -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Web Intelligence Summer School “Question Answering
Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]
Nicolas Goaziou on 2015-08-10 00:30: Christoph LANGE math.semantic@gmail.com writes: I frequently use org-time-stamp or org-time-stamp-inactive to adjust intervals logged with CLOCK:. Before upgrading to 8.3.1 I was able to adjust the end of a CLOCK'ed interval of the format CLOCK: start--end = difference by calling org-time-stamp or org-time-stamp-inactive while having the point placed on end. As of 8.3.1 it seems that the function always offers to edit start. I cannot reproduce the problem. I can edit both with C-c !, depending on the point. Indeed that's what I get in the same *.org file when starting Emacs with -q. So it must depend on my configuration. I'm not sure how to investigate this – would you have an idea? Many thanks in advance, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Web Intelligence Summer School “Question Answering with the Web” Saint-Étienne, FR. Apply by 4 July @ https://wiss.univ-st-etienne.fr/
[O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]
Dear developers, I frequently use org-time-stamp or org-time-stamp-inactive to adjust intervals logged with CLOCK:. Before upgrading to 8.3.1 I was able to adjust the end of a CLOCK'ed interval of the format CLOCK: start--end = difference by calling org-time-stamp or org-time-stamp-inactive while having the point placed on end. As of 8.3.1 it seems that the function always offers to edit start. If this is not a bug, is there some other way to request end to be edited? Cheers, Christoph Emacs : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-11 on KAEL Package: Org-mode version 8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-time-clocksum-format '(:hours %d :require-hours t :minutes :%02d :require-minutes t) org-clock-history-length 20 org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-clock-into-drawer 2 org-confirm-shell-link-function 'yes-or-no-p org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id org-finalize-agenda-hook '(bh/org-agenda-to-appt) org-clock-idle-time 10 org-agenda-sticky t org-file-apps '((auto-mode . emacs) (\\.mm\\' . default)) org-pretty-entities t org-agenda-custom-commands '((h Work todos tags-todo -personal-doat={.+}-dowith={.+}/!-TASK ((org-agenda-todo-ignore-scheduled t))) (H All work todos tags-todo -personal/!-TASK-MAYBE ((org-agenda-todo-ignore-scheduled nil))) (A Work todos with doat or dowith tags-todo -personal+doat={.+}|dowith={.+}/!-TASK ((org-agenda-todo-ignore-scheduled nil))) (j TODO dowith and TASK with ((org-sec-with-view TODO dowith) (org-sec-where-view TODO doat) (org-sec-assigned-with-view TASK with) (org-sec-stuck-with-view STUCK with)) ) (J Interactive TODO dowith and TASK with ((org-sec-who-view TODO dowith))) ) org-return-follows-link t org-todo-keyword-faces '((TODO :foreground DarkOrange1 :weight bold) (MAYBE :foreground sea green) (DONE :foreground light sea green) (CANCELLED :foreground forest green) (TASK :foreground blue)) org-agenda-include-diary t org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(org-mode-reftex-setup org-clock-load evil-org-mode #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-goto-auto-isearch nil org-stuck-projects '(+prj/-MAYBE-DONE (TODO TASK) nil) org-archive-hook '(org-attach-archive-delete-maybe) org-use-speed-commands t org-clock-persist 'history org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-tags-exclude-from-inheritance '(prj) org-agenda-start-with-log-mode t org-agenda-finalize-hook '(bh/org-agenda-to-appt) org-enforce-todo-checkbox-dependencies t org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-completion-use-ido t org-babel-load-languages '((sh . t)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-clock-out-remove-zero-time-clocks t ) -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http
Re: [O] Function that splits a CLOCK interval
Hi Peter, Peter Frings on 2015-04-01 12:37: The following function now automates the task of splitting: … Fantastic, just what I needed! thanks for your feedback! I have now made a few improvements but not yet found time to get started with contributing the code to Worg, so one more email with the improvements. One little thing, though. When I interrupt the function with C-g at the prompt, the current line is already duplicated. It would by nice that C-g left the buffer unchanged. Done, see code below. Plus, the function now accepts a prefix argument and works with active time stamps. When a prefix argument is given, the interactive editing of the timestamp uses C as a default before changing A--C into A--B B--C. Cheers, Christoph --- % --- % --- % --- % --- % --- % --- % --- % --- % --- % --- (defun org-clock-split-current-interval (end-as-default) If this is a CLOCK line, split its clock time interval into two. Let the current time interval be A--C. By default, this function interactively prompts for a time B (suggesting A as a default), and then replaces A--C by B--C and A--B. When called with a prefix argument, the function uses C as a default for B. The point is left on the later interval, so that this line can, e.g., be moved to another entry. (interactive P) (save-excursion ;; Part of the following code is copied from org-clock-update-time-maybe. ;; If this function becomes part of org-clock.el, some refactoring would be in order. (beginning-of-line nil) (skip-chars-forward \t) (when (looking-at org-clock-string) (beginning-of-line nil) (let ((re (concat \\([ \t]* org-clock-string *\\) \\([[][^]]+[]]\\)\\(-+\\)\\([[][^]]+[]]\\) \\(?:[ \t]*=.*\\)?))) (when (looking-at re) (let ((indentation (match-string 1)) (start (match-string 2)) (to (match-string 3)) (end (match-string 4)) (use-start-as-default (equal end-as-default nil))) ;; interactively change A--C to B--C, ;; or (given prefix argument) to A--B, … (re-search-forward (concat org-clock-string \\([[]\\))) (when (not use-start-as-default) (re-search-forward \\([[]\\))) ;; … respecting whether A or C is an active or an inactive timestamp (call-interactively (if (equal (match-string 1) ) 'org-time-stamp 'org-time-stamp-inactive)) ;; If there were a function that implemented the actual body of org-clock-update-time-maybe, we could call that function, as in this context we _know_ that we are on a CLOCK line. (org-clock-update-time-maybe) ;; copy changed time B (re-search-backward org-ts-regexp-both) (let ((middle (match-string 0))) ;; insert A--B below, or (given prefix argument) insert B--C above (end-of-line (if use-start-as-default 1 0)) (insert \n indentation (if use-start-as-default start middle) to (if use-start-as-default middle end)) (org-clock-update-time-maybe -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Semantic Publishing Challenge: Assessing the Quality of Scientific Output ESWC, 31 May–4 June 2014, Portorož, Slovenia. https://tinyurl.com/SPChallenge15 Submission deadline 27 March (abstracts: 20 March)
[O] Function that splits a CLOCK interval
Dear org-mode community, I use org's clocking facility to clock all my working time. I frequently find myself clocking time for a task T1, but later realise that I actually spent part of this time on some other task T2. In such a situation I go to the corresponding CLOCK: line for T1, split the interval clocked, e.g. from CLOCK: [2015-03-30 Mon 16:27]--[2015-03-30 Mon 16:30] = 0:03 to CLOCK: [2015-03-30 Mon 16:28]--[2015-03-30 Mon 16:30] = 0:02 CLOCK: [2015-03-30 Mon 16:27]--[2015-03-30 Mon 16:28] = 0:01 and move one of the two lines to the LOGBOOK of task T2. The following function now automates the task of splitting: --- % --- % --- % --- % --- % --- % --- % --- % --- % --- % --- (defun org-clock-split-current-interval () If this is a CLOCK line, split its clock time interval into two. t the current time interval be A--C; then this function interactively prompts for a time B (suggesting A as a default), and then replaces A--C by B--C and A--B. The point is left on the line B--C, so that this line can, e.g., be moved to another entry. (interactive) (save-excursion ;; Part of the following code is copied from org-clock-update-time-maybe. ;; If this function becomes part of org-clock.el, some refactoring would be in order. (beginning-of-line 1) (skip-chars-forward \t) (when (looking-at org-clock-string) (let ((re (concat [ \t]* org-clock-string *[[][^]]+[]]-+[[][^]]+[]] \\(?:[ \t]*=.*\\)?))) (when (looking-at re) ;; duplicate current line (resulting in A--C newline A--C) (let ((current-line (thing-at-point 'line t))) (when (or (= 1 (forward-line 1)) (eq (point) (point-max))) (insert \n)) (insert current-line)) ;; interactively change start time of the later interval ;; (resulting in B--C newline A--C) ;; TODO when universal-argument is provided, we might alternatively offer changing the end time of the earlier interval, resulting in A--C newline A--B. (forward-line -2) ;; we currently assume that all timestamps in clock intervals are inactive (search-forward (concat org-clock-string [)) ;; TODO call org-time-stamp with arguments that are conditional on whether an active or an inactive timestamp was found above (call-interactively 'org-time-stamp-inactive) ;; If there were a function that implemented the actual body of org-clock-update-time-maybe, we could call that function, as in this context we _know_ that we are on a CLOCK line. (org-clock-update-time-maybe) ;; copy changed time and also make it the end time of the earlier interval ;; (resulting in B--C newline A--B) (re-search-backward org-ts-regexp-both) (let ((ts (match-string 0))) (move-end-of-line 2) (when (re-search-backward org-ts-regexp-both nil t) (replace-match ts)) (org-clock-update-time-maybe))) (define-key org-mode-map (kbd \C-cs) 'org-clock-split-current-interval) --- % --- % --- % --- % --- % --- % --- % --- % --- % --- % --- As I said in my previous email: I would even be happy to contribute it to the codebase of org-mode (core or contrib); however in this case someone would have to point me to a fool-proof guide for how to do this. I know that for contributing code I will have to sign some FSF copyright forms, and I know how to use git, but I don't know the exact org-mode specific steps of doing so. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Semantic Publishing Challenge: Assessing the Quality of Scientific Output ESWC, 31 May–4 June 2014, Portorož, Slovenia. https://tinyurl.com/SPChallenge15 Submission deadline 27 March (abstracts: 20 March)
[O] Function that jumps to an entry with a certain CUSTOM_ID
Hi all, the following function has served me well for a few years, so I thought I'd share it. I would even be happy to contribute it to the codebase of org-mode (core or contrib); however in this case someone would have to point me to a fool-proof guide for how to do this. I know that for contributing code I will have to sign some FSF copyright forms, and I know how to use git, but I don't know the exact org-mode specific steps of doing so. --- % --- % --- % --- % --- % --- % --- % --- % --- % --- % --- (defun org-jump-to-id () Asks for an identifier and searches for the first entry in the current file that has this identifier as a CUSTOM_ID property. (interactive) (let* ((property CUSTOM_ID) (custom-id (org-icompleting-read CUSTOM_ID of entry: (mapcar 'list (org-property-values property) (org-link-search (concat # custom-id (define-key org-mode-map (kbd \C-cj) 'org-jump-to-id) --- % --- % --- % --- % --- % --- % --- % --- % --- % --- % --- This implementation works efficiently in a 4 MB org file with 100 IDs. Together with ido or helm I find it a very user-friendly way of jumping to frequently used headlines. I noticed that org-babel-ref-goto-headline-id does something similar, so maybe some code could be shared among the two functions. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Semantic Publishing Challenge: Assessing the Quality of Scientific Output ESWC, 31 May–4 June 2014, Portorož, Slovenia. https://tinyurl.com/SPChallenge15 Submission deadline 27 March (abstracts: 20 March)
Re: [O] Function that jumps to an entry with a certain CUSTOM_ID
On Mar 31, 2015 9:53 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: The problem is that we're running out of interesting keybindings. Let me ask the question differently: as all reasonable key bindings are taken (a statement to which I tend to agree), is the suggestion of interactive functions to be added to the core of org-mode no longer appropriate? I.e. should I contribute them to Worg (with which I still need to familiarise myself) rather than suggesting them here? Or, asking about a middle course, what's the role of org's contrib directory? (Is it even suitable for something that is not a complete plugin of its own right, but rather just a single function?) C-c j is not an option since it is reserved to users. Sorry, this was unfortunate in my initial post. I didn't intend to hard-code this as the default key binding, but it was rather meant to be read as if you like this function, you could bind it, for example, to Note that you can use (let ((h (org-find-property CUSTOM_ID custom-id))) (when h (goto-char h))) instead of (org-link-search ...) for one less level of indirection. Thanks - makes sense. However probably not if I write a tutorial in the style of if you want to do something, then copy the following lines to your. emacs. But I think I should rather aim at Worg's contrib directory, with a short elisp file containing my function, plus a short HTML file explaining that there exists an elisp file containing a function that does a few words about the functionality - does this make sense? Cheers, and thanks for your advice, Christoph -- Christoph Lange(-Bever) http://langec.wordpress.com/about Sent from a mobile device; please excuse my brevity.
Re: [O] Sorting CLOCK entries
Chaitanya Krishna Ande on 2015-02-27 16:40: I was wondering if there is a way to sort clock entries like in the clock entries below. AFAIK org-mode doesn't have any dedicated support for this, … The table is sorted in reverse chronological order except for the last two. I was wondering if there is some to sort these entries so that the last two entries sit in the right place. … and I'm not sure where this situation comes from (other than manual editing), CLOCK: [2015-01-21 Wed 16:37]--[2015-01-21 Wed 16:53] = 0:16 CLOCK: [2014-12-02 Tue 18:29]--[2014-12-02 Tue 18:57] = 0:28 … CLOCK: [2014-10-10 Fri 17:52]--[2014-10-10 Fri 18:55] = 1:03 CLOCK: [2014-09-10 Wed 14:29]--[2014-09-10 Wed 16:29] = 2:00 CLOCK: [2014-11-12 Wed 08:34]--[2014-11-12 Wed 08:52] = 0:18 CLOCK: [2014-11-04 Tue 12:58]--[2014-11-04 Tue 13:28] = 0:30 … but a manual fix for this particular case is as easy as marking the affected range of lines and saying C-u M-x sort-lines. Cheers, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Semantic Publishing Challenge: Assessing the Quality of Scientific Output ESWC, 31 May–4 June 2014, Portorož, Slovenia. https://tinyurl.com/SPChallenge15 Submission deadline 27 March (abstracts: 20 March)
[O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists
-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-completion-use-ido t org-babel-load-languages '((sh . t)) org-agenda-files '(... ...) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-clock-out-remove-zero-time-clocks t ) -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → WDAqua (Answering Questions using Web Data) Marie Skłodowska-Curie Intl. Training Network (ITN) seeking 15 highly skilled PhD candidates. Apply by February: http://www.iai.uni-bonn.de/~langec/wdaqua/
[O] Poor man's Org time-tracking on Android
Dear Org community, I thought I'd let you know how I clock my Org tasks while I'm on the move. In a really poor man's way, without MobileOrg. http://langec.wordpress.com/2014/10/03/poor-mans-org-mode-time-logging/ Cheers, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701
[O] org-contacts-anniversaries 'Bad sexp' bug keeps haunting me
Hi all, for a while I had been able to run org-contacts-anniversaries with BIRTHDAY dates successfully, as explained at the bottom of https://julien.danjou.info/projects/emacs-packages#org-contacts. This was on 64-bit Linux. On 32-bit Windows I had the function disabled, as I have contacts both before 1970. (See this thread: http://comments.gmane.org/gmane.emacs.orgmode/42139) Now, for the first time, I'm running a 64-bit Emacs on Windows (http://emacsbinw64.sourceforge.net/). I was confident that org-contacts-anniversaries would work for me, but it didn't. Once more any invocation of an agenda involving org-contacts-anniversaries haunted me with the Bad sexp error message, pointing to the line in my contacts.org that contains %%(org-contacts-anniversaries). I am running org-8.2.7c from ELPA, on Emacs 24.4.50.1. I think I didn't make any of the mistakes documented previously: * running a mixed Org installation (Org as bundled with Emacs, plus non-bundled packages; http://stackoverflow.com/a/15568713/2397768) * using the wrong syntax for org-contacts-files (http://stackoverflow.com/a/14057170/2397768) * using empty BIRTHDAY fields (http://stackoverflow.com/a/21968778/2397768) * not having diary loaded (https://www.mail-archive.com/emacs-orgmode@gnu.org/msg48710.html – but isn't it actually loaded automatically by org-agenda.el when org-agenda-include-diary is set to t?) FYI this is how I disabled org-contacts-anniversaries on non-64-bit systems: ; disable anniversaries on non-64-bit systems (as they don't handle dates before 1970) (defadvice org-contacts-anniversaries (around disable-org-contacts-anniversaries-on-32-bit) No anniversaries on 32-bit systems (if (string-prefix-p x86_64 system-configuration) (ad-do-it))) (ad-activate 'org-contacts-anniversaries) This code does not cause my problem. I have tested it before, and without this code I'm still getting the Bad sexp. I'm giving up for now, reverting to manually maintained entries like this in my contacts.org: %%(org-anniversary MM DD) Name (%d years) Cheers, and thanks in advance for any helpful advice, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → SEMANTiCS conference: Transfer–Engineering–Community. Leipzig, Germany, 4–5 September (workshops 1–3 September). Including Vocabulary Carnival, LOD for SMEs, Linked Data Quality.
Re: [O] Bug: Feature request: make length of history in org-clock-select-task customizable [8.2.7c (8.2.7c-51-g896fa6-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20140825/)]
On 2014-08-28 18:03, Subhan Michael Tindall wrote: Try (setq org-clock-history-length n) In your .emacs Thank you very much, that's great! I had no idea, because … * the documentation of org-clock-goto and org-clock-in (which display the history given universal-argument) didn't refer to this, * org-clock-select-task does not obviously refer to org-clock-history-length, * I was misled by the hard-coded 10 in org-clock-select-task, which, as I now understand, defines the boundary between digits and letters to number tasks. I believe the max on the list length is 35, but I could be wrong. I think you are right about this, given the initial code in org-clock-history-push, and the limit to 9 digits (why actually not use 0 for the most recent one?) and 26 alphabetic letters. Cheers, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → SEMANTiCS conference: Transfer–Engineering–Community. Leipzig, Germany, 4–5 September (workshops 1–3 September). Including Vocabulary Carnival, LOD for SMEs, Linked Data Quality.
[O] Bug: Feature request: make length of history in org-clock-select-task customizable [8.2.7c (8.2.7c-51-g896fa6-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20140825/)]
Dear developers, I would like to ask you to consider the following feature request: to make the length of the history of recent tasks in org-clock-select-task customizable. If I understand correctly, this should be as straightforward as replacing the three occurrences of the hard-coded number 10 in this defun by a defcustom'd variable. Maybe call it org-clock-select-max-task-items – I tried to find something that's similar to recentf-max-menu-items. Background: I use org-mode for logging all of my work time and sometimes switch between too many tasks. Cheers, and many thanks in advance, Christoph Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN Package: Org-mode version 8.2.7c (8.2.7c-51-g896fa6-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20140825/) -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → SEMANTiCS conference: Transfer–Engineering–Community. Leipzig, Germany, 4–5 September (workshops 1–3 September). Including Vocabulary Carnival, LOD for SMEs, Linked Data Quality.
Re: [O] How to analyze clocking reports (e. g. with spreadsheet application)?
Hi all, I thought I'd share with you one nice thing I figured out recently. It seemed appropriate to post it as a belated answer to this thread: On 2013-04-27 23:50, Martin wrote: I'm using the org-mode clocking features (in org-mode 7.9.4) extensively to document how much time I spent with which task and when. I wonder how I can export the data (e. g. to MS Excel) for further analysis; * time consumed by different projects * interruptions and jumping from task to task * time consumed by tasks with a special tag etc. So I was interested in doing some of this analytics right inside Org spreadsheets. At https://github.com/clange/org-mode/tree/master/clocktable-spreadsheet please find a self-documenting solution for computing my weekly overtime balance from working hours logged using the clocking features. The key to this solution is accessing entries of a clock table from a spreadsheet table. I would be happy to contribute this mini-tutorial to Worg. It is already available under GPL, and I'll be happy to make it available under any other license you may need. However I have little time and would prefer not having to learn any complex procedures before being able to contribute. Cheers, Christoph -- Christoph Lange-Bever, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] [export] Beamer frames containing lstlisting are no longer made fragile
Hi Nicolas, I'm sorry I hadn't got back to this email – didn't notice it because of a filtering mistake on my side. 2013-09-14 15:33 Nicolas Goaziou: Christoph LANGE math.semantic@gmail.com writes: Still I think the following sentence in the documentation (section 12.5) is easy to misunderstand: `fragile' option is added automatically if it contains source code that uses any verbatim environment. What would you suggest instead? Let me see; I'd first have to understand how this mechanism works. I do not think it works in the same was as the old exporter worked. I.e. I think the new mechanism does not automatically add [fragile] on, e.g., encountering the following: #+LATEX: \begin{lstlisting} #+LATEX: ... #+LATEX: \end{lstlisting} I think it means that when I use a proper source block using #+BEGIN_SRC, the exporter automatically sets the [fragile] option as needed. It isn't just about source blocks, see `org-beamer-verbatim-elements'. OK, I had checked this variable before, but I don't understand it. The documentation says List of element or object types producing verbatim text. I presume elements and objects refer to things in Org-mode, from which LaTeX is only generated later in the export process. And as the only thing (element or object?) on the Org-mode side that generates {lstlisting} environments is a SRC-BLOCK, there is probably no way of teaching the exporter the pre-Org-8.0 behaviour explained above, i.e. enabling [fragile] on encountering \begin{lstlisting}. Anyway, you told me how to make my legacy {lstlisting} environments work. Is this approach, of manually setting BEAMER_OPT: fragile the preferred way whenever you have a listing in a non-standard language, where the {lstlisting} environment requires special arguments (e.g. morekeywords)? Or is there some way of passing extra arguments into the {lstlisting} environment that is created from #+BEGIN_SRC? At the moment, the only way to pass extra arguments to lstlisting is using `org-latex-listings-options'. IOW, it isn't possible to set specific options for a given block. Though, it should be fairly easy to implement an :extra attribute for source blocks. E.g., #+attr_latex: :extra key1=val1,key2=val2 #+begin_src ... #+end_src Such a feature would of course be nice to have. But it doesn't have the highest priority for me, as I managed to reuse my existing #+LATEX: \begin{lstlisting} code, and as I'm not currently planning to export these Org files to anything else but LaTeX-Beamer. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] [export] Beamer frames containing lstlisting are no longer made fragile
Hi Eric, I'm sorry I hadn't got back to this email – didn't notice it because of a filtering mistake on my side. 2013-09-16 08:51 Eric S Fraga: My intuition after browsing the Org source code and documentation is that I should now use #+BEGIN_SRC and that then everything will be handled automatically. However the language of my listings is a non-standard one, which requires a lot of custom options to the lstlisting environment. Could anyone kindly point me to an example? I am not sure what it is you want an example of? I was interested in an example of defining a new language, including keywords and comment and string syntaxes etc., so that one can use it with #+BEGIN_SRC and that the exporter (case 4 of (defun org-latex-src-block) in ox-latex.el) will create the right \lstset{...}\begin{lstlisting}...\end{lstlisting} output. I presume it boils down to adding a custom language to Babel, but that's something I haven't done before. If it's how to configure lstlisting for a new language, here are two examples: Thanks! With this way I'm familiar. In case it may be of interest to anyone, I recently made public a LaTeX package with \lstdefinelanguage settings for a lot of languages I am interested in (mainly from the Semantic Web): https://github.com/clange/latex/blob/master/lstsemantic.sty. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] How to install recent documentation of org 8.2?
2013-10-03 10:27 M: I tried to load the recent documentation with a link to the doc directory in my org-mode 8.2 (expanded contents from git repository) in my .emacs. (add-to-list 'Info-additional-directory-list (expand-file-name ~/mypath/org-mode/org_current/doc)) But this does have no effect. With C-h i, I get displayed a an outdated org-manual. The following worked for me, however in a different environment (Gentoo Linux with org-mode 8.2 installed via the package manager). My Org 8.2 info file ended up in /usr/share/info/org, whereas the one packaged by Emacs is in /usr/share/info/emacs-24. I couldn't get the directory settings in Emacs right, but the following worked: I created my own info directory and prepended it to the INFOPATH environment variable: export INFOPATH=$HOME/.emacs.d/info:$INFOPATH In this directory, I created a symlink to the Org 8.2 info: $ ls -l ~/.emacs.d/info total 0 lrwxrwxrwx 1 clange clange 19 Sep 14 15:20 org - /usr/share/info/org HTH, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
[O] org-submit-bug-report is missing org-remember [Re: Bug: org-remember.el is not in git repo]
Hi all, 2013-04-12 06:27 Bastien: Yes, org-remember.el has been removed from Org 8.0. davi...@es.gnu.org (David Arroyo Menéndez) writes: Trying does org-submit-report from git repo, I've found this error, I've fixed my problem adding (load /usr/share/emacs/24.3.50/lisp/org/org-remember.el) to my .emacs ... I just wanted to submit a bug report via org-submit-bug-report, but it said Cannot open load file: org-remember. Indeed org.el of version 8.2 still makes some references to org-remember. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
[O] C-c C-c doesn't tick check box when pressed on a hyperlink in a list item
Hi all, this is a bug in Org 8.2 on Emacs 24.3. I can't use org-submit-bug-report right now (see previous mail), so let me try this way. I have a check list like this * [X] item * [ ] item and some of the items contain hyperlinks. When I am on one such hyperlink and press C-c C-c it doesn't tick the check box but says C-c C-c can do nothing useful at this location. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] [export] Easy way to make children of Beamer frames generate list items?
Hi Suvayu, 2013-09-15 14:42 Suvayu Ali: I added these entries on Worg. Do you think this helps future users with similar questions? http://orgmode.org/worg/org-faq.html#sec-18-1 http://orgmode.org/worg/exporters/beamer/ox-beamer.html#migration Thanks for writing up these FAQ. They look very helpful to me. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] [export] Easy way to make children of Beamer frames generate list items?
Dear all, many thanks for your extensive feedback. You more than answered my question: I conclude for myself that it is not a good idea to use Org tree entries if one wants list items. This was accidentally supported by the old exporter, but with the new exporter it makes sense to manually (or automatically, with some scripting or macro-recording) convert tree entries to plain lists. This is what I will now do with my Beamer presentations. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] [export] Beamer frames containing lstlisting are no longer made fragile
Hi Nicolas, 2013-09-13 17:32 Nicolas Goaziou: If you're inserting the environment manually, Beamer export back-end will not be able to detect that a fragile option is required. In that case, you can also insert that option manually, by setting BEAMER_OPT property to fragile in the headline representing your frame: * My frame :PROPERTIES: :BEAMER_OPT: fragile :END: Thanks, that works – indeed I should have tried this first, as the documentation actually mentions it. Still I think the following sentence in the documentation (section 12.5) is easy to misunderstand: `fragile' option is added automatically if it contains source code that uses any verbatim environment. I think it means that when I use a proper source block using #+BEGIN_SRC, the exporter automatically sets the [fragile] option as needed. However the sentence could also be interpreted as reflecting the behaviour of the old exporter, which indeed scanned the full _LaTeX_ source code (e.g. in #+BEGIN_LaTeX) for certain environments and then set the [fragile] option. Anyway, you told me how to make my legacy {lstlisting} environments work. Is this approach, of manually setting BEAMER_OPT: fragile the preferred way whenever you have a listing in a non-standard language, where the {lstlisting} environment requires special arguments (e.g. morekeywords)? Or is there some way of passing extra arguments into the {lstlisting} environment that is created from #+BEGIN_SRC? Cheers, and thanks in advance, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
[O] [export] Easy way to make children of Beamer frames generate list items?
Dear all, here is another problem that I have with reusing old Beamer presentations (Org version 7) with the new exporter. The manual says that all frame's children become `block' environments. Is there a way of reverting to the default behaviour of the old exporter, which by default exported frame's children as list items? E.g. by setting a certain property on the frame's children? Of course I would be able to manually change all lists to plain lists within Org tree entries, but before starting to do this I would like to make sure that there is no other way. Cheers, and thanks in advance, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
[O] [export] Beamer frames containing lstlisting are no longer made fragile
Dear all, having created a number of Beamer presentations with the old exporter (Org version 7), I'm now working on the first Beamer presentation with the new exporter. Frames that contain an lstlisting environment are no longer made fragile automatically. (Thus I'm not sure the documentation in manual section 12.5 Beamer export is still correct, which says `fragile' option is added automatically if it contains source code that uses any verbatim environment.) My intuition after browsing the Org source code and documentation is that I should now use #+BEGIN_SRC and that then everything will be handled automatically. However the language of my listings is a non-standard one, which requires a lot of custom options to the lstlisting environment. Could anyone kindly point me to an example? Cheers, and thanks in advance, Christoph -- Christoph Lange-Bever, http://www.facebook.com/ch.lange, Skype duke4701
[O] [export] Beamer frames containing lstlisting are no longer made fragile
Dear all, having created a number of Beamer presentations with the old exporter (Org version 7), I'm now working on the first Beamer presentation with the new exporter. Frames that contain an lstlisting environment are no longer made fragile automatically. (Thus I'm not sure the documentation in manual section 12.5 Beamer export is still correct, which says `fragile' option is added automatically if it contains source code that uses any verbatim environment.) My intuition after browsing the Org source code and documentation is that I should now use #+BEGIN_SRC and that then everything will be handled automatically. However the language of my listings is a non-standard one, which requires a lot of custom options to the lstlisting environment. Could anyone kindly point me to an example? Cheers, and thanks in advance, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/
Re: [O] Gentoo ebuild for app-emacs/org-mode-8.0.1
Hi Achim, about ORG_ADD_CONTRIB and other faults that you pointed out in my ebuild: I'm sorry but I didn't manage to test this before going on holiday. Meanwhile I see there has been progress; see Ulrich Müller's comment at https://bugs.gentoo.org/show_bug.cgi?id=466720#c6 and my reply. I just wanted to let everyone know, but I am currently unable to work on this. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] Gentoo ebuild for app-emacs/org-mode-8.0.1
2013-04-22 18:04 John Hendy: While Org isn't anywhere close to as messy as a LaTeX installation, maintaining it properly if one is planning to spread the files around should not be overlooked. While AUR also has an Org-mode package, I'd *much* rather just stick to a directory at ~/.elisp/org.git where I pull, make clean, make, and then simply add those dirs a the top of the load-path. I think it's good to give users a choice. According to my experience, the problem with the Gentoo org-mode package has never been that it was poorly configured, but that it was irregularly updated. IMHO Org is pretty much feature-complete and has a wide user base, so many users would not want to concern themselves with make in a cloned git directory to get the latest (but possibly unstable!) set of features. I myself have installed Org from git until I learned how to write Gentoo ebuilds. With another Emacs package (evil), I also recently switched from git to ebuilds (maintained by someone else), because I found the package to be sufficiently feature-complete with version 1.0. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] Gentoo ebuild for app-emacs/org-mode-8.0.1
Hi Achim, thanks for your improvement suggestions! Before I put this into practice, let me ask some questions. I am neither an expert in distributing Org nor in writing ebuilds yet. 2013-04-22 18:21 Achim Gratz: ELISP_REMOVE=lisp/org-install.el You'll also want to remove org-loaddefs.el and org-version.el. Why? Because they will automatically be re-generated during make install, or because they are not necessary unless installing from git? elisp-install ${PN}/contrib contrib/lisp/*org*.el || die This is wrong if you use ORG_ADD_CONTRIB. These files are already taken care of by make install OK, which means that I can remove that elisp-install line? and contrib should not be added to the load-path Why not? Note that this is conditional on the use flag contrib. So in this case the user has explicitly decided I want the contributed features. (it also shouldn't exist as a subdirectory under ${PN}). Where should it go instead, if anywhere? Cheers, and thanks in advance, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Gentoo ebuild for app-emacs/org-mode-8.0.1
Hi all, Gentoo users may find my ebuild for app-emacs/org-mode-8.0.1 useful. Please download it from https://466720.bugs.gentoo.org/attachment.cgi?id=346230 and let's hope this ebuild (or alternatively Emacs 24.4) will be included with Portage soon (subscribe to https://bugs.gentoo.org/show_bug.cgi?id=466720 to track the progress). Thanks to Bastien et al. for version 8! Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Sticky agenda interferes with org-open-at-point for date stamps
Dear org developers, from org-mode 7.9 I'm using a sticky agenda – a great feature in general, given my large dataset. However, I found one feature to be broken by the stickiness: When I am on a date/time stamp (e.g. 2012-09-27 Thu) and open this link with org-open-at-point (C-c C-o), it takes me to the sticky agenda. If the agenda sticks to a different date (say 2012-09-28 Fri), I have no chance to open an agenda view for the date I'm actually interested in (other than manually jumping to that date), as org-agenda-redo (r) would rebuild the agenda view for the sticking date. I think that if opening a link takes me to a date D that is outside of where the agenda is currently stuck, the agenda should be rebuilt for the desired date D. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Bug: org-insert-drawer doesn't respect indentation for :END:
Dear org-mode developers, thanks a lot for providing org-insert-drawer; it satisfies a frequent need. However, when I invoke this function (with or without having a range of text selected), only the start keyword of the drawer respects the current indentation level. The :END: mark is always left-justified – for example: ** Foo :DRAWER: Bla :END: I think the :END: should also respect the current indentation. Cheers, and thanks, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Bug: can't use square brackets in link descriptions;
Dear org-mode developers, I am desperately trying to get a square bracket into the description of a link. That is, in an org file that I want to export to HTML, I would like to have the source a href=http://example.org;foo [bar]/a and of course I would like to avoid using XML character entities such as #5b; for [, for two reasons: 1. It is painful. 2. I might eventually want to export my org file to some other format than HTML. I noticed this post on escaping in org links (http://article.gmane.org/gmane.emacs.orgmode/37888), but apparently I didn't understand it. I thought that escaping as %5B might work – not only in the link component of a link, where it works due to the specification of URIs, but also in the description component, but in the description it doesn't work. Quite generally, I wonder whether there is (or, why there is not) a generic escape character (e.g. the backslash), which would also allow for escaping other characters of the org markup syntax, such as * or /. So far this was something like a feature request, but there is also one actual bug: When I insert or edit a link with org-insert-link (C-c C-l) and insert square brackets into the link description, they are rewritten to {...}, which I do not consider acceptable. If there is any escape syntax, they should rather be rewritten using that escape syntax. Thanks in advance for any pointers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Bug: can't use square brackets in link descriptions;
Dear org-mode developers, I am desperately trying to get a square bracket into the description of a link. That is, in an org file that I want to export to HTML, I would like to have the source a href=http://example.org;foo [bar]/a and of course I would like to avoid using XML character entities such as #5b; for [, for two reasons: 1. It is painful. 2. I might eventually want to export my org file to some other format than HTML. I noticed this post on escaping in org links (http://article.gmane.org/gmane.emacs.orgmode/37888), but apparently I didn't understand it. I thought that escaping as %5B might work – not only in the link component of a link, where it works due to the specification of URIs, but also in the description component, but in the description it doesn't work. Quite generally, I wonder whether there is (or, why there is not) a generic escape character (e.g. the backslash), which would also allow for escaping other characters of the org markup syntax, such as * or /. So far this was something like a feature request, but there is also one actual bug: When I insert or edit a link with org-insert-link (C-c C-l) and insert square brackets into the link description, they are rewritten to {...}, which I do not consider acceptable. If there is any escape syntax, they should rather be rewritten using that escape syntax. Thanks in advance for any pointers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] Bugs/features of accumulating property values when used with entries (concretely: in org-contacts)
Hi Seb, thanks for your help! 2011-12-26 15:50 Sebastien Vauban: Christoph LANGEch.la...@jacobs-university.de writes: 2. accumulation doesn't work within the same entry; details follow: So when I changed the above contact entry to * Contact Name :PROPERTIES: :EMAIL:f...@bar.org :EMAIL+: b...@baz.org :END: I would have expected (org-entry-get (point) EMAIL t) to evaluate to, well, at least f...@bar.org b...@baz.org (and in some later version of org-mode maybe to a two-item list, for even easier automated processing). But I got the following unexpected results, which indicate that accumulation is not yet supported in this context (well, if it was ever _intended_…): … AFAIK the `+' is only supported at this stage for the `var' property: you can't take any property and add a `+' to transform it in an accumulative property. Whether this should be restricted by default or open by default, I have no opinion at this stage. If it is intended to be limited to the var property, then at least the documentation (Property syntax) needs fixing, as it states generally: If you want to add to the value of an existing property, append a `+' to the property name. But thanks a lot for pointing this out: I know, however, multivalued properties are sort of already well supported. See http://orgmode.org/manual/Using-the-property-API.html for more info. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Patch for org-beamer.el: mark frames containing \lstinline as fragile
Dear org-mode developers, please find attached a patch for org-beamer.el that also recognizes \lstinline and \verb as commands that make a frame fragile. Cheers, and thanks, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701 diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el index 118aa75..d64ce2d 100644 --- a/lisp/org-beamer.el +++ b/lisp/org-beamer.el @@ -399,7 +399,7 @@ the value will be inserted right after the documentclass statement. (insert org-beamer-header-extra) (or (bolp) (insert \n)) -(defcustom org-beamer-fragile-re ^[ \t]*begin{\\(verbatim\\|lstlisting\\|minted\\)} +(defcustom org-beamer-fragile-re \\(verb\\|lstinline\\)\\|^[ \t]*begin{\\(verbatim\\|lstlisting\\|minted\\)} If this regexp matches in a frame, the frame is marked as fragile. :group 'org-beamer :type 'regexp)
[O] 'Missing' link to the release notes on the homepage
Hi Bastien, dear all, Congratulations on the new release and the new homepage! Some quick feedback about the new homepage: I would have expected a link to the release notes from the following text on http://orgmode.org/org-mode-news.html: Latest news 2011-12-12 Release 7.8, 7.8.01 and 7.8.02. I know that the release notes exist, and that they are linked from the download page, but the latter is simply not the only place where I'd expect them. Overall I like the new homepage design. Just a minor issue, which, I think (didn't read the whole thread, just searched for the issue), hasn't been mentioned so far: One problematic side-effect of the fixed head bar, at least in Firefox and Opera, is that is impairs page-wise scrolling. When I hit page down, some lines of text (as much as the height of the head bar) is skipped. If you are lucky enough to _notice_ that, you have to manually work around by scrolling the page a few lines up again. – But I have no idea for fixing, other than un-fixing the head bar – which you may find undesirable for other reasons. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] Bugs/features of accumulating property values when used with entries (concretely: in org-contacts)
Dear all, noticing the new feature Property names ending in + accumulate (as described on http://orgmode.org/Changes.html#accumulating-property-keywords – BTW, this exposes another issue with the fixed head bar on the new homepage, as the actual link target is hidden by the head bar), I thought I could use it in the property drawers of the entries of my org-contacts file, and noticed the following problems: 1. font lock (aka syntax highlighting) does not yet recognize :PROPERTY+: 2. accumulation doesn't work within the same entry; details follow: For some of my contacts I'd like to record multiple phone numbers or e-mail addresses. So far I have been doing that in an ad hoc manner, e.g. * Contact Name :PROPERTIES: :EMAIL:f...@bar.org, b...@baz.org :END: While I have not yet automated my usage of org-contacts, I thought it would be more scalable and more accessible to future scripting if multi-valued properties had a clear multi-value representation. (So the feature is not yet mission-critical for me.) I thought that the new accumulation feature might be suitable for that. (Or did I misunderstand the feature?) So when I changed the above contact entry to * Contact Name :PROPERTIES: :EMAIL:f...@bar.org :EMAIL+: b...@baz.org :END: I would have expected (org-entry-get (point) EMAIL t) to evaluate to, well, at least f...@bar.org b...@baz.org (and in some later version of org-mode maybe to a two-item list, for even easier automated processing). But I got the following unexpected results, which indicate that accumulation is not yet supported in this context (well, if it was ever _intended_…): (org-entry-get (point) EMAIL t) → f...@bar.org (org-entry-get (point) EMAIL+ t) → b...@baz.org Cheers, and thanks for any help, Christoph PS: org-contacts may not be the best tool to use anyway. I like it so far, but if you know a better alternative that satisfies my requirements, I'd appreciate hints. My requirements so far are: * easily capturing information about contacts (addresses, birthdays, but also arbitrary other information) * grouping contacts (e.g. by tagging them) * linking to contacts from other org files * for easy display and editing (e.g. like org columns) -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] How to estimate effort by week?
Hi Bernt, thanks a lot for your advice. Sorry, but it took some time until I found the time for trying it. I think I understood how it works. Below I just have some minor questions. 2011-11-19 16:32 Bernt Hansen: Is this to help limit you to that time per week or for estimating? Indeed I was interested in limiting the time that I spend on some task. For limiting you can set up something like this: --8---cut here---start-8--- * STARTED Some task ^^^ OK, so this example uses another TOOD keyword, which I haven't had before. I understand that your example also works without introducing a new state, but I'm not yet sure what TODO states I need to use this feature most efficiently. See below for a more specific question about that. SCHEDULED:2011-11-21 Mon +1w :LOGBOOK: - State DONE from STARTED[2011-11-19 Sat 10:27] If I understand correctly, this mainly follows the habit tracking documented on the info page Tracking your habits – right? CLOCK: [2011-11-19 Sat 10:25]--[2011-11-19 Sat 10:27] = 0:02 CLOCK: [2011-11-19 Sat 09:28]--[2011-11-19 Sat 10:27] = 0:59 :END: :PROPERTIES: :Effort: 1:00 :LAST_REPEAT: [2011-11-19 Sat 10:27] :END: Limit work to 60 minutes per week Let it repeat for next week --8---cut here---end---8--- where the task repeats at some interval (weekly since you want to work up to 1 hour per week on this task). When you clock in the task the modeline shows your current clocked minutes on the task _since your last repeat_. OK, that's basically what I wanted to achieve, and it's very nice that the clocked minutes are also shown in a warning face here when I exceed the limit. Set your Effort property to the limit you want for the task for the interval and set your repeat to the size of your interval (1 hour per week in this case) So when you reach the limit of 1 hour (in this case) you mark the task DONE which stops the clock and rescheduled the task to the next repeat date. More realistically I won't do that after one hour, but continue working on that task (with a guilty conscience), and then mark it DONE around the end of the week ;-) OK, I see that marking such a task as DONE does not actually leave it in the DONE state but takes it back to the first TODO state. So far I had the TODO sequence TODO DELEGATED | DONE CANCELLED and tried to extend it to TODO DELEGATED STARTED | DONE CANCELLED, but that would take my repeating task back to TODO instead of STARTED after marking it DONE. I think a separate sequence of states would make more sense; maybe STARTED | RESTARTED? When you clock the task in again the modeline shows 0:00 and counts up to the effort limit again. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] How to estimate effort by week?
Dear all, is there any way of estimating effort by week? I have some tasks on which I don't want to waste too much time per week. For other tasks, on which I don't want to waste too much time per _day_, I can use the following properties: :PROPERTIES: :CLOCK_MODELINE_TOTAL: today :Effort: 0:15 :END: There is no immediate equivalent for a week (or for any other timespan). But is there possibly some workaround? Cheers, and thanks, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] How to estimate effort by week?
Hi Christian, 2011-11-18 17:32 Christian Egli: Christoph LANGEch.la...@jacobs-university.de writes: is there any way of estimating effort by week? Have a look at the doc string of org-effort-durations. Documentation: Conversion factor to minutes for an effort modifier. Thanks for your pointer, but (if I got you right) that wasn't what I meant to ask. So let me try to ask more precisely: I was not interested in expressing that a task would take me an estimated time of N weeks, but in expressing that I would spend at most some amount of time per week on that task. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] How to link to a fragment (aka anchor/bookmark) of a local file (e.g. a TiddlyWiki)?
Hi Samuel, 2011-11-09 19:03 Samuel Wales: If you search for ID markers in the ML archives, you will find a proposal by me that provides mechanism for this that is non-brittle. thanks for this pointer. This is definitely helpful and interesting information for me – when working _within_ org-mode. I am actually a semantic web researcher and thus highly interested in giving everything an ID that can be linked to – not just for my research, but, of course, also for my personal knowledge management. But my question in this thread was a different one: linking to fragments of _external_ files, most commonly HTML files that I'd like to open outside of Emacs in a browser. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] How to link to a fragment (aka anchor/bookmark) of a local file (e.g. a TiddlyWiki)?
Hi Samuel, 2011-11-11 21:30 Samuel Wales: I thought I had explained pretty clearly in the proposals that ID markers can be put in comments in the /external/ files. Ah, OK, sorry, I didn't notice that. But, anyway, I'm not sure if I'd want to put such markers into all pages of my TiddlyWiki. And while that would still be _possible_, I'm sure that there is also a use case for linking to fragments of local HTML files that you really don't want to change or can't change. Imagine being a non-privileged user and linking via file:///path/to/software/manual.html#feature to some section of the manual of a software installed by an admin user, or to some downloaded e-book or archived web page. Org IDs in external files -- which I propose to be in ID markers -- are as unbreakable as you can arrange in a practical way. BTW that reminds me of purple numbers (http://en.wikipedia.org/wiki/Purple_Numbers), which I have seen in some wikis. But they don't scale as well as your ID markers. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
[O] How to link to a fragment (aka anchor/bookmark) of a local file (e.g. a TiddlyWiki)?
Dear all, I know that org-mode supports links to local files via relative file: URLs, e.g. file:filename.html. It also supports links to fragments (aka anchors/bookmarks) in remote files via http: URLs, e.g. http://www.example.org/filename.html#section2. Now, is there a way to combine these? I would like to use something like file:filename.html#section2 to link to a fragment in a file that is in the same directory as my org file. For portability reasons I don't want to use any other way of linking to that file than a relative file: URL. Please read on if and only if you are interested in my reasons for wishing for such a feature :-) My concrete use case is that before learning about org-mode I managed my personal knowledge in a TiddlyWiki (http://www.tiddlywiki.com/), and some of my knowledge I'm still keeping there. (Why? See below.) The pages (tiddlers) in a TiddlyWiki can be accessed as fragments of the TiddlyWiki HTML file, e.g. file:/path/to/tiddly.html#WikiPage. I have my TiddlyWiki file in the same directory as my org file and would like to link to specific pages of it using file:tiddly.html#WikiPage in order to achieve a tight integration between both knowledge collections. FYI, and really just FYI, as I don't want to start a flamewar: The one single thing that I still like better in TiddlyWiki than in org-mode and that I haven't been able to reproduce in org-mode is that I can organize my knowledge in a hierarchical and linked way by tagging pages with other pages. E.g. I could have a page OrgMode tagged with ProductivityTool, where ProductivityTool would not merely be a tag, but the name of another page, which contains general information about such tools. That is, to the best of my knowledge, not possible in org-mode, which treats outline headlines and tags as two completely different things. Cheers, and thanks in advance for any help, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
Re: [O] org-contacts and dates before 1970
Dear all, please allow me to follow up on this mail with the question of how this is really done. On Sun, May 22, 2011 at 20:03, Eric S Fraga e.fr...@ucl.ac.uk wrote: Le Wang l26w...@gmail.com writes: I'm seeing another issue now, where if any org contact has a birthday pre 1970, I get the error Bad sexp at line xxx Does this work for anyone else? … This is probably related to the same problem as discussed in this thread: http://thread.gmane.org/gmane.emacs.orgmode/39206 I had the same problem and studied that thread, but still I have no idea of what to put into the BIRTHDAY field of an org-contact. It must be something like :BIRTHDAY: %%(…) but what expression do I have to use? I tried something like %%(org-date 2011 08 22), but that does not work (same error: Bad sexp) Cheers, and thanks in advance for any help, Christoph -- Christoph Lange, http://de.wikipedia.org/wiki/Benutzer:Langec, ICQ# 51191833
[Orgmode] Bug: clocktable :link often jumps to wrong target [6.36c]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Links created by clocktable :link are simple text search links. Therefore, they often hit the wrong target. For example, I used to have multiple clocktables at the beginning of my file: first a daily summary, then a weekly one, then a complete one, i.e. following clocktables summarized supersets of preceding ones. Therefore, most of the time I clicked a link in the first clocktable, the next text search target was the occurrence of the same task in the second clocktable, whereas clicking that link in the second clocktable would take me back into the first. I have been able to partly work around that by moving the clocktables to the end of the file, as the search always seems to start at the beginning of the file. Nevertheless, when I have two tasks foobar and foo, occurring in that order in the file, clicking on the [[foo]] link in the clocktable takes me to the foobar task, as that has a foo substring and occurs first in the file. I would like clocktable to generate links that uniquely link to the task from which the particular clocktable entry has been generated. (I'd even be willing to assign CUSTOM_ID properties for that purpose, i.e. clocktable could take them into account for creating links, when they exist.) But the best solution would IMHO be a truly unique identification, e.g. by some XPath-like path, e.g. /1/2/3 for the 3rd subtask of the 2nd subtask of the 1st top-level task. (Sure, that order will be invalidated when I change my task list, but, so what, then I would be willing to recompute the clocktable before using links.) Emacs : GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.9) of 2010-06-15 on thinkpad Package: Org-mode version 6.36c current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-files '(~/svn/kwarc.info/clange/default.org) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-clock-idle-time 10 ) -- Christoph Lange, Jacobs Univ. Bremen, http://kwarc.info/clange, Skype duke4701 signature.asc Description: This is a digitally signed message part. ___ 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] Bug: Scope by tag in clock report dynamic blocks [6.33f]
2010-01-29 16:48 Giovanni Ridolfi giovanni.rido...@yahoo.it: Christoph LANGE ch.la...@jacobs-university.de writes: At the end of the week, I would like to get an overview of how much time I spent on normal/important/very important tasks. The total time (throughout the whole file) is all I need, but why not also optionally have a detailed breakdown? So a clock report dynamic block would be the thing I need, but then I would like to select its scope not by file or tree, but by tag. I.e. that all tasks that match a given tag search string would be considered. what about: overview of the file C-c \ :important: C-c C-x C-d Thanks – that helps me selecting the tasks by tag. But it does not respect the desired time interval (e.g. this week or last week). Is there some way of combining selection by tag and time interval? Cheers, Christoph -- Christoph Lange, Jacobs Univ. Bremen, http://kwarc.info/clange, Skype duke4701 signature.asc Description: This is a digitally signed message part. ___ 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] Bug: Scope by tag in clock report dynamic blocks [6.33f]
--text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Dear developers, this is actually a feature request. What is the right way to submit it? I'm using Org-mode to keep track of my working time. I have a tree of tasks and subtasks, and there are currently normal tasks, important tasks, and very important tasks, where I'm distinguishing the latter two ones by tags. (Maybe I should rather use priorities instead, but clock reports don't support them either, and not all tasks are TODOs.) At the end of the week, I would like to get an overview of how much time I spent on normal/important/very important tasks. The total time (throughout the whole file) is all I need, but why not also optionally have a detailed breakdown? So a clock report dynamic block would be the thing I need, but then I would like to select its scope not by file or tree, but by tag. I.e. that all tasks that match a given tag search string would be considered. Emacs : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6) of 2010-01-22 on localhost Package: Org-mode version 6.33f current state: == (setq org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) org-clock-idle-time 10 ) ___ 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