Re: [O] Sticky Agenda buffer: Announcement and request for testing
Hi, Thanks for the new possibility! It works as described. I have a few functions based on the org-agenda-buffer-name, which now is no more available, as all the agenda buffers are named differently: .. (if (get-buffer org-agenda-buffer-name) .. will no more work. I hope that the current agenda buffer names pattern will stay as it is. I will have to hardcode the changed buffer names. Thanks, Rainer Am 11.03.2012 13:48, schrieb Dominik, Carsten: Hi everyone, already in Januar, Max Mikhanosha had published the first version of his code to implement multiple agenda buffers. I have worked with him over the last few weeks, and we think that it is now quite stable. Sticky agenda buffers (this is how Max calls it now) means the ability to keep multiple agenda buffer around. So while this does not cut down on the time it takes to create an agenda view, it has massive impact in a situation where you would like to switch between different agenda views frequently. The code it available in the git repository, in the branch max-sticky-agenda. And it would be great if a few people could go ahead and do some testing before we merge it. Testing should be done both with sticky buffers turned off and turned on. We have made it now very simple to test it: git pull origin git checkout max-sticky-agenda Then, in Emacs, use the `*' key in the agenda dispatcher to turn sticky buffers on and off. Since sticky buffers are not made new each time you look at them, you need to update them when you think it is needed, by pressing `g' or `r' in the buffer. To make sure all buffer are rebuilt, use `C-c a * *', so press the star twice to toggle sticky buffer off and back on. This will remove all existing agenda buffers, so that they will be made again when you dispatch to them. Regards - Carsten and Max
Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Am 20.02.2012 21:38, schrieb Nick Dokos: Nick Dokos nicholas.do...@hp.com wrote: Adding ... (org-agenda-start-day (ndk/org-first-of-month)) (org-agenda-span 'month) ... to your custom agenda command, with (defun ndk/org-first-of-month () (let ((d (calendar-current-date))) (calendar-absolute-from-gregorian (list (car d) 1 (caddr d) should do it. Same thing but somewhat more readable: --8---cut here---start-8--- (defun ndk/org-first-of-month () (let* ((d (calendar-current-date)) (m (calendar-extract-month d)) (y (calendar-extract-year d))) (calendar-absolute-from-gregorian (list m 1 y --8---cut here---end---8--- Nick Hi Nick, thanks for helping! I now see the current whole month. Is there a variable which includes the current starting date of the agenda instead of the calendar-current-date? Using that I could start my month-overview for the month I see in my agenda. Configuring (org-agenda-archives-mode 'trees) also show the archived trees. What I cannot achieve is starting the log with clockcheck mode. (org-agenda-show-log 'clockcheck) does not work. Any ideas? - Rainer My current config is here: .. (0m agenda + no todos - whole month - log-mode - ARCHIVE included - clock report agenda ( (org-agenda-sorting-strategy '(time-up priority-down)) (org-agenda-span 'month) (org-agenda-start-with-log-mode t) (org-agenda-archives-mode 'trees) (org-agenda-start-day (ndk/org-first-of-month)) (org-agenda-start-with-clockreport-mode t) (org-agenda-show-log 'clockcheck) )) ..
[O] org-agenda-clockreport-mode does not include archived entries? How to?
Hi! Last week I archived lots of headlines in order to speed up the agenda refresh. This week I am checking my monthly clock report in the agenda with v R (Toggle Clockreport mode). What I find is that org-agenda-clockreport-mode does not seem to include archived entries, which seems to be a contradiction to the documentation where I find (org-clock-report) .. The clock table always includes also trees with :ARCHIVE: tag. This is bad as I now have lots of holes in my clock report view. How can I include archived entries? Rainer
Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Am 20.02.2012 09:36, schrieb Carsten Dominik: On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote: Hi! Last week I archived lots of headlines in order to speed up the agenda refresh. This week I am checking my monthly clock report in the agenda with v R (Toggle Clockreport mode). What I find is that org-agenda-clockreport-mode does not seem to include archived entries, which seems to be a contradiction to the documentation where I find (org-clock-report) .. The clock table always includes also trees with :ARCHIVE: tag. Did you archive using the ARCHIVE tag, or did you archive to a separate file? - Carsten This is bad as I now have lots of holes in my clock report view. How can I include archived entries? Rainer Carsten, I think I made a mistake in describing my problem. WHat I find is that doing a v c in agenda to check the clock overlappings I suddenly found lots of holes after archiving a lot of headlines with the ARCHIV tag. Can I do a v c including the archived entries? - Rainer
Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Am 20.02.2012 11:09, schrieb Carsten Dominik: On Feb 20, 2012, at 9:39 AM, Rainer Stengele wrote: Am 20.02.2012 09:36, schrieb Carsten Dominik: On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote: Hi! Last week I archived lots of headlines in order to speed up the agenda refresh. This week I am checking my monthly clock report in the agenda with v R (Toggle Clockreport mode). What I find is that org-agenda-clockreport-mode does not seem to include archived entries, which seems to be a contradiction to the documentation where I find (org-clock-report) .. The clock table always includes also trees with :ARCHIVE: tag. Did you archive using the ARCHIVE tag, or did you archive to a separate file? - Carsten This is bad as I now have lots of holes in my clock report view. How can I include archived entries? Rainer Carsten, I think I made a mistake in describing my problem. WHat I find is that doing a v c in agenda to check the clock overlappings I suddenly found lots of holes after archiving a lot of headlines with the ARCHIV tag. Can I do a v c including the archived entries? You could try to do first `v a' or even `v A' to add archived stuff, and then `v c' to get to the clock issues. Not sure if it will work, but it may be worth a try. - Carsten - Rainer - Carsten Thanks! Yes, 'v a' and then 'v c' does it! Can I build a custom agenda view including all archived trees, showing the 'v c' entries and appending the clock report? - Rainer
Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Am 20.02.2012 13:53, schrieb Rainer Stengele: Am 20.02.2012 11:09, schrieb Carsten Dominik: On Feb 20, 2012, at 9:39 AM, Rainer Stengele wrote: Am 20.02.2012 09:36, schrieb Carsten Dominik: On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote: Hi! Last week I archived lots of headlines in order to speed up the agenda refresh. This week I am checking my monthly clock report in the agenda with v R (Toggle Clockreport mode). What I find is that org-agenda-clockreport-mode does not seem to include archived entries, which seems to be a contradiction to the documentation where I find (org-clock-report) .. The clock table always includes also trees with :ARCHIVE: tag. Did you archive using the ARCHIVE tag, or did you archive to a separate file? - Carsten This is bad as I now have lots of holes in my clock report view. How can I include archived entries? Rainer Carsten, I think I made a mistake in describing my problem. WHat I find is that doing a v c in agenda to check the clock overlappings I suddenly found lots of holes after archiving a lot of headlines with the ARCHIV tag. Can I do a v c including the archived entries? You could try to do first `v a' or even `v A' to add archived stuff, and then `v c' to get to the clock issues. Not sure if it will work, but it may be worth a try. - Carsten - Rainer - Carsten Thanks! Yes, 'v a' and then 'v c' does it! Can I build a custom agenda view including all archived trees, showing the 'v c' entries and appending the clock report? - Rainer A custom agenda command like this does show the logs and the clock report, but why do I only get a weeks overview, not a month? ... (0m agenda + no todos - whole month - log-mode - ARCHIVE included - clock report agenda ((org-agenda-sorting-strategy '(time-up priority-down)) (org-agenda-span 'month) (org-agenda-start-with-log-mode t) (org-agenda-start-with-clockreport-mode t) (org-agenda-overriding-header Month Agenda - +ARCHIVE + clockreport + 'v c' showing gaps etc.))) ... Thanks, - Rainer
Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Am 20.02.2012 17:32, schrieb Nick Dokos: Rainer Stengele rainer.steng...@online.de wrote: A custom agenda command like this does show the logs and the clock report, but why do I only get a weeks overview, not a month? ... (0m agenda + no todos - whole month - log-mode - ARCHIVE included - clock report agenda ((org-agenda-sorting-strategy '(time-up priority-down)) (org-agenda-span 'month) I was having similar problems and it turned out that I had some setting of the (obsolete) variable org-agenda-ndays in some init file and that was causing me problems. I hunted all the settings down, eliminated them and use *only* org-agenda-span: things seem to work as expected. No idea of course whether that's your problem, but it might be worth checking. Nick Thanks, Nick, that did it. Having configured 'month in org-agenda-soan how can I start my agenda at the beginning of the month? I only find org-agenda-start-on-weekday and org-agenda-start-day, but no possibility to set the 1st of the current month. What I really want is a calendar range for current month like 1st of month until and including today. - Rainer
Re: [O] Unable to unfold a folded block having point directly after the folded block
Am 04.01.2012 11:27, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@online.de writes: I just pulled and checked but cannot see a change. Did you check in the fix already? Yes I did. Try with (setq org-special-ctrl-a/e nil) C-e goes *after* the end of the invisible region and TAB will do nothing here, either in a folded subtree or in a folded drawer. With (setq org-special-ctrl-a/e 'reversed) C-e goes *right before* the end of the invisible region and TAB will unfold as expected, both in a folded subtree or in a folded drawer. This behavior is more consistent than the previous one. But you need to set `org-special-ctrl-a/e' according to your needs. HTH, Hi Bastien and Carsten, I do have (setq org-special-ctrl-a/e 'reversed) and it works as expected when jumping to the end of line with C-e. But I do use cursor keys to move one line down. Point at end of line and moving down one line with cursor down I cannot unfold the block by pressing TAB. Is there a chance to get this done when using the cursor movement? Thanks, Rainer
Re: [O] Unable to unfold a folded block having point directly after the folded block
Am 02.01.2012 19:53, schrieb Bastien: Hi Rainer, Rainer Stengelerainer.steng...@online.de writes: Having *** Headline :LOGBOOK: - point is at the end of the headline - moving one line down I am at the end of the LOGBOOK line There I cannot open the folded LOGBOOK block withTAB. I have to move point one character back in order to unfold it withTAB. After that I can no more reach the end of this line like before, where I could not unfold withTAB. Is this intended? No. This is fixed now. Thanks, Hi Bastien, I just pulled and checked but cannot see a change. Did you check in the fix already? Thanks! Rainer
[O] Unable to unfold a folded block having point directly after the folded block
Hi, I experience an annoying behaviour: Having *** Headline :LOGBOOK: - point is at the end of the headline - moving one line down I am at the end of the LOGBOOK line There I cannot open the folded LOGBOOK block with TAB. I have to move point one character back in order to unfold it with TAB. After that I can no more reach the end of this line like before, where I could not unfold with TAB. Is this intended? I would appreciate being able to unfold a block when being directly after the last character of the folded thing. Would it make sense to be able to configure such a behaviour? Rainer
Re: [O] agenda secondary filtering by category
Am 04.11.2011 14:02, schrieb Rainer Stengele: Hi Bastien, excellent! Thanks a lot. This will speed up working in the agenda! Rainer Am 04.11.2011 13:34, schrieb Bastien: Hi Rainer, This is a frequent request, and a very reasonable one. I have a patch for this, I just need to polish it a bit. I will commit it over the week-end. Thanks, Hi Bastien, did you commit the patch? I can't seem to find it by pressing / in agenda view. I would still find it very interesting and useful. Thanks, Rainer
[O] agenda secondary filtering by category
Hi all, I love the fast way of secondary filtering by tag. I already have several custom agenda views sorted by category. Having lots of org files the display of the result of a custom agenda view is slow on my machines. I would therefore love to have the possibility of secondary filtering by category. What do others think? Best, Rainer
Re: [O] agenda secondary filtering by category
Hi Bastien, excellent! Thanks a lot. This will speed up working in the agenda! Rainer Am 04.11.2011 13:34, schrieb Bastien: Hi Rainer, This is a frequent request, and a very reasonable one. I have a patch for this, I just need to polish it a bit. I will commit it over the week-end. Thanks,
[O] Orgmode performance problem and solution
Hi all, after upgrading my Emacs from version 23 to GNU Emacs 24.0.90.1 (i386-mingw-nt5.1.2600) of 2011-10-19 on MARVIN Org ran terribly slow. Cursor movement was slow, clock adjustment also etc. After having an issue which was solved immediately by Nicolas Goaziou I changed my repository from git://repo.or.cz/org-mode.git to git://orgmode.org/org-mode.git in order to be able to pull his fix immediately. Lacking knowledge of git I deleted everything, cloned from the new repo and compiled the files. Result was a significantly faster Org experience. Sorry I have no explanation but maybe someone who has performance problems may try to checkout from scratch and recompile. Org-mode version 7.7 (release_7.7.464.g679a0.dirty) Windows XP SP3 Regards, Rainer
Re: [O] Orgmode performance problem and solution
No, the old repo git://repo.or.cz/org-mode.git I used is some time behind the one I use now. If I want to get a fix immediately I learned I have to use the new repo git://orgmode.org/org-mode.git I hope I got this right. Rainer Am 26.10.2011 14:11, schrieb suvayu ali: On Wed, Oct 26, 2011 at 10:07, Rainer Stengele rainer.steng...@online.de wrote: Lacking knowledge of git I deleted everything, cloned from the new repo and compiled the files. Result was a significantly faster Org experience. For future reference, a sinple `git pull` would have sufficed.
Re: [O] Bug?: handling asterisks * in HTML export
I have the same problem this org file creates the bug: * headline * test this doesn't: * headline - test Best, Rainer Am 25.10.2011 15:21, schrieb Giovanni Ridolfi: 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. Emacs : GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO Package: Org-mode version 7.7 2429e834915a11b58c85f18488976e274d6ce387 I found two errors of org while handling asterisks * in HTML export. I don't think this is a bug, but I think it is worth to report. I wrote my test.org file (see below). Then I tried to html-export a subtree: C-c @ C-c C-e B and I got the errors: (wrong-type-argument stringp nil) or (args-out-of-range [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] -1) Before trying to reporduce, please, remember to change the tag :noexport: e.g. adding a letter :noexporti: ne eksporti ;-) so you can export only a section of the file. The complete debug trace is under the heading * backtraces. The culprit sholud be string-match(^ *QUOTE\\( +\\|[ ]*$\\) nil). cheers, Giovanni test.org -- -*- mode: org; -*- * [2011-10-25 mar] test list asterisk hello ** 1 * without space :noexport: * hello ** test 2 ** without space :noexport: ** I found a bug? an error? ** test 3: * with a space :noexporti: * newline * backtraces ** backtrace 1 Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match(^ *QUOTE\\( +\\|[ ]*$\\) nil) (if (string-match quote-re0 txt) (setq txt (replace-match t t txt))) (cond ((string-match \\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ ]*$ line) (setq level ... txt ...) (if ... ...) (if ... ...) (setq first-heading-pos ...) (org-html-level-start level txt umax ... head-count opt-plist) (when ... ... ... ...)) ((and org-export-with-tables ...) (when ... ...) (setq table-buffer ... table-orig-buffer ...) (when ... ... ... ...)) (t (when ... ...) (when ... ... ...) (if ... ...) (when org-export-with-footnotes ... ...) (cond ... ...) (let ... ...) (insert line \n))) (catch (quote nextline) (when (and inquote ...) (insert /pre\n) (org-open-par) (setq inquote nil)) (when inquote (insert ... \n) (throw ... nil)) (when (and org-export-with-fixed-width ...) (when ... ... ... ...) (insert ... \n) (when ... ... ... ...) (throw ... nil)) (when (and ... ...) (let ... ... ... ... ...) (throw ... nil)) (when (equal ORG-BLOCKQUOTE-START line) (org-close-par-maybe) (insert blockquote\n) (org-open-par) (throw ... nil)) (when (equal ORG-BLOCKQUOTE-END line) (org-close-par-maybe) (insert \n/blockquote\n) (org-open-par) (throw ... nil)) (when (equal ORG-VERSE-START line) (org-close-par-maybe) (insert \np class=\verse\\n) (setq org-par-open t) (setq inverse t) (throw ... nil)) (when (equal ORG-VERSE-END line) (insert /p\n) (setq org-par-open nil) (org-open-par) (setq inverse nil) (throw ... nil)) (when (equal ORG-CENTER-START line) (org-close-par-maybe) (insert \ndiv style=\text-align: center\) (org-open-par) (throw ... nil)) (when (equal ORG-CENTER-END line) (org-close-par-maybe) (insert \n/div) (org-open-par) (throw ... nil)) (run-hooks (quote org-export-html-after-blockquotes-hook)) (when inverse (let ... ... ...)) (setq start 0) (while (string-match ?\\([^]*\\)?\\((INVISIBLE)\\)?[ ]*\n? line start) (cond ... ... ... ...)) (setq line (org-html-handle-time-stamps line)) (or (string-match org-table-hline-regexp line) (string-match ^[ ]*\\([+]-\\||[ ]\\)[-+ |]*[+|][ ]*$ line) (setq line ...)) (setq line (org-html-handle-links line opt-plist)) (if (and org-todo-line-regexp ... ...) (setq line ...)) (when org-export-with-footnotes (setq start 0) (while ... ...)) (cond (... ... ... ... ... ... ...) (... ... ... ...) (t ... ... ... ... ... ... ...))) (while (setq line (pop lines) origline line) (catch (quote nextline) (when ... ... ... ...) (when inquote ... ...) (when ... ... ... ... ...) (when ... ... ...) (when ... ... ... ... ...) (when ... ... ... ... ...) (when ... ... ... ... ... ...) (when ... ... ... ... ... ...) (when ... ... ... ... ...) (when ... ... ... ... ...) (run-hooks ...) (when inverse ...) (setq start 0) (while ... ...) (setq line ...) (or ... ... ...) (setq line ...) (if ... ...) (when org-export-with-footnotes ... ...) (cond ... ... ...))) (let ((case-fold-search nil) (org-odd-levels-only odd)) (mapc (lambda ... ...) org-export-plist-vars) (setq umax (if arg ... org-export-headline-levels)) (setq umax-toc (if ... ... umax)) (unless body-only (insert ...) (when ... ...) (insert ... \nh1 class=\title\ title
Re: [O] Bug?: handling asterisks * in HTML export
Am 25.10.2011 16:42, schrieb Nicolas Goaziou: Hello, Giovanni Ridolfi giovanni.rido...@yahoo.it writes: I found two errors of org while handling asterisks * in HTML export. I don't think this is a bug, but I think it is worth to report. I've pushed a fix in master. Could you confirm that it is working? Please note that single stars, in part 1 and 3, won't appear in the HTML output as they are correctly interpreted as empty list items. Thanks for reporting this. Regards, Hi Nicolas, works as expected. Thanks a lot! Rainer
[O] Cannot display images inline any more
Hi all, I am no more able to display images inline. I was able when I used Emacs-23-CvsP091103-EmacsW32-1.58.exe. I have for example [[file:c:/img.jpg]] which is exported correctly as html. In Emacs, after C-c C-x v Org says: No images to display inline. Does anybody use Emacs 24.0.90.1 and is able to display images inline? Regards, Rainer Org-mode version 7.7 (release_7.7.449.g2055) GNU Emacs 24.0.90.1 (i386-mingw-nt5.1.2600) of 2011-10-19 on MARVIN
Re: [O] Cannot display images inline any more
Am 21.10.2011 15:33, schrieb Sebastien Vauban: Hi Suvayu and Rainer, suvayu ali wrote: On Fri, Oct 21, 2011 at 2:39 PM, Rainer Stengele rainer.steng...@online.de wrote: I have for example [[file:c:/img.jpg]] which is exported correctly as html. In Emacs, after C-c C-x v Org says: No images to display inline. Does anybody use Emacs 24.0.90.1 and is able to display images inline? My Emacs is 2 days older than yours and it works fine. I wonder if it's not related to some types of images (PNG, JPG) and Emacs 24 under Windows. Have read such things, IIRC. Best regards, Seb Well, who is telling me No images to display inline? Is it Emacs or Org? How could I debug the funtion? Anybody? Rainer
Re: [O] Cannot display images inline any more = solved
Am 21.10.2011 16:19, schrieb Jambunathan K: Rainer Stengele rainer.steng...@online.de writes: Am 21.10.2011 15:33, schrieb Sebastien Vauban: Hi Suvayu and Rainer, suvayu ali wrote: On Fri, Oct 21, 2011 at 2:39 PM, Rainer Stengele rainer.steng...@online.de wrote: I have for example [[file:c:/img.jpg]] which is exported correctly as html. In Emacs, after C-c C-x v Org says: No images to display inline. Does anybody use Emacs 24.0.90.1 and is able to display images inline? My Emacs is 2 days older than yours and it works fine. I wonder if it's not related to some types of images (PNG, JPG) and Emacs 24 under Windows. Have read such things, IIRC. Best regards, Seb Well, who is telling me No images to display inline? Is it Emacs or Org? How could I debug the funtion? C-h v dynamic-library-alist C-h v image-library-alist You can copy the required dll to bin if you are on Windows. Anybody? Rainer Ok, that was it. I copied the libs from my old emacs w32 installation to my emacs bin folder and that did it. I never knew that Lennard Borgman did the nice job packaging these libs in his emacsw32 (which is out of date unfortunately - thanks Lennard anyway). Thank you for the hint Jambunathan, helped me to understand a bit more of how emacs is working. Rainer
Re: [O] `f' in agenda view
Am 13.10.2011 15:59, schrieb Dave Abrahams: on Thu Oct 13 2011, Rainer Stengele rainer.stengele-AT-online.de wrote: Am 13.10.2011 10:47, schrieb Rainer Stengele: Me too I sometimes run into this situation where I just want to shift past-dated items to today. I never had a use case where I wanted to shift an item from past to past+n-daystoday. Rainer Well, as indicated somewhere else a C-c C-s +1 for shifting to tomorrow or C-c C-s . for shifting to today does exactly what I wanted. The power is in the house already. Yeah, it's just a question of having to think absolutely when you want to think incrementally. That's a lot of keystrokes when what I want is to hit `f' (or something) 3 times to move the items to three days from now. Having bound F3 to kmacro-start-macro-or-insert-counter F4 kmacro-end-or-call-macro for the first entry in the agenda I want to shift forward 3 days I enter F3 C-c C-s +3 Enter F4 for each following entry I put point in the line and press F4 for 3 items that makes a total of 8+2=10 keypresses for 4 items that makes a total of 8+3=11 keypresses etc. Best, Rainer
Re: [O] do it today, or well, tomorrow
Am 12.10.2011 22:25, schrieb John Wiegley: Andrea Crotti andrea.crott...@gmail.com writes: On 10/12/2011 03:54 PM, Dave Abrahams wrote: Binding `org-agenda-date-later' to a key like `f' ought to work out for you. 'f' is already bound to next-week, and it's also quite useful. I bind M-n/p to next/perv-week/day/etc. John Hi John, I think I have read somewhere that you wrote a function which does the following: If a todos schedule date is more than one day in the past it will be scheduled automatically to today when using the function to move the schedule forward for one day. Is that right and if yes could you share it please? Best, Rainer
Re: [O] `f' in agenda view
Am 04.10.2011 23:04, schrieb John Wiegley: Dave Abrahams d...@boostpro.com writes: It always strikes me as odd that `f' in agenda view moves the item forward by a day even if that leaves it still in the past. Typically if I have an overdue item, I just want to schedule it for today or a certain number of days in the future, and as it stands it's even a bit non-obvious when I've finally bumped it up to today if it's a few days old. Shouldn't the first `f' on an overdue item schedule it for today? Just to clarify, by 'f' dave means `org-agenda-date-later'. I believe he's using my keybinding for this command... I'm happy to hack something locally if the group doesn't agree, but moving things around in the past seems like such a corner case that I thought maybe this would be a better default behavior. I agree with Dave here. 'f' on a past-dated item maybe should move it today on the first press, and then into the future on subsequent presses. John +1 Me too I sometimes run into this situation where I just want to shift past-dated items to today. I never had a use case where I wanted to shift an item from past to past+n-daystoday. Rainer
Re: [O] `f' in agenda view
Am 13.10.2011 10:47, schrieb Rainer Stengele: Am 04.10.2011 23:04, schrieb John Wiegley: Dave Abrahams d...@boostpro.com writes: It always strikes me as odd that `f' in agenda view moves the item forward by a day even if that leaves it still in the past. Typically if I have an overdue item, I just want to schedule it for today or a certain number of days in the future, and as it stands it's even a bit non-obvious when I've finally bumped it up to today if it's a few days old. Shouldn't the first `f' on an overdue item schedule it for today? Just to clarify, by 'f' dave means `org-agenda-date-later'. I believe he's using my keybinding for this command... I'm happy to hack something locally if the group doesn't agree, but moving things around in the past seems like such a corner case that I thought maybe this would be a better default behavior. I agree with Dave here. 'f' on a past-dated item maybe should move it today on the first press, and then into the future on subsequent presses. John +1 Me too I sometimes run into this situation where I just want to shift past-dated items to today. I never had a use case where I wanted to shift an item from past to past+n-daystoday. Rainer Well, as indicated somewhere else a C-c C-s +1 for shifting to tomorrow or C-c C-s . for shifting to today does exactly what I wanted. The power is in the house already. Thank you, Rainer
[O] How to count archived trees in :scope subtree
Hi all, For clocktables in the manual I find :scope The scope to consider. This can be any of the following: nilthe current buffer or narrowed region file the full current buffer subtreethe subtree where the clocktable is located treeN the surrounding level N tree, for example tree3 tree the surrounding level 1 tree agenda all agenda files (file..) scan these files file-with-archivescurrent file and its archives agenda-with-archives all agenda files, including archives How would I create a clocktable for a subtree counting locally archived trees (tag ARCHIVE)? 5 minutes later: I see that clocktable already always includes archived subtrees! Sorry for the noise, maybe this would be good to be noted in the manual. Thanks, Rainer
[O] question/error concerning EXPORT_OPTIONS
hi all, for subtree specific html export options what's wrong with ** Subtree :PROPERTIES: :EXPORT_OPTIONS: :t todo:t :END: - contents I get this error: or: Assertion failed: (functionp (symbol-value fun-var-sym)), nil Which options are supported and how is the syntax for configuring? I couldn't find an example. Thanks, Rainer
Re: [O] question/error concerning EXPORT_OPTIONS
Am 19.09.2011 17:10, schrieb Giovanni Ridolfi: Rainer Stengele rainer.steng...@online.de writes: Hi Rainer, for subtree specific html export options what's wrong with ** Subtree :PROPERTIES: :EXPORT_OPTIONS: :t todo:t :END: - contents I get this error: or: Assertion failed: (functionp (symbol-value fun-var-sym)), nil I do not. Org-mode version 7.7 0d580520cc438659bab67004bf1789b2305f6d58 (Yes I'm a bit behind ;-) GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO Did you select the subtree ( C-c C-@ ) before exporting ? I did. cheers, Giovanni Hi Giovanni, yes, I selected the subtree! After updating the org version and recompiling all files everything works as expected! Excellent! Thanks! best, Rainer
Re: [O] Bug? Non org timestamp in a todo is interpreted as timestamp in agenda view
Am 12.09.2011 17:07, schrieb Eric S Fraga: Rainer Stengele rainer.steng...@online.de writes: Hi all Having a todo like this: INARBEIT Test 2011/06/10 00:00:00 SCHEDULED: 2011-09-12 Mo results in this agenda entry: ADMIN: 0:00..Scheduled: INARBEIT Test 2011/06/10 :00 The time stamp 2011/06/10 00:00:00, neither an active nor an inactive org timestamp, because neither nor [] is used, is interpreted as time stamp and used strangely in the agenda entry, showing up as if the entry was clocked at 0:00 o'clock. This looks like unintended behaviour!? Best, Rainer Check out: ,[ C-h v org-agenda-search-headline-for-time RET ] | org-agenda-search-headline-for-time is a variable defined in `org-agenda.el'. | Its value is t | | Documentation: | Non-nil means search headline for a time-of-day. | If the headline contains a time-of-day in one format or another, it will | be used to sort the entry into the time sequence of items for a day. | Some people have time stamps in the headline that refer to the creation | time or so, and then this produces an unwanted side effect. If this is | the case for your, use this variable to turn off searching the headline | for a time. | | You can customize this variable. | | [back] ` HTH, eric Eric, thanks! Best, Rainer
[O] Bug? Non org timestamp in a todo is interpreted as timestamp in agenda view
Hi all Having a todo like this: INARBEIT Test 2011/06/10 00:00:00 SCHEDULED: 2011-09-12 Mo results in this agenda entry: ADMIN: 0:00..Scheduled: INARBEIT Test 2011/06/10 :00 The time stamp 2011/06/10 00:00:00, neither an active nor an inactive org timestamp, because neither nor [] is used, is interpreted as time stamp and used strangely in the agenda entry, showing up as if the entry was clocked at 0:00 o'clock. This looks like unintended behaviour!? Best, Rainer
[O] agenda bulk command schedule does not schedule items to today although indicating Today
Hi all! trying to bulk reschedule entries from yesterday to today I do mark them with m, the start the bulk command with B s. Minibuffer shows = 2011-07-26 Di which today is today. Pressing Enter reschedules every item to its old schedule date. Is this intended? I know I can simply enter . for today - that works - I just wonder if the default behavior is misleading .. - Rainer
Re: [O] Suppress visibility cycling for a specific tree
Am 25.07.2011 14:13, schrieb suvayu ali: Hi, Is it possible to suppress visibility cycling for a particular tree? What I am looking for is the behaviour of an ARCHIVEd tree. I have some general guidelines and local config in this tree that I don't want to see usually but since it is technically not archived information I am looking for an alternate means to a similar goal. Could I specify a special tag of my own and define the behaviour I want with elisp? Where do I start looking for this? Thanks a lot. Hi, +1 exactly the same thing I wanted to ask for some weeks. - Rainer
Re: [O] Suppress visibility cycling for a specific tree
Am 25.07.2011 14:13, schrieb suvayu ali: Hi, Is it possible to suppress visibility cycling for a particular tree? What I am looking for is the behaviour of an ARCHIVEd tree. I have some general guidelines and local config in this tree that I don't want to see usually but since it is technically not archived information I am looking for an alternate means to a similar goal. Could I specify a special tag of my own and define the behaviour I want with elisp? Where do I start looking for this? Thanks a lot. Hi, +1 exactly the same thing I wanted to ask for some weeks. - Rainer
Re: [O] Suppress visibility cycling for a specific tree
Am 25.07.2011 14:13, schrieb suvayu ali: Hi, Is it possible to suppress visibility cycling for a particular tree? What I am looking for is the behaviour of an ARCHIVEd tree. I have some general guidelines and local config in this tree that I don't want to see usually but since it is technically not archived information I am looking for an alternate means to a similar goal. Could I specify a special tag of my own and define the behaviour I want with elisp? Where do I start looking for this? Thanks a lot. Hi, +1 exactly the same thing I wanted to ask for some weeks. - Rainer
Re: [O] Suppress visibility cycling for a specific tree
Am 25.07.2011 15:24, schrieb Carsten Dominik: On Jul 25, 2011, at 2:13 PM, suvayu ali wrote: Hi, Is it possible to suppress visibility cycling for a particular tree? What I am looking for is the behaviour of an ARCHIVEd tree. I have some general guidelines and local config in this tree that I don't want to see usually but since it is technically not archived information I am looking for an alternate means to a similar goal. Could I specify a special tag of my own and define the behaviour I want with elisp? Where do I start looking for this? Archived trees are kept closed by the function `org-cycle-hide-archived-subtrees', which is called by `org-cycle-hook'. You could define a tag of your choice and then put a function into org-cycle-hook that uses a let form to bind `org-archive-tag' to the chosen tag and then calls `org-cycle-hide-archived-subtrees' to do the work. Hope this gets you on the path. - Carsten Thanks, Carsten, this works, added to my .emacs: (defun custom-org-cycle-hide-hidden-subtrees (state) temporarily set archive tag to 'HIDE', then hide archived subtree (let ((org-archive-tag HIDE)) (org-cycle-hide-archived-subtrees state))) ;; add function to be called when cycling takes place: hides subtrees with HIDE tag (add-hook 'org-cycle-hook 'custom-org-cycle-hide-hidden-subtrees) Please remember that I am an emacs-lisp greenhorn. - Rainer
Re: [O] Suppress visibility cycling for a specific tree
Am 25.07.2011 16:17, schrieb Carsten Dominik: On Jul 25, 2011, at 3:24 PM, Carsten Dominik wrote: On Jul 25, 2011, at 2:13 PM, suvayu ali wrote: Hi, Is it possible to suppress visibility cycling for a particular tree? What I am looking for is the behaviour of an ARCHIVEd tree. I have some general guidelines and local config in this tree that I don't want to see usually but since it is technically not archived information I am looking for an alternate means to a similar goal. Could I specify a special tag of my own and define the behaviour I want with elisp? Where do I start looking for this? Archived trees are kept closed by the function `org-cycle-hide-archived-subtrees', which is called by `org-cycle-hook'. You could define a tag of your choice and then put a function into org-cycle-hook that uses a let form to bind `org-archive-tag' to the chosen tag and then calls `org-cycle-hide-archived-subtrees' to do the work. Hope this gets you on the path. Actually, the true zen[1] way to do this is to use ACHIVE anyway and change your brain to accept that ARCHIVE does not mean the thing is archived at all. Or do brain changes are costly and confusing ;) (setq org-archive-tag KEEPCLOSED) :-) The side effect of this is that stuff in these trees ill never contribute t the agenda - but if it is setup stuff, you probably do not care No, it is not setup stuff, just a blurb of stuff I do not want to see every time cycling through the subtree .. These solutions will work if the subtree does not contain stuff relevant for agendas. It can contain agenda stuff, so that solution maybe zen'ish but not working for me. If you saw my code and find something wrong please help along! Thanks! - rainer - Carsten [1] The book of knowledge defines Zen as: Zen emphasizes experiential wisdom in the attainment of enlightenment. As such, it de-emphasizes theoretical knowledge in favor of direct self-realization through meditation and dharma practice
Re: [O] Help, I need to paste raw image from clipboard into emacs/orgmode
Am 20.07.2011 16:59, schrieb Medhat Essmat: Dear All, Please Help, I need to paste raw image from clipboard into emacs/orgmode, I am a microsoft onenote user and I got used to take a lot of snapshots and embed it into my notes, I think if I could know how to embed images directly into emacs/orgmode from clipboard, I will switch to emacs very easily. I searched the internet but unfortunately I didn't find the answer, Thanks a lot. Dodo Dear Dodo, check this for Windows: --- The better approach seems to be to take the screenshot image from the clipboard. Therefore any screenshot tool will do. This works for me under Windows XP: (I had to introduce the tilde-buffer-filename variable for irfanview to work) (defun org-screenshot () Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file. (interactive) (setq tilde-buffer-filename (replace-regexp-in-string / \\ (buffer-file-name) t t)) (setq filename (concat (make-temp-name (concat tilde-buffer-filename _ (format-time-string %Y%m%d_%H%M%S_)) ) .jpg)) ;; Linux: ImageMagick: (call-process import nil nil nil filename) ;; Windows: Irfanview (call-process c:\\Programme\\IrfanView\\i_view32.exe nil nil nil (concat /clippaste /convert= filename)) (insert (concat [[file: filename ]])) (org-display-inline-images)) So this is how it works: 1. take a screenshot with any tool you are used to use 2. change to your org buffer and call org-screenshot via M-x Instead of .jpg you can use any format IrfanView understands, for example png. Very useful! -- Rainer --- Check the corrsponding gmane thread with subject insert picture feature request. -- Rainer
[O] ODT Export does not seem to recognise org-export-default-language
Hi! Exporting an org file via C-c C-e O to an ODT file does not seem to recognise the org-export-default-language setting. Export of the same subtree to HTML does recognise the setting and produce a german translation of table of contents. DOT export sticks with table of contents. Org-mode version 7.6 (release_7.6.129.gfe0c) does somebody else use a non en export and experience the same? - Rainer
Re: [O] Represent *everything* in Org-mode
Hi Karl, nice idea! My first thoughts are a warning about big org files which can be quite slow to be processed as agenda files. Please check this thread: http://article.gmane.org/gmane.emacs.orgmode/44286 Best regards, - Rainer Am 18.07.2011 01:54, schrieb Karl Voit: Hi! I need your thoughts and feedback on this idea: I am thinking of letting student(s) implement a (Python[1]) script that imports[2] all kinds of data sources to generate simple (and reduced) Org-mode heading entries and links to the original information in order to represent the users digital life as complete as possible. Imagine, you have got one (additional) «archive.org» (or «mylife.org_archive»[8]) which contains lots of small entries that represent many things you are doing on your computer: * emails you send and receive * tweets you write * weblog entries you write * usenet postings you send * files you are creating (with a datestamp in its filename) * bookmarks you save (in delicious?) * SVN/git commits you are committing * SMS you send and receive (via smartphone) * ... and much more With this system, you can visit any day in the past to see, what happened in your (digital) life that time. You can reconstruct pretty much anything you were thinking, working, ... that day. If you happen to know MyLifeBits[3] from MS Research, the papers from Gemmell et al or the book «Total Recall»[4] you already know what I am writing about: researchers implemented a (MS Windows only) system to capture your digital life even with digital cameras and screenshots of your desktop. With Org-mode and a bunch of «connectors» this should be a fairly easy job to do. Nothing proprietary here, the amount of data is not that much as with those binary information from MyLifeBits. I am thinking about a central management tool that writes the Org-mode file(s), lets you add tags to specific sources and correct time zone deltas caused by timestamps of services out of sync with the time zone you are living at. Then there are those «connectors»: one will parse through my maildir[5] to collect sent (and received?) emails in order to generate something like: * [[file:/my/maildir/the_email][Urgend: Server just died]] :email:work: 2010-01-17 Tue 08:12 :PROPERTIES: :FROM: b...@company.example.com :END: Another «connector» parses my monthly backup of tweets[6] in order to generate entries like: * [[http://twitter.com/status/0815][I hate dying hardware]] :tweet: 2010-01-17 Tue 08:15 Parsing a source like «locate» I can filter out files I am putting an ISO datestamp into and generate: * [[file:/albums/2010-01-17T08:21_rat.jpg][The rat that ate the \ server cable]] :file: 2010-01-17 Tue 08:21 With another «connector» I am parsing my weekly delicious[7] backup and generate entries like following for all my bookmarks: * [[http://killrats.com][How to kill rodents]] :delicious:animals: 2010-01-17 Tue 09:35 Without such a combined agenda view, you would possible never know which different things you were «using» that day when a rat was the source of a hardware downtime. This is not a new idea but as far as I know, it was never implemented that complete outside of MyLifeBits. So: is there something similar out there? Probably using Org-mode already? And: what do *you* think of this idea? I'd like to have a central tool that manages the connectors as mentioned above and small and easy to implement connectors for each data source. 1. I know that you guys would like to see that in ELISP but here at my side is sadly no ELISP knowledge available :-( 2. Currently, only one-side-import (and no two-side sync) is planned. 3. http://en.wikipedia.org/wiki/MyLifeBitso 4. http://totalrecallbook.com/ (I'll have to read it soon) 5. http://en.wikipedia.org/wiki/Maildir 6. I am using http://grabeeter.tugraz.at/ 7. http://delicious.com 8. In order to keep daily agenda small/fast and only «Archive mode» complete
[O] Creating a SCHEDULED entry with C-c C-s seems to add a trailing whitespace after the timestamp
Hi! Creating a SCHEDULED entry with C-c C-s seems to add a trailing whitespace after the timestamp: *** TODO [#A] simple to do SCHEDULED: 2011-07-18 Mo This - my thought was - is probably not intended!? Same is true for DEADLINE entries created by C-c C-d. - Rainer
Re: [O] error writing agenda view to html file
Am 16.07.2011 19:03, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@diplan.de writes: In agenda view doing a C-x C-w produces a face related error. I cannot reproduce this. C-x C-w works fine in the agenda views I could test. Can somebody help me out finding the issue in this debug message? Please send a small file.org with the agenda config to reproduce this problem with latest Org. Thanks! Hi Bastien, attached please find a simple smal org file. Bein gin the file I enter C-c a y a and get the error (see dump). I am quite sure it is some misconfiguration in my settings but I just don't know how to find it. Org-mode version 7.6 (release_7.6.88.gd1c9) Debugger entered--Lisp error: (error Invalid face) internal-get-lisp-face-attribute(nil :height nil) face-attribute(nil :height) (setq h (face-attribute f :height)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--)) (catch (quote --cl-block-nil--) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--))) (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var-- (block nil (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--))) (loop for f = face then (face-attribute f :inherit) until (eq f (quote unspecified)) for h = (face-attribute f :height) collect (if (eq h (quote unspecified)) nil h)) (let ((size-list (loop for f = face then (face-attribute f :inherit) until (eq f (quote unspecified)) for h = (face-attribute f :height) collect (if (eq h (quote unspecified)) nil h (reduce (quote htmlize-merge-size) (cons nil size-list))) htmlize-face-size(default) (let ((size (htmlize-face-size face))) (unless (eql size 1.0) (setf (htmlize-fstruct-size fstruct) size))) (cond (htmlize-running-xemacs (let* ((font-instance (face-font-instance face)) (props (font-instance-properties font-instance))) (when (equalp (cdr (assq (quote WEIGHT_NAME) props)) bold) (setf (htmlize-fstruct-boldp fstruct) t)) (when (or (equalp (cdr (assq ... props)) i) (equalp (cdr (assq ... props)) o)) (setf (htmlize-fstruct-italicp fstruct) t)) (setf (htmlize-fstruct-strikep fstruct) (face-strikethru-p face)) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face ((fboundp (quote face-attribute)) (dolist (attr (quote (:weight :slant :underline :overline :strike-through))) (let ((value (if (= emacs-major-version 22) (face-attribute face attr nil t) (let ... ... ... (when (and value (not (eq value ...))) (htmlize-face-emacs21-attr fstruct attr value (let ((size (htmlize-face-size face))) (unless (eql size 1.0) (setf (htmlize-fstruct-size fstruct) size (t (when (fboundp (quote face-bold-p)) (setf (htmlize-fstruct-boldp fstruct) (face-bold-p face))) (when (fboundp (quote face-italic-p)) (setf (htmlize-fstruct-italicp fstruct) (face-italic-p face))) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face (let ((fstruct (make-htmlize-fstruct :foreground (htmlize-color-to-rgb (htmlize-face-foreground face)) :background (htmlize-color-to-rgb (htmlize-face-background face) (cond (htmlize-running-xemacs (let* ((font-instance (face-font-instance face)) (props (font-instance-properties font-instance))) (when (equalp (cdr (assq ... props)) bold) (setf (htmlize-fstruct-boldp fstruct) t)) (when (or (equalp (cdr ...) i) (equalp (cdr ...) o)) (setf (htmlize-fstruct-italicp fstruct) t)) (setf (htmlize-fstruct-strikep fstruct) (face-strikethru-p face)) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face ((fboundp (quote face-attribute)) (dolist (attr (quote (:weight :slant :underline :overline :strike-through))) (let ((value (if ... ... ...))) (when (and value (not ...)) (htmlize-face-emacs21-attr fstruct attr
Re: [O] Creating a SCHEDULED entry with C-c C-s seems to add a trailing whitespace after the timestamp
Hi Bastien. works! Sorry for not checking the git log - Rainer Am 18.07.2011 08:50, schrieb Bastien: Hi Rainer, Rainer Stengelerainer.steng...@diplan.de writes: Creating a SCHEDULED entry with C-c C-s seems to add a trailing whitespace after the timestamp: This has been fixed a few days ago. Can you test against latest git?
Re: [O] error writing agenda view to html file = SOLVED.
Am 18.07.2011 10:51, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@diplan.de writes: I am quite sure it is some misconfiguration in my settings but I just don't know how to find it. If you changed some faces through M-x customize-face RET, then you will have a (custom-set-faces ...) somewhere in your configuration files (either in .emacs.el or some other value of the variable custom-file, which see. Can you send this part of the configuration? Is anybody else able to reproduce this problem? Thanks, Hi Bastien, after your hint about the (custom-set-faces ...) I could already imagine where the problem was: The zenburn theme. After updating it to the most recent version found here: https://github.com/dbrock/zenburn-el the export works, tested already for large agenda views. Most excellent! Exported agenda looks perfect! Thanks for helping me solve the problem! Best, - Rainer
Re: [O] error writing agenda view to html file
Am 16.07.2011 19:04, schrieb Bastien: Jambunathan K kjambunat...@gmail.com writes: +(defface org-default + (org-compatible-face 'default nil) + Face used for default text. + :group 'org-faces) author Bastien Guerry b...@altern.org Wed, 6 Jul 2011 15:25:29 + (17:25 +0200) committerBastien Guerry b...@altern.org Wed, 6 Jul 2011 15:25:29 + (17:25 +0200) commit 7a88eaec295d50a6e27cc1d6b6f1a725ace01076 tree 91e803908793a91bb614a775c599dda172c72385tree | snapshot parent c6b22dee33fa418b344fa68bf36bb496db473a89 Revback your commit to c6b22d level and see if the problem persists. Yes, doing this will also be useful, on top of letting us know how to reproduce the problem. Thanks, release_7.5-584-gc6b22 Org-mode version 7.5 (release_7.5.584.gc6b22) face-attribute: Invalid face problem is still the same. I hope I did the right thing going back to that rev. I am not used using git yet. I did: make clean git checkout c6b22d How can I go back to the current development? Thanks, Rainer
[O] Performance problem when switching agenda views - need for cache?
Dear all, let me show some times I clocked using my precious org system. Many a times I look at my weekly agenda view, working on the items of today and looking back over the weekdays to quickly find todos I have to to add further notes and clock times. Now, sometimes I do not find the right todo in the weekly view, so I activate the list of all open todos in order to find the appropriate one. This process, switching to all todos and back to weekly agenda takes about 18 (!) seconds netto. This is a lot! It psychologically prevents me to use the org system as I should and would like to. I already tried to fix my weekly agenda view in a separate frame and call the all todo agenda in another frame, just to go back to the first frame and continue to work there. This does not seem to work (agenda is updated everywhere). If it would work it would just be something like a cache mode. How about you orgers out there? Do you have long waiting times and therefore usability downsides? org-agenda2 17.6248.812 org-agenda-get-day-entries64 13.61000 0.2126562500 org-agenda-run-series 1 11.81211.812 org-agenda-list 1 10.92110.921 org-let2 1 10.92110.921 org-agenda-get-scheduled 56 7.284 0.1300714285 org-todo-list 1 5.281 5.281 org-agenda-get-todos 8 3.594 0.44925 org-end-of-subtree3058 3.289000 0.0010755395 org-get-tags-at 347 3.056000 0.0088069164 org-back-to-heading 10515 2.864000 0.0002723728 org-up-heading-safe 1607 2.807000 0.0017467330 org-get-todo-state50852.227 0.0004379547 org-prepare-agenda3 1.704 0.568 org-prepare-agenda-buffers2 1.579000 0.789500 org-agenda-get-progress 56 1.106 0.01975 org-format-agenda-item350 1.016000 0.0029028571 org-let 2 0.891 0.4455 org-agenda-skip 7744 0.731000 9.43...e-005 org-agenda-get-deadlines 56 0.686999 0.0122678571 org-finalize-agenda-entries 6 0.686 0.114333 org-agenda-get-restriction-and-command1 0.531 0.531 org-refresh-category-properties 16 0.471000 0.0294375000 org-agenda-highlight-todo 350 0.437 0.0012485714 org-agenda-get-timestamps 56 0.407999 0.0072857142 org-outline-level 5925 0.313000 5.28...e-005 org-finalize-agenda 3 0.312000 0.104000 org-time-string-to-absolute 4780 0.264000 5.52...e-005 org-get-effort348 0.236000 0.0006781609 org-entry-get 348 0.236000 0.0006781609 org-agenda-get-sexps 56 0.221000 0.0039464285 org-get-priority 288 0.203000 0.0007048611 org-check-agenda-file 80 0.202000 0.002525 org-agenda-get-blocks 56 0.202 0.0036071428 org-fontify-priorities2 0.187 0.0935 org-downcase-keep-props 379 0.171000 0.0004511873 org-get-entries-from-diary7 0.157000 0.0224285714 org-on-heading-p 540 0.157000 0.0002907407 org-get-property-block348 0.157000 0.0004511494 org-agenda-skip-eval 10608 0.157
[O] error writing agenda view to html file
Hi all! In agenda view doing a C-x C-w produces a face related error. Can somebody help me out finding the issue in this debug message? Which font shoudl I change/correct? Thanks, - Rainer Debugger entered--Lisp error: (error Invalid face) internal-get-lisp-face-attribute(nil :height nil) face-attribute(nil :height) (setq h (face-attribute f :height)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--)) (catch (quote --cl-block-nil--) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--))) (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var-- (block nil (let* ((f nil) (h nil) (--cl-var-- nil) (--cl-var-- t)) (while (progn (setq f (if --cl-var-- face (face-attribute f :inherit))) (not (eq f (quote unspecified (setq h (face-attribute f :height)) (push (if (eq h (quote unspecified)) nil h) --cl-var--) (setq --cl-var-- nil)) (nreverse --cl-var--))) (loop for f = face then (face-attribute f :inherit) until (eq f (quote unspecified)) for h = (face-attribute f :height) collect (if (eq h (quote unspecified)) nil h)) (let ((size-list (loop for f = face then (face-attribute f :inherit) until (eq f (quote unspecified)) for h = (face-attribute f :height) collect (if (eq h (quote unspecified)) nil h (reduce (quote htmlize-merge-size) (cons nil size-list))) htmlize-face-size(default) (let ((size (htmlize-face-size face))) (unless (eql size 1.0) (setf (htmlize-fstruct-size fstruct) size))) (cond (htmlize-running-xemacs (let* ((font-instance (face-font-instance face)) (props (font-instance-properties font-instance))) (when (equalp (cdr (assq (quote WEIGHT_NAME) props)) bold) (setf (htmlize-fstruct-boldp fstruct) t)) (when (or (equalp (cdr (assq ... props)) i) (equalp (cdr (assq ... props)) o)) (setf (htmlize-fstruct-italicp fstruct) t)) (setf (htmlize-fstruct-strikep fstruct) (face-strikethru-p face)) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face ((fboundp (quote face-attribute)) (dolist (attr (quote (:weight :slant :underline :overline :strike-through))) (let ((value (if (= emacs-major-version 22) (face-attribute face attr nil t) (let ... ... ... (when (and value (not (eq value ...))) (htmlize-face-emacs21-attr fstruct attr value (let ((size (htmlize-face-size face))) (unless (eql size 1.0) (setf (htmlize-fstruct-size fstruct) size (t (when (fboundp (quote face-bold-p)) (setf (htmlize-fstruct-boldp fstruct) (face-bold-p face))) (when (fboundp (quote face-italic-p)) (setf (htmlize-fstruct-italicp fstruct) (face-italic-p face))) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face (let ((fstruct (make-htmlize-fstruct :foreground (htmlize-color-to-rgb (htmlize-face-foreground face)) :background (htmlize-color-to-rgb (htmlize-face-background face) (cond (htmlize-running-xemacs (let* ((font-instance (face-font-instance face)) (props (font-instance-properties font-instance))) (when (equalp (cdr (assq ... props)) bold) (setf (htmlize-fstruct-boldp fstruct) t)) (when (or (equalp (cdr ...) i) (equalp (cdr ...) o)) (setf (htmlize-fstruct-italicp fstruct) t)) (setf (htmlize-fstruct-strikep fstruct) (face-strikethru-p face)) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face ((fboundp (quote face-attribute)) (dolist (attr (quote (:weight :slant :underline :overline :strike-through))) (let ((value (if ... ... ...))) (when (and value (not ...)) (htmlize-face-emacs21-attr fstruct attr value (let ((size (htmlize-face-size face))) (unless (eql size 1.0) (setf (htmlize-fstruct-size fstruct) size (t (when (fboundp (quote face-bold-p)) (setf (htmlize-fstruct-boldp fstruct) (face-bold-p face))) (when (fboundp (quote face-italic-p)) (setf (htmlize-fstruct-italicp fstruct) (face-italic-p face))) (setf (htmlize-fstruct-underlinep fstruct) (face-underline-p face (setf (htmlize-fstruct-css-name fstruct) (let ((name (downcase (symbol-name face (when (string-match \\`font-lock-
Re: [O] Performance problem when switching agenda views - need for cache?
Am 15.07.2011 18:00, schrieb Memnon Anon: Hi Rainer, Sorry, I can not really comment/help with anything. Just curious: Rainer Stengele rainer.steng...@diplan.de writes: This process, switching to all todos and back to weekly agenda takes about 18 (!) seconds netto. This is a lot! a) How many files are in your agenda file list? b) How many all todos do you have? 18 seconds is a lot, indeed. With my 512 megs RAM, 1.2 Mhz PIII Laptop, I do heavy and frequent archiving, but preparing for exams, the amount of data will rise, soon. Memnon a bit worried Anon Hi Memnon Anon, I have 8 org-agenda files. Doing a wc word count on them gives me: 199 953 10169 f1.org 4105 32563 257460 f2.org 6344667 35699 f3..org 21567 169446 1524359 f4.org 2413 19708 137255 f5.org 6095 44852 376551 f6.org 6014994 53794 f7.org 6874601 37535 f8.org 36301 281784 2432822 total (newline, word, byte - count) Is that a lot? Another thing: here at home running a Linux machine slower than my machine at work gives me about half the needed time. But still - 9 seconds is eternity when you want to continue to type. Thanks, Rainer org-agenda2 8.605063 4.302531 org-agenda-get-day-entries64 6.801424 0.1062722500 org-agenda-run-series 1 5.936252 5.936252 org-let2 1 5.423472 5.423472 org-agenda-list 1 5.423455 5.423455 org-agenda-get-scheduled 56 3.757082 0.0670907678 org-todo-list 1 2.412072 2.412072 org-end-of-subtree3058 1.881657 0.0006153227 org-back-to-heading 10468 1.617533 0.0001545216 org-agenda-get-todos 8 1.460044 0.1825055000 org-get-todo-state5082 1.283380 0.0002525344 org-get-tags-at 340 1.094223 0.0032183029 org-up-heading-safe 1577 1.043081 0.0006614343 org-prepare-agenda3 1.02636 0.34212 org-prepare-agenda-buffers2 0.94225 0.471125 org-agenda-get-deadlines 56 0.525749 0.0093883750 org-agenda-skip 7745 0.525092 6.779...e-05 org-let 2 0.512741 0.2563705 org-agenda-get-timestamps 56 0.428551 0.0076526964 org-refresh-category-properties 16 0.36568 0.022855 org-agenda-get-progress 56 0.330577 0.0059031785 org-finalize-agenda-entries 6 0.313683 0.0522805 org-agenda-get-restriction-and-command1 0.256535 0.256535 org-agenda-highlight-todo 344 0.201964 0.0005871046 org-agenda-get-blocks 56 0.174013 0.0031073928 org-time-string-to-absolute 4788 0.152420 3.183...e-05 org-add-props 1392 0.146396 0.0001051695 org-format-agenda-item344 0.136612 0.0003971279 org-agenda-get-sexps 56 0.116870 0.0020869642 org-outline-level 5872 0.113573 1.934...e-05 org-get-effort341 0.092047 0.0002699325 org-entry-get 341 0.089899 0.0002636334 org-entries-lessp 1623 0.088347 5.443...e-05 org-on-heading-p 540 0.075482 0.0001397814 org-get-wdays 175 0.073221 0.0004184114 org-get-priority 277 0.062145 0.0002243537 org-at-date-range-p 268 0.058436 0.0002180447 org-get-property-block
Re: [O] Performance problem when switching agenda views - need for cache?
Am 15.07.2011 22:10, schrieb Nick Dokos: Rainer Stengele rainer.steng...@diplan.de wrote: Many a times I look at my weekly agenda view, working on the items of today and looking back over the weekdays to quickly find todos I have to to add further notes and clock times. Now, sometimes I do not find the right todo in the weekly view, so I activate the list of all open todos in order to find the appropriate one. This process, switching to all todos and back to weekly agenda takes about 18 (!) seconds netto. ... org-agenda2 17.6248.812 org-agenda-get-day-entries64 13.61000 0.2126562500 Clearly, the 64 calls to org-agenda-get-day-entries hurt: a cursory look shows , | (while (setq d (pop day-numbers)) | ... | (setq files thefiles | rtnall nil) | (while (setq file (pop files)) |... | (setq rtn (apply 'org-agenda-get-day-entries |file date |org-agenda-entry-types) |... ` so it loops over all the days and for each day it loops over all the files (7 days * 8 files = 56 times in org-agenda-list) - it only loops over the 8 files for a given date in org-todo-list. So your normal weekly agenda should take about 11 seconds or so (56/64 * 13) - does it? If so, that's already too much. Anything you can do to reduce the burden will help: o reducing the number of days - nah o reducing the number of files - maybe o reducing the size of each file - yes! particularly this one: 21567 169446 1524359 f4.org which is 5x bigger than any of the others. You might just try leaving out of the agenda file list, just to see what effect it has. org-agenda-run-series 1 11.81211.812 Another thing that makes a difference is your org-agenda-custom-commands: afaict, this function is only called if org-agenda-custom-commands has an entry with a series of commands associated with it: the function runs overs the series of commands. I could try to deduce/guess what's in there, but it would be simpler if you just tell us :-) In any case, that's also a time hog. org-agenda-list 1 10.92110.921 org-let2 1 10.92110.921 org-agenda-get-scheduled 56 7.284 0.1300714285 org-todo-list 1 5.281 5.281 org-agenda-get-todos 8 3.594 0.44925 ... Nick Nick, thanks for your analysis, my custom agenda command for the weekly agenda is this: ... (07 agenda no todos sorted prio up - 7 days ((agenda .. agenda ( (org-agenda-ndays 7) (org-agenda-start-with-log-mode t) (org-agenda-overriding-header Weekly Agenda ((org-agenda-sorting-strategy '(time-up priority-down todo-state-up ... the todo list ist default C-c a t It will not be easy to cut down my org files to smaller sizes. Best, - Rainer
Re: [O] Performance problem when switching agenda views - need for cache?
Am 16.07.2011 01:15, schrieb Nick Dokos: Rainer Stengele rainer.steng...@online.de wrote: It will not be easy to cut down my org files to smaller sizes. If you could try just eliminating the big file from org-agenda-files temporarily, try the commands to see if it does indeed make a difference, and then add it back on, that would help steer us in the right direction, I think. You can use C-c ] and C-c [ while visiting the file to delete it from the list and add it back on (although that might mess up the order). Nick OK, removeing the big file from the agenda file list results in (only weekly view): org-agenda1 5.011847 5.011847 org-agenda-run-series 1 5.01176 5.01176 org-let2 1 4.51891 4.51891 org-agenda-list 1 4.518894 4.518894 org-agenda-get-day-entries56 4.331017 0.0773396071 org-agenda-get-scheduled 56 3.074571 0.0549030535 org-back-to-heading 8039 1.278002 0.0001589753 org-get-todo-state4834 1.138154 0.0002354476 org-end-of-subtree2745 0.920293 0.0003352615 org-let 2 0.492812 0.246406 org-prepare-agenda2 0.479444 0.239722 org-prepare-agenda-buffers1 0.375417 0.375417 org-agenda-get-progress 56 0.344603 0.0061536250 org-time-string-to-absolute 4816 0.342442 7.110...e-05 org-agenda-get-deadlines 56 0.326798 0.0058356785 org-agenda-get-timestamps 56 0.299163 0.0053421964 org-agenda-skip 7493 0.244286 3.260...e-05 org-parse-time-string 5124 0.243559 4.753...e-05 org-get-tags-at 65 0.168317 0.0025894923 org-agenda-get-blocks 56 0.162876 0.0029085 org-up-heading-safe 294 0.161177 0.0005482244 org-refresh-category-properties 8 0.139898 0.01748725 org-agenda-get-sexps 56 0.114816 0.0020503035 org-finalize-agenda-entries 6 0.113231 0.0188718333 org-agenda-highlight-todo 70 0.105273 0.0015039 org-at-date-range-p 269 0.039721 0.0001476654 org-get-entries-from-diary7 0.03710.0053 org-format-agenda-item70 0.02979 0.0004255714 org-outline-level 3268 0.027143 8.305...e-06 org-on-heading-p 270 0.026316 9.746...e-05 org-agenda-skip-eval 10114 0.021681 2.143...e-06 so yes - the main part of the time is taken by the big org file. Still 5 seconds is not a keypress ... And of course I will need a certain part of the excluded file. So going into any kind of caching might speed up things quite a bit. Rainer
Re: [O] question about ODT export behavior
Am 13.07.2011 22:15, schrieb Jambunathan K: Jambunathan K kjambunat...@gmail.com writes: Rainer Stengele rainer.steng...@diplan.de writes: Hi, having this in an org file: -- * Test ** header 2 - item 1 * subitem 11 * subitem 12 - item 2 * subitem 21 * subitem 22 -- Could you please post your complete #+OPTIONS line - specifically the `H: ' and `toc: ' option? Looking at the code, I believe these options may not be relevant (for the odt exporter) Your org file doesn't use an explicit line break or timestamps. So the only scenario under which line breaks can occur is precisely when you have actually requested them. Check this variable or the corresponding OPTIONS directive. ,[ C-h v org-export-preserve-breaks RET ] | org-export-preserve-breaks is a variable defined in `org-exp.el'. | Its value is nil | | Documentation: | Non-nil means preserve all line breaks when exporting. | Normally, in HTML output paragraphs will be reformatted. In ASCII | export, line breaks will always be preserved, regardless of this variable. | | This option can also be set with the +OPTIONS line, e.g. \n:t. | | You can customize this variable. | | [back] ` Yes. That was it. After changing org-export-preserve-breaks to nil the breaks are gone. Sorry, I did not know how the exporter works. I did therefore not check the export options. Again, thank you for your excellent work! Bastien, thanks for helping! Can you give me a hint where I can find some documentation about changing the styles.xml? - Rainer
[O] question about ODT export behavior
Hi, having this in an org file: -- * Test ** header 2 - item 1 * subitem 11 * subitem 12 - item 2 * subitem 21 * subitem 22 -- and exporting to ODT I get (I simply copied the Org doc contents via clipboard) I get this: -- Test Table of Contents 1. header 2 1. header 2 item 1 subitem 11 subitem 12 item 2 subitem 21 subitem 22 -- Why do I get extra lines between the items and subitems? Where or how can I adjust the behaviour of the exporter? I'll attach the org file. - Rainer test.odt Description: application/vnd.oasis.opendocument.text
Re: [O] question about ODT export behavior
Am 13.07.2011 16:23, schrieb Bastien: Rainer Stengele rainer.steng...@diplan.de writes: I'll attach the org file. You forgot the org file, you just attached the odt file. I don't know when Jambunathan can have a loot at this, but please bare in mind that such formatting issues are relatively hard to fix (talking from experience). Thanks, Org file is attached. I think this is the most simple org file - nothing special - and the odt file just extends some extra lines, so I thought this to be a fundamental issue. I would like to be able to export the minutes of a meeting but cannot as my colleagues will wonder why I put all these extra lines in ... Thanks, Rainer * Test ** header 2 - item 1 * subitem 11 * subitem 12 - item 2 * subitem 21 * subitem 22
[O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt
Dear list, exporting an org file to odt I get this error under debian Linux (Windows works fine) [excerpt from *Messages*]: Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc ODT export done, pushed to kill ring and clipboard OVERVIEW CONTENTS...done Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size I cannot find the connection to tramp. I do not use tramp anywhere. Anyone could imagine what's wrong? Thanks, Rainer
Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt
Am 12.07.2011 10:32, schrieb Rainer Stengele: Dear list, exporting an org file to odt I get this error under debian Linux (Windows works fine) [excerpt from *Messages*]: Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc ODT export done, pushed to kill ring and clipboard OVERVIEW CONTENTS...done Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size I cannot find the connection to tramp. I do not use tramp anywhere. Anyone could imagine what's wrong? Thanks, Rainer Ok, just deactivating tramp resolves the problem, but I do not understand where tramp is jumping in and doing anything not really needed. Rainer
Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt
Am 12.07.2011 11:01, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@online.de writes: but I do not understand where tramp is jumping in and doing anything not really needed. The only think I can think of is that org-odt.el uses the /tmp/ directory to cache files while processing them. Maybe you don't have permission to write to this files, and tramp is the one reporting the error. Surely Jambunathan can tell better. Hi Bastien, no, I do have write permissions and do find odt-* folders filled with files there. I hope Jambunathan can help. Merci beaucoup! Rainer
Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt
Am 12.07.2011 13:10, schrieb Jambunathan K: Rainer Stengele rainer.steng...@online.de writes: Dear list, exporting an org file to odt I get this error under debian Linux (Windows works fine) [excerpt from *Messages*]: Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc ODT export done, pushed to kill ring and clipboard OVERVIEW CONTENTS...done Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size Can you do M-x toggle-debug-on-error and post the stack trace? This is more likely to happen when a file/directory is being read or written in to and the prefix of the path looks as though it is a remote file. May be there is a bug in odt when it expands/abbrevs filename and directories. Btw, what is different in your current setup. Why it didn't happen with earlier invocations. (I assume you were able to export to odt in earlier trial runs successfully) I cannot find the connection to tramp. I do not use tramp anywhere. Anyone could imagine what's wrong? Thanks, Rainer Ok, solved. I had to remove some Windows settings and paths from my .emacs - or better, only load them when being under Windows. Obviously the exporting process somewhere took the Windows path patterns as trampable triggers. Thanks! Rainer. Here the stacktrace that brought the insight: Debugger entered--Lisp error: (error Variable binding depth exceeds max-specpdl-size) browse-url-delete-temp-file() tramp-file-name-handler(expand-file-name /C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m /) ... tramp-file-name-handler(expand-file-name /C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m /) tramp-file-name-handler(expand-file-name /c:/cygwin/bin/ /) expand-file-name(c:/cygwin/bin/ /) apply(expand-file-name (c:/cygwin/bin/ /)) (let* ((inhibit-file-name-handlers ...) (inhibit-file-name-operation operation)) (apply operation args)) tramp-completion-run-real-handler(expand-file-name (c:/cygwin/bin/ /)) (if (and fn tramp-mode (or ... ... ... ... ...)) (save-match-data (apply ... args)) (tramp-completion-run-real-handler operation args)) (let ((directory-sep-char 47) (fn ...)) (if (and fn tramp-mode ...) (save-match-data ...) (tramp-completion-run-real-handler operation args))) tramp-completion-file-name-handler(expand-file-name c:/cygwin/bin/ /) call-process-region(1 57640 sha1sum /tmp/emacs8vkk6R t nil) apply(call-process-region 1 57640 sha1sum /tmp/emacs8vkk6R t nil nil) sha1-string-external(?xml version=\1.0\ encoding=\UTF-8\?\noffice:document-styles xmlns:office=\urn:oasis:names:tc:opendocument:xmlns:office:1.0\ xmlns:style=\urn:oasis:names:tc:opendocument:xmlns:style:1.0\ ... org-do-lparse(nil hidden nil nil nil nil) (let* ((org-lparse-backend ...) (org-lparse-other-backend ...)) (unless (org-lparse-backend-is-native-p native-backend) (error Don't know how to export natively to backend %s native-backend)) (unless (or ... ... ...) (error Don't know how to export to backend %s %s target-backend ...)) (run-hooks (quote org-export-first-hook)) (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)) org-lparse(odt odt nil hidden) (let (f (file-or-buf ...)) (when file-or-buf (setq f ...) (message Opening file %s f) (org-open-file f) (when org-export-kill-product-buffer-when-displayed ...))) org-lparse-and-open(odt odt nil) org-export-as-odt-and-open(nil) call-interactively(org-export-as-odt-and-open) org-export(nil) call-interactively(org-export nil nil) recursive-edit() byte-code(\306 @\307=\203!
Re: [O] Feature request or did I overlook ..
Am 09.07.2011 23:55, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@diplan.de writes: Unfortunately I get this no matter on what part of which of the two timestamps I am: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) org-clock-timestamps-change(up) org-clock-timestamps-up() org-shiftcontrolup() call-interactively(org-shiftcontrolup nil nil) Do you need more information which helps to debug? Nope -- just a stupid leftover. Should work now, thanks! Hi Bastien! excellent, works and is most useful - at least for me!!! Thanks a lot! -- Mit freundlichen Grüßen / Best Regards Rainer Stengele __|___ | Dipl. Inf. (Univ.) Rainer Stengele | Technical Control - System Administration | | email: rainer.steng...@diplan.de | voice/fax: ++49-9131-7778-85/88 | WWW : http://www.diplan.de | | diplan GmbH | Wetterkreuz 27 | 91058 Erlangen, Germany Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Re: [O] Feature request or did I overlook ..
Am 09.07.2011 17:41, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@diplan.de writes: having standard clock entries like CLOCK: [2011-07-08 Fr 08:45]--[2011-07-08 Fr 09:15] = 0:30 many a times later on I want to adjust the beginning timestamp. Moving the whole clock range backward or forward maybe half an hour is a 2 step procedure: First I have to adjust the begin timestamp, then the end timestamp. I would love something like a Ctr-Shift-Up and Ctrl-Shift-Down that moves the relating timestamp synchronously and thus leaves the time difference the same. Great idea -- I've just implemented it. Please try C-S-up and C-S-down on clock log timestamps: it will update both timestamps at the same time, leaving the total duration unchanged. Hi Bastien! I am impressed! Thank you very much! Unfortunately I get this no matter on what part of which of the two timestamps I am: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) org-clock-timestamps-change(up) org-clock-timestamps-up() org-shiftcontrolup() call-interactively(org-shiftcontrolup nil nil) Do you need more information which helps to debug? Best, Rainer -- Mit freundlichen Grüßen / Best Regards Rainer Stengele __|___ | Dipl. Inf. (Univ.) Rainer Stengele | Technical Control - System Administration | | email: rainer.steng...@diplan.de | voice/fax: ++49-9131-7778-85/88 | WWW : http://www.diplan.de | | diplan GmbH | Wetterkreuz 27 | 91058 Erlangen, Germany Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
[O] Feature request or did I overlook ..
Hi all, having standard clock entries like CLOCK: [2011-07-08 Fr 08:45]--[2011-07-08 Fr 09:15] = 0:30 many a times later on I want to adjust the beginning timestamp. Moving the whole clock range backward or forward maybe half an hour is a 2 step procedure: First I have to adjust the begin timestamp, then the end timestamp. I would love something like a Ctr-Shift-Up and Ctrl-Shift-Down that moves the relating timestamp synchronously and thus leaves the time difference the same. Example1: Having point on CLOCK: [2011-07-08 Fr 08:45]--[2011-07-08 Fr 09:15] = 0:30 ^ pressing Ctr-Shift-Up 2 times I would like to end up at CLOCK: [2011-07-08 Fr 09:15]--[2011-07-08 Fr 09:45] = 0:30 ^ Example2: Having point on CLOCK: [2011-07-08 Fr 08:45]--[2011-07-08 Fr 09:15] = 0:30 ^ pressing Ctr-Shift-Down 3 times I would like to end up at CLOCK: [2011-07-08 Fr 06:15]--[2011-07-08 Fr 06:45] = 0:30 ^ I hope I could make the point clear. Maybe I overlooked the docs and such a functionality is already there. If not it could be a nice little feature. Thanks for considering, Rainer
[O] Bug in ODT exporter
Hi! Having this simple org file DONE [#A] Test #+OPTIONS: :t - [2011-07-08 Fr] test the export with C-c C-e O stops when starting LibreOffice 3.4.1 with the message: Read Error. Format Error in textdocument content.xml at position 288,114 found. this works: DONE [#A] Test #+OPTIONS: :t - [2011-07-08 Fr] test Rainer
Re: [O] Bug in ODT exporter
Am 08.07.2011 14:22, schrieb Rainer Stengele: Hi! Having this simple org file DONE [#A] Test #+OPTIONS: :t - [2011-07-08 Fr] test the export with C-c C-e O stops when starting LibreOffice 3.4.1 with the message: Read Error. Format Error in textdocument content.xml at position 288,114 found. this works: DONE [#A] Test #+OPTIONS: :t - [2011-07-08 Fr] test Rainer Sorry for the typo! it works, if I write DONE [#A] Test #+OPTIONS: :nil - [2011-07-08 Fr] test So if I want to export timestamps the exporter fails. Rainer
Re: [O] Release 7.6
Am 07.07.2011 09:16, schrieb Bastien: Dear all, I'm releasing Org 7.6. You can get it from the website as an archive: http://orgmode.org/org-7.6.zip http://orgmode.org/org-7.6.tar.gz Apologies for the delay between 7.5 and 7.6 -- it has been hectic times. I owe a big *thank* to everyone who maintain a high level of activity, both in the code and on the mailing list. In particular: Carsten, Eric Schulte, Nicolas Goaziou, David Maus, Julien Danjou, Jambunathan K, Michael Brand, Achim Gratz, Eric S. Fraga, Nick Dokos, Lawrence Mitchell, Memnon Anon, Bernt Hansen, Sébastien Vauban, Thomas S. Dye, Manuel Giraud, Karl Voit, Huy, ... and many more! Thanks to all. The highlight of this release is the new ODT exporter, which lives in the contrib/ directory but will soon make its way to the core: kudos to Jambunathan for this addition, and thanks to him for his patience. Below is the (incomplete) list of changes: Version 7.6 New features and user-visible improvements === Integration of Jambunathan's OpenDocumentText Exporter ~~~ * Activation Org-mode 7.6 supports exporting to OpenDocument Text (=odt=) format using org-odt.el. Depending on how you installed Org, this module can be enabled in one of the following ways: 1. If you have downloaded the Org from the Web, either as a distribution =.zip= or =.tar.gz= file, or as a Git archive, enable the =odt= option in the variable =org-modules=. 2. If you are using Org-mode 7.6 that comes bundled with Emacs-24.0.50 (or future Emacs-24.1), then you can install the OpenDocumentText exporter using the package manager. Check the list of available packages with =M-x list-packages= and install the =org-odt= package. Thanks a lot to Jambunathan K for this great contribution. * Keybindings The following interactive commands are provided: 1. =C-c C-e o= (=org-export-as-odt=): Export as an =odt= file. 2. =C-c C-e O= (=org-export-as-odt-and-open=): Export as an =odt= file and open the resulting file. See the =contrib/odt/README.org= file for further details; you may check in particular the commands =M-x org-lparse= and =M-x org-export-convert=. Ob-Lilypond -- new Babel language to allow score generation ob-lilypond - an org-babel language, provided to allow LilyPond music score generation, complete with optional auditioning via midi, whilst leveraging the full power of org mode, and literate programming. See [https://github.com/mjago/ob-lilypond] for more documentation. Thanks to Martyn Jago for this addition. Org-Bibtex -- major improvements ~ Provides support for managing bibtex bibliographical references data in headline properties. Each headline corresponds to a single reference and the relevant bibliographic meta-data is stored in headline properties, leaving the body of the headline free to hold notes and comments. Org-bibtex is aware of all standard bibtex reference types and fields. The key new functions are org-bibtex-check: queries the user to flesh out all required (and with prefix argument optional) bibtex fields available for the specific reference =type= of the current headline. org-bibtex-create: Create a new entry at the given level, using org-bibtex-check to flesh out the relevant fields. org-bibtex-yank: Yank a bibtex entry on the kill ring as a formatted Org-mode headline into the current buffer org-bibtex-export-to-kill-ring: Export the current headline to the kill ring as a formatted bibtex entry. Spreadsheet computation of durations and time values ~ If you want to compute time values use the =T= flag, either in Calc formulas or Elisp formulas: Task 1 Task 2 Total ++- 35:0035:00 1:10:00 Values must be of the form =[HH:]MM:SS=, where hours are optional. Thanks to Martin Halder, Eric Schulte and Carsten for code and feedback on this. Links within inlined footnotes. It as also possible to have footnotes side-by-side correctly exported. New variables =org-export-latex-footnote-separator=, =org-export-html-footnote-separator= and =org-export-docbook-footnote-separator= are used to separate them in that case. Fontification of footnotes is also more accurate. New variable =org-export-with-tasks= ~ Non-nil means include TODO items for export. This may have the following values: - tinclude tasks independent of state. - todo include only tasks that are not yet done. - done
[O] Fatal error occurred, no output PDF file produced
Hi! Trying to export a subtree to pdf I run into this error: (c:/texlive/2009/texmf-dist/tex/latex/base/t1cmtt.fd) [1{c:/texlive/2009/texmf- var/fonts/map/pdftex/updmap/pdftex.map} ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd fstartlink. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox \fi \fi l.69 \end{itemize} ! == Fatal error occurred, no output PDF file produced! Org-mode version 7.5 (release_7.5.365.g929b6) GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2011-02-16 on LENNART-69DE564 (patched) HTML Export of the subtree works perfectly. How can I find the reason/workaround? OK - 5 minutes later: I deleted the result/contents of this clocktable #+BEGIN: clocktable :maxlevel 4 :scope tree2 :timestamp t :link t #+END: Now it works. As far as I read the *Org PDF latex output the reason are the links in the clocktable output. This maybe is a bug in the exporter. I do not like to publish the org file here so if necessary I could send the contents of the org subtree privately. -- Rainer
Re: [O] Fatal error occurred, no output PDF file produced
Am 31.05.2011 11:54, schrieb Rainer Stengele: Hi! Trying to export a subtree to pdf I run into this error: (c:/texlive/2009/texmf-dist/tex/latex/base/t1cmtt.fd) [1{c:/texlive/2009/texmf- var/fonts/map/pdftex/updmap/pdftex.map} ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd fstartlink. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox \fi \fi l.69 \end{itemize} ! == Fatal error occurred, no output PDF file produced! Org-mode version 7.5 (release_7.5.365.g929b6) GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2011-02-16 on LENNART-69DE564 (patched) HTML Export of the subtree works perfectly. How can I find the reason/workaround? OK - 5 minutes later: I deleted the result/contents of this clocktable #+BEGIN: clocktable :maxlevel 4 :scope tree2 :timestamp t :link t #+END: Now it works. As far as I read the *Org PDF latex output the reason are the links in the clocktable output. This maybe is a bug in the exporter. I do not like to publish the org file here so if necessary I could send the contents of the org subtree privately. -- Rainer This works: (set :link to nil) #+BEGIN: clocktable :maxlevel 4 :scope tree2 :timestamp t :link nil #+END: -- Rainer
Re: [O] Slowness in Org - how to disable mouse popups/followings
Am 06.05.2011 12:02, schrieb Rainer Stengele: Hi, I am always struggling with performance problemns when using Emacs orgmode under Windows. Under Linux I do not see slow respsonses for my several and long org files. Under Windows I run GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2011-02-16 on LENNART-69DE564 (patched) Hovering with the emouse over the Emacs windows I see some popups showing up very slowly. Emacs also highlights the links in my org files when moving the mouse over it. This all semmes to slow down Emacs a lot - under Windows ... I do not need the special mouse functionality in Orgmode. Is there a way to deactivate the highlighting of links etc.? I searched a bit in the custom variables but did not find the right places. -- Rainer Hi, fighting still with the slowness in Org as soon as the mouse hits some lines in agenda view or even in any org file I thought why not run the fast displaying emacs under Linux and redirect the display to my windows X-server. Well - the X-server under Windows (X-Deep 4.6.5) slows the display of refreshes even more. So this is of no help - at least with my X-Server. Can't I control the creation of links in agenda view? I did not find a variable to configure. OK, a little later I found this (setq mouse-highlight nil) That does what I need, the awful timeout while moving the mouse over links is gone! Of course any highlighting is now gone ... As far as I see now the highlighting of links itself is not the issue. What takes several seconds is the display of a little popup window showing the contens of the link (e.g. LINK: file:filename.org). This must be a windows problem. In the past I already found two major performance hogs coming from a display problem under windows: - smooth-scolling.el - hl-line-mode - (add-hook 'org-agenda-mode-hook 'hl-line-mode) Now I wonder if that little LINK: window can be switched off. -- Rainer
[O] Slowness in Org - how to disable mouse popups/followings
Hi, I am always struggling with performance problemns when using Emacs orgmode under Windows. Under Linux I do not see slow respsonses for my several and long org files. Under Windows I run GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2011-02-16 on LENNART-69DE564 (patched) Hovering with the emouse over the Emacs windows I see some popups showing up very slowly. Emacs also highlights the links in my org files when moving the mouse over it. This all semmes to slow down Emacs a lot - under Windows ... I do not need the special mouse functionality in Orgmode. Is there a way to deactivate the highlighting of links etc.? I searched a bit in the custom variables but did not find the right places. -- Rainer
Re: [O] Slowness in Org - how to disable mouse popups/followings
Am 06.05.2011 16:29, schrieb Tom: Rainer Stengele rainer.stengele at diplan.de writes: I am always struggling with performance problemns when using Emacs orgmode under Windows. Under Linux I do not see slow respsonses for my several and long org files. Under Windows I run GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2011-02-16 on LENNART-69DE564 (patched) Hovering with the emouse over the Emacs windows I see some popups showing up very slowly. Emacs also highlights the links in my org files when moving the mouse over it. This all semmes to slow down Emacs a lot - under Windows ... Sounds like an Emacs 24 problem, because with Emacs 23 I don't experience this on Windows. You may want to let the emacs developers know about this. Hi, I am afraid not - the slowness I also had with emacs 23. It looks like Emacs for Windows in general has performance problems. Look at older threads where we fought other display performance problems under windows. So maybe someone has an idea how to disable the mouse functions. -- Rainer
Re: [O] insert picture feature request.
+1 for windows support. I would also need such a image copy tool under windows. A way to capture an image and have it referenced/included in an org file with a simple keychord would be most welcome. What most of my colleagues - non Emacs users - do is open MS Word, paste some captured images and write some simple comments. No need to copy, save and link to an image. A documentation including some screenshots is done in a snap. For me this is one of the things I miss a lot while living in Org. Anybody knows about a comparable tool to Imagemagick import under Windows? === OK - I searched a bit and found this, which works on command line: (see http://www.irfanview.de) Example for /capture: i_view32.exe /capture=0 Capture the whole screen. i_view32.exe /capture=6 Start in Capture mode, use last used capture dialog settings. capture values: 0 = whole screen 1 = current monitor, where mouse is located 2 = foreground window 3 = foreground window - client area 4 = rectangle selection 5 = object selected with the mouse 6 = start in capture mode (can't be combined with other commandline options) Advanced examples: i_view32.exe /capture=2 /convert=c:\test.jpg Capture foreground window and save result as file. i_view32.exe /capture=2 /convert=c:\capture_$U(%d%m%Y_%H%M%S).jpg Capture foreground window and save result as file; the file name contains time stamp. === I will try this in my Org environment. -- Rainer Am 04.05.2011 02:37, schrieb Mark S.: This doesn't work under windows even if you have ImageMagick installed. Is there a similar way to capture and insert a picture under windows? Thanks! --- On Mon, 5/2/11, Russell Adams rlad...@adamsinfoserv.com wrote: From: Russell Adams rlad...@adamsinfoserv.com Subject: Re: [O] insert picture feature request. To: emacs-orgmode@gnu.org Date: Monday, May 2, 2011, 6:28 AM On Mon, May 02, 2011 at 02:42:41PM +0200, Piter_ wrote: Hi all. I use org-mode for making note while reading articles. Sometimes I want to insert picture into notes. Now it takes to much time. I have to copy paste it into picture editor, save it and than make a link to it. I would like to do it in other way. Copy picture into clipboard (from pdf reader for example), and than run a function in emacs which will ask for file name, save the picture from clipboard into preset folder and insert link into org file for it. I have found those links. http://stackoverflow.com/questions/1868734/how-to-copy-to-clipboard-with-x11 http://stackoverflow.com/questions/3571179/how-does-x11-clipboard-handle-multiple-data-formats About handling clipboard images from python. I think it is possible to write a simple python script which can save clipboard picture into file, and than some lisp function which do all I described above using this script. Unfortunately I dont know python and lisp on level which allow me to do it fast end easy. So I ask if someone can do it. I think it would be useful addition for org-mode. May be even someone have implemented it, or made another work arround this problem. Thanks. Petro. P.S. Sorry if you get two copies of request. I had some troubles with sending it and may sent two versions of this mail. There was a discussion with a working solution not long ago for taking screenshots and inserting them into org automatically. http://comments.gmane.org/gmane.emacs.orgmode/33770 I suspect the code is on worg. Enjoy. -- Russell Adams rlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] insert picture feature request.
Am 04.05.2011 12:01, schrieb Rainer Stengele: +1 for windows support. I would also need such a image copy tool under windows. A way to capture an image and have it referenced/included in an org file with a simple keychord would be most welcome. What most of my colleagues - non Emacs users - do is open MS Word, paste some captured images and write some simple comments. No need to copy, save and link to an image. A documentation including some screenshots is done in a snap. For me this is one of the things I miss a lot while living in Org. Anybody knows about a comparable tool to Imagemagick import under Windows? === OK - I searched a bit and found this, which works on command line: (see http://www.irfanview.de) Example for /capture: i_view32.exe /capture=0 Capture the whole screen. i_view32.exe /capture=6 Start in Capture mode, use last used capture dialog settings. capture values: 0 = whole screen 1 = current monitor, where mouse is located 2 = foreground window 3 = foreground window - client area 4 = rectangle selection 5 = object selected with the mouse 6 = start in capture mode (can't be combined with other commandline options) Advanced examples: i_view32.exe /capture=2 /convert=c:\test.jpg Capture foreground window and save result as file. i_view32.exe /capture=2 /convert=c:\capture_$U(%d%m%Y_%H%M%S).jpg Capture foreground window and save result as file; the file name contains time stamp. === I will try this in my Org environment. -- Rainer Am 04.05.2011 02:37, schrieb Mark S.: This doesn't work under windows even if you have ImageMagick installed. Is there a similar way to capture and insert a picture under windows? Thanks! --- On Mon, 5/2/11, Russell Adams rlad...@adamsinfoserv.com wrote: From: Russell Adams rlad...@adamsinfoserv.com Subject: Re: [O] insert picture feature request. To: emacs-orgmode@gnu.org Date: Monday, May 2, 2011, 6:28 AM On Mon, May 02, 2011 at 02:42:41PM +0200, Piter_ wrote: Hi all. I use org-mode for making note while reading articles. Sometimes I want to insert picture into notes. Now it takes to much time. I have to copy paste it into picture editor, save it and than make a link to it. I would like to do it in other way. Copy picture into clipboard (from pdf reader for example), and than run a function in emacs which will ask for file name, save the picture from clipboard into preset folder and insert link into org file for it. I have found those links. http://stackoverflow.com/questions/1868734/how-to-copy-to-clipboard-with-x11 http://stackoverflow.com/questions/3571179/how-does-x11-clipboard-handle-multiple-data-formats About handling clipboard images from python. I think it is possible to write a simple python script which can save clipboard picture into file, and than some lisp function which do all I described above using this script. Unfortunately I dont know python and lisp on level which allow me to do it fast end easy. So I ask if someone can do it. I think it would be useful addition for org-mode. May be even someone have implemented it, or made another work arround this problem. Thanks. Petro. P.S. Sorry if you get two copies of request. I had some troubles with sending it and may sent two versions of this mail. There was a discussion with a working solution not long ago for taking screenshots and inserting them into org automatically. http://comments.gmane.org/gmane.emacs.orgmode/33770 I suspect the code is on worg. Enjoy. -- Russell Adams rlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 The better approach seems to be to take the screenshot image from the clipboard. Therefore any screenshot tool will do. This works for me under Windows XP: (I had to introduce the tilde-buffer-filename variable for irfanview to work) (defun org-screenshot () Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file. (interactive) (setq tilde-buffer-filename (replace-regexp-in-string / \\ (buffer-file-name) t t)) (setq filename (concat (make-temp-name (concat tilde-buffer-filename _ (format-time-string %Y%m%d_%H%M%S_)) ) .jpg)) ;; Linux: ImageMagick: (call-process import nil nil nil filename) ;; Windows: Irfanview (call-process c:\\Programme\\IrfanView\\i_view32.exe nil nil nil (concat /clippaste /convert= filename)) (insert (concat [[file: filename ]])) (org-display-inline-images)) So this is how it works: 1. take
Re: [O] Display missing/overlapping clock ranges
Dear Carsten, yesterday I found some time to check all my clockings starting from the begining of the year. With the help of the agenda gaps and overlaps indication I found quite some faults in my clockings. I found the functions to be very helpful! Org is becoming more useful all the time! Thanks again for implementing! Maybe you could now implement some function telling me what I did in the clocking gaps ... :-) Mit freundlichen Grüßen / Best Regards Rainer Stengele __|___ | Dipl. Inf. (Univ.) Rainer Stengele | Technical Control - System Administration | | email: rainer.steng...@diplan.de | voice/fax: ++49-9131-7778-85/88 | WWW : http://www.diplan.de | | diplan GmbH | Wetterkreuz 27 | 91058 Erlangen, Germany Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Am 27.04.2011 13:53, schrieb Carsten Dominik: On Apr 24, 2011, at 11:48 PM, Rainer Stengele wrote: Am 24.04.2011 17:30, schrieb Carsten Dominik: On 13.4.2011, at 23:06, Bernt Hansen wrote: Paul Mead paul.d.m...@gmail.com writes: Rainer Stengele rainer.steng...@diplan.de writes: I do clock every task I work on during the whole day. At the end of the day or week I have to go over all clock entries in my agenda and see if there are holes or overlappings in my clock tables. If yes I have to adjust the clocks. I read Bernt Hansen's comments on how he works with clocks (http://doc.norang.ca/org-mode.html#Clocking). What about a function showing the lacking clock ranges over the day while being in the agenda with log mode on? The function could even check for overlapping clock ranges and indicate these or jump to these. Maybe it would even be good to be able to configure daily and weekly regular holes in the ranges, for example - daily lunch time from [12:00]--[13:00] - week end days (maybe with diary syntax) - working days (Monday to Friday for example) What do you think? -- Rainer I'd defintely use something which identified the gaps and overlaps as they're taking some time to find now that I have to account more closely for my time! I've been considering whether to raise this for a while. The 'regular holes' idea is good to, although not as important for me. Paul Hi Rainer and Paul, Locating gaps would be useful. I've been meaning to investigate this but haven't spent any time on it yet. With my current clocking setup I've found I get very few holes. Checking the times is a task I do manually just before billing for my time. I currently just use a visual scan of the daily agenda(s) including clocking lines displayed ensuring that the start and end times match over the clocking period. It should be possible to automate the check. How should a filtered agenda be handled? I expect you'd want to see the gaps for the entries that are filtered away otherwise it's only really meaningful when you look at the entire clocking data. The major problem I used to have was clocks that would be opened and never closed. These were bad because they count as 0 minutes and without fixing those entries I don't bill for that time. Since the invention of M-x org-resolve-clocks (which runs everytime I clock in) I now find these open clocks quickly and don't need to reconstruct the data a week later. I haven't had this problem in a long time. Maybe something like the following mock up? --8---cut here---start-8--- Day-agenda (W15): Wednesday 13 April 2011 todo:7:09- 7:11 Clocked: (0:02) Organization :PERSONAL:: 7:11- 8:00 - Gap - (0:49) org: 8:00- 8:12 Clocked: (0:12) DONE Try to fix this bug :ORG:WORK:tuning:: todo:8:12- 8:26 Clocked: (0:14) Organization :PERSONAL:: diary: 8:26- 9:06 Clocked: (0:40) Breakfast todo:9:06- 9:30 Clocked: (0:24) Task A :PERSONAL:: 9:30-10:58 - Gap - (1:28) 10:00.. todo: 10:58-11:11 Clocked: (0:13) Organization :PERSONAL:: vvv -- Overlap -- vvv todo: 11:11-11:12 Clocked: (0:01) Read Mail and News
Re: [O] Display missing/overlapping clock ranges
Am 24.04.2011 17:30, schrieb Carsten Dominik: On 13.4.2011, at 23:06, Bernt Hansen wrote: Paul Mead paul.d.m...@gmail.com writes: Rainer Stengele rainer.steng...@diplan.de writes: I do clock every task I work on during the whole day. At the end of the day or week I have to go over all clock entries in my agenda and see if there are holes or overlappings in my clock tables. If yes I have to adjust the clocks. I read Bernt Hansen's comments on how he works with clocks (http://doc.norang.ca/org-mode.html#Clocking). What about a function showing the lacking clock ranges over the day while being in the agenda with log mode on? The function could even check for overlapping clock ranges and indicate these or jump to these. Maybe it would even be good to be able to configure daily and weekly regular holes in the ranges, for example - daily lunch time from [12:00]--[13:00] - week end days (maybe with diary syntax) - working days (Monday to Friday for example) What do you think? -- Rainer I'd defintely use something which identified the gaps and overlaps as they're taking some time to find now that I have to account more closely for my time! I've been considering whether to raise this for a while. The 'regular holes' idea is good to, although not as important for me. Paul Hi Rainer and Paul, Locating gaps would be useful. I've been meaning to investigate this but haven't spent any time on it yet. With my current clocking setup I've found I get very few holes. Checking the times is a task I do manually just before billing for my time. I currently just use a visual scan of the daily agenda(s) including clocking lines displayed ensuring that the start and end times match over the clocking period. It should be possible to automate the check. How should a filtered agenda be handled? I expect you'd want to see the gaps for the entries that are filtered away otherwise it's only really meaningful when you look at the entire clocking data. The major problem I used to have was clocks that would be opened and never closed. These were bad because they count as 0 minutes and without fixing those entries I don't bill for that time. Since the invention of M-x org-resolve-clocks (which runs everytime I clock in) I now find these open clocks quickly and don't need to reconstruct the data a week later. I haven't had this problem in a long time. Maybe something like the following mock up? --8---cut here---start-8--- Day-agenda (W15): Wednesday 13 April 2011 todo:7:09- 7:11 Clocked: (0:02) Organization :PERSONAL:: 7:11- 8:00 - Gap - (0:49) org: 8:00- 8:12 Clocked: (0:12) DONE Try to fix this bug :ORG:WORK:tuning:: todo:8:12- 8:26 Clocked: (0:14) Organization :PERSONAL:: diary: 8:26- 9:06 Clocked: (0:40) Breakfast todo:9:06- 9:30 Clocked: (0:24) Task A :PERSONAL:: 9:30-10:58 - Gap - (1:28) 10:00.. todo: 10:58-11:11 Clocked: (0:13) Organization :PERSONAL:: vvv -- Overlap -- vvv todo: 11:11-11:12 Clocked: (0:01) Read Mail and News :PERSONAL:: todo: 11:10-11:14 Clocked: (0:01) Organization :PERSONAL:: ^^^ -- Overlap -- ^^^ todo: 11:14-11:15 Clocked: (0:01) Read Mail and News :PERSONAL:: todo: 11:15-11:16 Clocked: (0:01) Organization :PERSONAL:: 12:00.. 14:00.. 16:00.. 11:16-16:33 - Gap - (5:17) todo: 16:33.. Clocked: (-) Read Mail and News :PERSONAL:: 16:43.. now - - - - - - - - - - - - - - - - - - - - - - - - - 18:00.. 20:00.. --8---cut here---end---8--- Hi Bernt, Rainer, Paul, these are pretty good ideas, and since it is a holiday, I have some time, so I have tried an implementation and just pushed it to the master. This introduces a new key in the agenda, v c, which will check for clocking issues and display them in a similar way as Bernt proposes. The whole thing works like log view, so it applies to the currently displayed span in the agenda, and it sticks if you move around with f and b. To get out of this view, press l to turn off log view, for example. Also, it is a special log view in that it only shows clocking information, I believe this makes it more direct and useful. There is a variable
Re: [O] Display missing/overlapping clock ranges
Am 13.04.2011 17:44, schrieb Rainer Stengele: Hi all! I do clock every task I work on during the whole day. At the end of the day or week I have to go over all clock entries in my agenda and see if there are holes or overlappings in my clock tables. If yes I have to adjust the clocks. I read Bernt Hansen's comments on how he works with clocks (http://doc.norang.ca/org-mode.html#Clocking). What about a function showing the lacking clock ranges over the day while being in the agenda with log mode on? The function could even check for overlapping clock ranges and indicate these or jump to these. Maybe it would even be good to be able to configure daily and weekly regular holes in the ranges, for example - daily lunch time from [12:00]--[13:00] - week end days (maybe with diary syntax) - working days (Monday to Friday for example) What do you think? -- Rainer Hi again, I just rediscovered the wonderful C-c C-x C-d (org-clock-display) command to show subtree times in the whole buffer. How could I miss that, being an old org user ... Anyway, I browsed a bit through my headlines and found some huge times. Digging deeper I found some runaway clocks exceeding several days, one even over more than a year. As I do not review all org files for such errors, I would be interested in - finding all clock times longer than x hours (for example 12 hours - I never clock over night) - find all clock times clocking in the weekend (Saturday, Sunday) - finding all clock times lower than y minutes (for example 15 minutes) Are theree any already included functions in Org helping me do that? Best, - Rainer
Re: [O] Display missing/overlapping clock ranges
Am 13.04.2011 23:06, schrieb Bernt Hansen: Paul Mead paul.d.m...@gmail.com writes: Rainer Stengele rainer.steng...@diplan.de writes: I do clock every task I work on during the whole day. At the end of the day or week I have to go over all clock entries in my agenda and see if there are holes or overlappings in my clock tables. If yes I have to adjust the clocks. I read Bernt Hansen's comments on how he works with clocks (http://doc.norang.ca/org-mode.html#Clocking). What about a function showing the lacking clock ranges over the day while being in the agenda with log mode on? The function could even check for overlapping clock ranges and indicate these or jump to these. Maybe it would even be good to be able to configure daily and weekly regular holes in the ranges, for example - daily lunch time from [12:00]--[13:00] - week end days (maybe with diary syntax) - working days (Monday to Friday for example) What do you think? -- Rainer I'd defintely use something which identified the gaps and overlaps as they're taking some time to find now that I have to account more closely for my time! I've been considering whether to raise this for a while. The 'regular holes' idea is good to, although not as important for me. Paul Hi Rainer and Paul, Locating gaps would be useful. I've been meaning to investigate this but haven't spent any time on it yet. With my current clocking setup I've found I get very few holes. Checking the times is a task I do manually just before billing for my time. I currently just use a visual scan of the daily agenda(s) including clocking lines displayed ensuring that the start and end times match over the clocking period. It should be possible to automate the check. How should a filtered agenda be handled? I expect you'd want to see the gaps for the entries that are filtered away otherwise it's only really meaningful when you look at the entire clocking data. The major problem I used to have was clocks that would be opened and never closed. These were bad because they count as 0 minutes and without fixing those entries I don't bill for that time. Since the invention of M-x org-resolve-clocks (which runs everytime I clock in) I now find these open clocks quickly and don't need to reconstruct the data a week later. I haven't had this problem in a long time. Maybe something like the following mock up? --8---cut here---start-8--- Day-agenda (W15): Wednesday 13 April 2011 todo:7:09- 7:11 Clocked: (0:02) Organization :PERSONAL:: 7:11- 8:00 - Gap - (0:49) org: 8:00- 8:12 Clocked: (0:12) DONE Try to fix this bug :ORG:WORK:tuning:: todo:8:12- 8:26 Clocked: (0:14) Organization :PERSONAL:: diary: 8:26- 9:06 Clocked: (0:40) Breakfast todo:9:06- 9:30 Clocked: (0:24) Task A :PERSONAL:: 9:30-10:58 - Gap - (1:28) 10:00.. todo: 10:58-11:11 Clocked: (0:13) Organization :PERSONAL:: vvv -- Overlap -- vvv todo: 11:11-11:12 Clocked: (0:01) Read Mail and News :PERSONAL:: todo: 11:10-11:14 Clocked: (0:01) Organization :PERSONAL:: ^^^ -- Overlap -- ^^^ todo: 11:14-11:15 Clocked: (0:01) Read Mail and News :PERSONAL:: todo: 11:15-11:16 Clocked: (0:01) Organization :PERSONAL:: 12:00.. 14:00.. 16:00.. 11:16-16:33 - Gap - (5:17) todo: 16:33.. Clocked: (-) Read Mail and News :PERSONAL:: 16:43.. now - - - - - - - - - - - - - - - - - - - - - - - - - 18:00.. 20:00.. --8---cut here---end---8--- Regards, Bernt Bernt, that looks very useful! Regards, Rainer
[O] Display missing/overlapping clock ranges
Hi all! I do clock every task I work on during the whole day. At the end of the day or week I have to go over all clock entries in my agenda and see if there are holes or overlappings in my clock tables. If yes I have to adjust the clocks. I read Bernt Hansen's comments on how he works with clocks (http://doc.norang.ca/org-mode.html#Clocking). What about a function showing the lacking clock ranges over the day while being in the agenda with log mode on? The function could even check for overlapping clock ranges and indicate these or jump to these. Maybe it would even be good to be able to configure daily and weekly regular holes in the ranges, for example - daily lunch time from [12:00]--[13:00] - week end days (maybe with diary syntax) - working days (Monday to Friday for example) What do you think? -- Rainer
[O] How to display a diary entry in agenda week view only today
Hi! In one of my org agenda files I have #+CATEGORY: Sunrise %%(diary-sunrise-sunset) Now, when I am in weekly agenda view the sunrise-sunset shows under every day. This is kind of too much line noise and distracting for me - I would like to only see the entry for today. Is there a way to restrict the display of such a diary entry in the weekly agenda view to only today? Regards, Rainer
[O] Re: How to display a diary entry in agenda week view only today
Am 11.04.2011 10:36, schrieb Suvayu Ali: On Mon, 11 Apr 2011 08:52:52 +0200 Rainer Stengele rainer.steng...@diplan.de wrote: Hi! In one of my org agenda files I have #+CATEGORY: Sunrise %%(diary-sunrise-sunset) Now, when I am in weekly agenda view the sunrise-sunset shows under every day. This is kind of too much line noise and distracting for me - I would like to only see the entry for today. Is there a way to restrict the display of such a diary entry in the weekly agenda view to only today? How about this, %%(if (calendar-date-equal date (calendar-current-date)) (diary-sunrise-sunset)) Regards, Rainer Perfect, thanks. I can find the other functions in calendar.el, but where is date from? Best, Rainer
[O] Strange indentation bevaviour: cannot find out why
Hi all, I have a very strange indentation behaviour which bugs me a lot and I cannot find the reason why. Having this text block at the beginning of an org file ** headline - [ ] * [ ] + enter C-S-RETURN with point here: - [ ] and entering C-S-RETURN with point indicated I get: ** headline - [ ] * [ ] + enter C-S-RETURN with point here: + [ ] - [ ] which is perfect! Having (note the heading level is now 3 instead of 2 before, same is true for all higher heading levels) *** headline - [ ] * [ ] + enter C-S-RETURN with point here: - [ ] also entering M-RETURN with point indicated I get: *** headline - [ ] * [ ] + enter C-S-RETURN with point here: + [ ] - [ ] entering C-RETURN with point indicated I get: *** headline - [ ] * [ ] + enter C-S-RETURN with point here: + - [ ] I tested with a minimal emacs config and the bug was gone. So I know it is in my settings, but I could not find the reason in my configuration. The behaviour I see appeared only a few weeks or months ago. Has anybody an idea? I run Org-mode version 7.5 (release_7.5.42.g09066e). Same behaviour was in 7.4. -- Rainer
[O] Re: Strange indentation bevaviour: cannot find out why
Hi Nicolas, I just did a quick test and it looks good! Thanks! Mit freundlichen Grüßen / Best Regards Rainer Stengele __|___ | Dipl. Inf. (Univ.) Rainer Stengele | Technical Control - System Administration | | email: rainer.steng...@diplan.de | voice/fax: ++49-9131-7778-85/88 | WWW : http://www.diplan.de | | diplan GmbH | Wetterkreuz 27 | 91058 Erlangen, Germany Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Am 08.03.2011 23:59, schrieb Nicolas: Hello, Rainer Stengele rainer.steng...@diplan.de writes: I tested with a minimal emacs config and the bug was gone. So I know it is in my settings, but I could not find the reason in my configuration. The behaviour I see appeared only a few weeks or months ago. Has anybody an idea? This is not the fault of your configuration. This is due to indent-tabs-mode not being nil. I thought I had fixed this bug some time ago, but it looks like I was wrong. I have pushed a (hopefully) final fix for this. Regards,
Re: [O] Re: Re: org-clock-idle-time resolving dialogues seem to stack up for each passed idle time period
Am 28.02.2011 14:31, schrieb Rainer Stengele: Am 27.02.2011 17:37, schrieb David Maus: Hi Rainer, At Mon, 24 Jan 2011 14:41:15 +0100, Rainer Stengele wrote: this still bugs me. After leaving idle my emacs for some time longer than the configured idle time I have to apply answers to the idle-time dialogue several times. I cannot simply press j to jump to the open clock but have to press j an unknown many times, mostly ending up with one or more j characters at the point I am being jumped to finally... Looks like I am the only one using this feature? Anybody has an idea? I couldn't reproduce this problem neither with Org-mode version 7.4 (release_7.4.509.g99aa5) on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian nor on GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) of 2010-05-08 on G41R2F1 I had set `org-clock-idle-time' to 1, left the computer for a while and when I came back there was just one clock resolving prompt waiting. Did you check if this problem occurs on emacs -q and just loading Org mode w/o any configuration? My preliminary conclusion on this issue: Org uses a timer object to trigger the prompt -- if you are prompted multiple times this would/could indicate that there are multiple timers for idle clock resolving. Can you verifiy this by checking the value of `timer-list' (C-h v timer-list RET)? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de Hi David, I get this: timer-list is a variable defined in `C source code'. Its value is ([nil 19819 40376 0 60 display-time-event-handler nil nil] [nil 19819 40376 0 60 appt-check nil nil] [nil 19819 40382 402000 60 org-resolve-clocks-if-idle nil nil] [nil 19819 40382 402000 60 org-clock-update-mode-line nil nil]) So this looks like there is only one timer for resolving the org clock. Hm. Regards, Rainer Hi! Once again I had the case of being forced to press j half a dozen times until the idle clock mechanism frees the keyboard for regular input. I watched the idle time display in the minibuffer. It changed fro mkeypress to keypress so this really looks like there are stacked up many timers. Regards, Rainer -- 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
[O] Re: Simple Indentation question: indentation behaviour changed some time ago.
Am 02.03.2011 00:45, schrieb Nicolas: Hello, Rainer Stengele rainer.steng...@online.de writes: * headline - item TEXT ^ cursor on first T of TEXT and pressing TAB I got: * headline - item TEXT nowadays I get * headline - item TEXT I checked the org-*indent* variables but could not find a matching variable. How can I configure the old behaviour? You can set `org-list-ending-method' to 'regexp, meaning that you will need to provide two blank lines (that's configurable though, see `org-empty-line-terminates-plain-lists' and `org-list-end-regexp') to end a list. Otherwise, lists are determined by indentation, so, in your example, TEXT end the list as it is less indented than any of its items. Thus, when pressing TAB, Org indent the line accordingly, that is as a line belonging to the headline but not to the list. Also note that, if TEXT isn't already typed, you can use C-j after item to stay inside list and go on typing. Regards, Hello Nicolas, ok, thanks, I checked all that but could not find a setting that makes sense for me. I do not understand why when pressing TAB being at point ^: - item ^ results in - item ^ but having - item TEXT ^ and pressing TAB results in - item TEXT ^ How can I get the indentation same as with empty lines? -- Rainer attachment: rainer_stengele.vcf___ 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
[O] Re: Simple Indentation question: indentation behaviour changed some time ago.
Am 02.03.2011 10:51, schrieb Nicolas: Hello, Rainer Stengele rainer.steng...@online.de writes: I do not understand why when pressing TAB being at point ^: - item ^ results in - item ^ but having - item TEXT ^ and pressing TAB results in - item TEXT ^ How can I get the indentation same as with empty lines? You can't. Once TEXT is typed at column 0, by definition, the list before is over, and indentation reflects that. And this makes sense: how could an user end a list if all his text was eventually being inserted inside the list? On the other hand, if no text is typed yet, like in your first case, the list isn't over, and TAB will indent line into the last item of the list, as if you had typed C-j. I hope it is clearer now. Regards, -- Nicolas Nicolas, thank you for explaining. Well, it still bugs me. Many times I start with something like headline item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 and then later want to bring in more structure, making item1 and item2 a list item. I would then expect to get the Text belonging to lines being indented as in headline - item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 - item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 but I get this: headline - item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 - item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 of course I can indent via macros or manually, I just don't find the behaviour ok. Regards, -- Rainer attachment: rainer_stengele.vcf___ 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
[O] Simple Indentation question: indentation behaviour changed some time ago.
Hi all, I remember once I had this * headline - item TEXT ^ cursor on first T of TEXT and pressing TAB I got: * headline - item TEXT nowadays I get * headline - item TEXT I checked the org-*indent* variables but could not find a matching variable. How can I configure the old behaviour? Thanks Rainer ___ 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
[O] Re: [Orgmode] Re: org-clock-idle-time resolving dialogues seem to stack up for each passed idle time period
Am 27.02.2011 17:37, schrieb David Maus: Hi Rainer, At Mon, 24 Jan 2011 14:41:15 +0100, Rainer Stengele wrote: this still bugs me. After leaving idle my emacs for some time longer than the configured idle time I have to apply answers to the idle-time dialogue several times. I cannot simply press j to jump to the open clock but have to press j an unknown many times, mostly ending up with one or more j characters at the point I am being jumped to finally... Looks like I am the only one using this feature? Anybody has an idea? I couldn't reproduce this problem neither with Org-mode version 7.4 (release_7.4.509.g99aa5) on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian nor on GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) of 2010-05-08 on G41R2F1 I had set `org-clock-idle-time' to 1, left the computer for a while and when I came back there was just one clock resolving prompt waiting. Did you check if this problem occurs on emacs -q and just loading Org mode w/o any configuration? My preliminary conclusion on this issue: Org uses a timer object to trigger the prompt -- if you are prompted multiple times this would/could indicate that there are multiple timers for idle clock resolving. Can you verifiy this by checking the value of `timer-list' (C-h v timer-list RET)? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de Hi David, I get this: timer-list is a variable defined in `C source code'. Its value is ([nil 19819 40376 0 60 display-time-event-handler nil nil] [nil 19819 40376 0 60 appt-check nil nil] [nil 19819 40382 402000 60 org-resolve-clocks-if-idle nil nil] [nil 19819 40382 402000 60 org-clock-update-mode-line nil nil]) So this looks like there is only one timer for resolving the org clock. Hm. Regards, Rainer ___ 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 in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.
Hi all, I think I found 1 or 2 bugs: 1. Having a text block like this: ** Headline SCHEDULED: 2011-02-25 Fr CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] = 0:00 CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] = 0:01 CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] = 2:15 CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] = 0:30 CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] = 1:30 CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] = 2:30 CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] = 3:30 CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] = 4:00 CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] = 0:45 CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] = 1:00 - item1 * [2011-02-21 Mo] more text - item2 ... then clocking in results in ** Headline SCHEDULED: 2011-02-25 Fr :LOGBOOK: CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] = 0:00 CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] = 0:01 CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] = 2:15 CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] = 0:30 CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] = 1:30 CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] = 2:30 CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] = 3:30 CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] = 4:00 CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] = 0:45 CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] = 1:00 - item1 * [2011-02-21 Mo] more text :END: - item2 I assume the date is confusing the regexp to find the end of the drawer section. Due to the bug I now have a lot of wrong LOGBOOK blocks in my org files... 2. In the Org manual I find: , | Visibility cycling (see Visibility cycling) on the headline will | hide and show the entry, but keep the drawer collapsed to a single line. | In order to look inside the drawer, you need to move the cursor to the | drawer line and press TAB there. ` which does not work for me. I cannot collapse the drawer by pressing TAB. - Rainer ___ 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] Re: Bug in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.
Am 25.02.2011 18:54, schrieb Nicolas: Hello, Rainer Stengele rainer.steng...@diplan.de writes: 1. Having a text block like this: ** Headline SCHEDULED: 2011-02-25 Fr CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] = 0:00 CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] = 0:01 CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] = 2:15 CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] = 0:30 CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] = 1:30 CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] = 2:30 CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] = 3:30 CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] = 4:00 CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] = 0:45 CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] = 1:00 - item1 * [2011-02-21 Mo] more text - item2 This should be fixed in master now: the whole list will be swallowed by the drawer (I think it is the intent of the original author of the function). 2. In the Org manual I find: , | Visibility cycling (see Visibility cycling) on the headline will | hide and show the entry, but keep the drawer collapsed to a single line. | In order to look inside the drawer, you need to move the cursor to the | drawer line and press TAB there. ` which does not work for me. I cannot collapse the drawer by pressing TAB. May you be more explicit here ? I have no problems collapsing and expanding drawers here. Is the drawer you want to collapse in `org-drawers', or after #+DRAWERS: in the buffer ? Regards, Hi Nicolas, thank you! Unfortunately now the :END: encloses even more lines further down the block! Please recheck your patch, it does not close the CLOCK: lines! Best regards, Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how to filter CATEGORY entries in org-agenda-custom command (agenda)?
Am 11.02.2011 11:32, schrieb Bastien: Hi Rainer, Rainer Stengele rainer.steng...@diplan.de writes: how to filter CATEGORY entries in org-agenda-custom command (agenda)? You can do this by setting `org-agenda-skip-function' to a function that matches CATEGORY. You can find a subtree's category through (org-entry-get (point) CATEGORY) HTH, Hi Bastien, I am in the middle of my org file, having a #+CATEGORY: TEST in line 1 of the file. Putting the code (org-entry-get (point) CATEGORY) in the middle of my file under any headline and evaluating it gives me nil. Shouldn't the code give me TEST? - Rainer ___ 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] indentation bug related to preceding :PROPERTIES: line
Hi all, I have found an indentation bug: Example: --- * headline :PROPERTIES: #+TITLE: title :END: * INARBEIT test :LOGBOOK: CLOCK: [2011-02-03 Do 09:54]--[2011-02-03 Do 09:54] = 0:00 CLOCK: [2011-02-03 Do 09:54]--[2011-02-03 Do 09:54] = 0:00 CLOCK: [2011-02-03 Do 09:54]--[2011-02-03 Do 09:54] = 0:00 CLOCK: [2011-02-03 Do 09:53]--[2011-02-03 Do 09:54] = 0:01 CLOCK: [2011-02-03 Do 09:53]--[2011-02-03 Do 09:53] = 0:00 CLOCK: [2011-02-03 Do 09:53]--[2011-02-03 Do 09:53] = 0:00 :END: --- Pressing TAB on the :END: closing the :LOGBOOK: indents it to the same level as the :PROPERTIES: string above. Deleting the :PROPERTIES: item leads to the correct indentation. - Rainer ___ 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] Re: Indentation not respected when demoting a headline
Am 02.02.2011 21:35, schrieb Sébastien Vauban: Hi, Imagine the following headline: --8---cut here---start-8--- ** NEW Send a mail to him SCHEDULED: 2011-02-04 Fri :PROPERTIES: :Created: [2011-01-17 Mon 14:00] :END: --8---cut here---end---8--- If I demote it (with M-right arrow), it gets a new star, but the following meta-lines aren't properly moved to the right by one space: --8---cut here---start-8--- *** NEW Send a mail to him SCHEDULED: 2011-02-04 Fri :PROPERTIES: :Created: [2011-01-17 Mon 14:00] :END: --8---cut here---end---8--- Do you confirm this? Best regards, Seb Hi Sebastian, running Org-mode version 7.4 (release_7.4.328.g1cc7) I cannot confirm this, the whole block is correctly moved by demoting or out-denting. Best Regards, Rainer ___ 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] Re: indentation bug related to preceding :PROPERTIES: line
Am 03.02.2011 14:38, schrieb Nicolas Goaziou: Hello, Rainer Stengele writes: Hi all, I have found an indentation bug: Pressing TAB on the :END: closing the :LOGBOOK: indents it to the same level as the :PROPERTIES: string above. I cannot reproduce it in development version. What version are you using? Regards, -- Nicolas ___ 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 Hi, I am running the latest git version: Org-mode version 7.4 (release_7.4.328.g1cc7) Rainer ___ 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] Re: org-clock-idle-time resolving dialogues seem to stack up for each passed idle time period
Am 07.10.2010 10:46, schrieb Rainer Stengele: Am 06.08.2010 09:35, schrieb Rainer Stengele: hi all, having set org-clock-idle-time to 15 minutes the dialogue to resolve the idle time shows correctly after 15 minutes of idle time. Many times I simply press j just to jump to the running clock. What I experience is that I have to press j several times until the dialogue gets finally closed. It looks like the resolving dialogues are stacking up, one for each org-clock-idle-time period that has passed. Can anybody confirm this - well - bug? Rainer ___ 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 Hi all, this still bugs me. After leaving idle my emacs for some time longer than the configured idle time I have to apply answers to the idle-time dialogue several times. I cannot simply press j to jump to the open clock but have to press j an unknown many times, mostly ending up with one or more j characters at the point I am being jumped to finally... Looks like I am the only one using this feature? Anybody has an idea? Rainer ___ 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 Hi all, anybody? - Rainer ___ 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 in the agenda bulk actions for rescheduling several items
Am 02.01.2011 16:11, schrieb David Maus: At Tue, 14 Dec 2010 11:16:21 +0100, Rainer Stengele wrote: Hi all, I think I have found a bug in the agenda bulk actions for rescheduling several items. Reproducable excerpt from *Messages* is: .. I could not reproduce this with Org-mode version 7.4 (release_7.4.95.ga2ac) on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian. If this problem still persists, could you run an uncompiled version (i.e. C-u M-x org-reload RET) and provide a backtrace? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de Hi all, this bug was fixed some time ago ... Works now as before! Thanks for considering. Best, Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how to filter CATEGORY entries in org-agenda-custom command (agenda)?
Hi all! how to filter CATEGORY entries in org-agenda-custom command (agenda)? Sorry I cannot find it. I know how to filter such entries in tags-todo blocks: tags-todo -CATEGORY=\PADUA\-CATEGORY=\PADUA-LH\-CATEGORY=\PADUA-PH\ but I cannot find an equivalent for the (agenda) part of my custom command. - Rainer ___ 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] Re: Huge performance problems to open some Org files
Am 17.12.2010 10:15, schrieb Sébastien Vauban: Hello, I've real performance problems for opening some Org files. Just some, hopefully. I don't remember having those problems when I was on Ubuntu, and I must already have opened it, back then, but... Anyway, I'm now (forced) on Windows, and I have the problem. For example[fn:1], the small attached file takes me at least 6 s for opening it! I really have no idea why. Why is it different from others, longer, that are opened in a much shorter time? What did I do to try to spot the problem? M-x elp-instrument-package RET org- RET M-x find-file FILE RET M-x elp-results. Here they are: #+begin_src emacs-lisp org-mode 1 6.719 6.719 org-set-regexps-and-options 1 0.203 0.203 org-compute-latex-and-specials-regexp 1 0.203 0.203 org-match-string-no-properties35 0.016 0.0004571428 org-infile-export-plist 2 0.016 0.008 org-all-targets 1 0.0 0.0 org-mode-p13 0.0 0.0 org-babel-result-hide-spec1 0.0 0.0 org-inlinetask-fontify2 0.0 0.0 org-bookmark-jump-unhide 1 0.0 0.0 org-cycle 1 0.0 0.0 org-unfontify-region 2 0.0 0.0 org-agenda-files 1 0.0 0.0 org-raise-scripts 2 0.0 0.0 org-activate-dates2 0.0 0.0 org-point-at-end-of-empty-headline1 0.0 0.0 org-load-modules-maybe2 0.0 0.0 org-get-indentation 1 0.0 0.0 org-remove-font-lock-display-properties 2 0.0 0.0 org-mode-flyspell-verify 1 0.0 0.0 org-clocking-p1 0.0 0.0 org-activate-footnote-links 2 0.0 0.0 org-at-item-checkbox-p1 0.0 0.0 org-propertize4 0.0 0.0 org-babel-do-key-sequence-in-edit-buffer 1 0.0 0.0 org-set-startup-visibility1 0.0 0.0 org-overview 1 0.0 0.0 org-resolve-clocks-if-idle1 0.0 0.0 org-decompose-region 2 0.0 0.0 org-make-options-regexp 3 0.0 0.0 org-update-radio-target-regexp1 0.0 0.0 org-font-lock-add-priority-faces 2 0.0 0.0 org-assign-fast-keys 1 0.0 0.0 org-extract-log-state-settings16 0.0 0.0 org-install-agenda-files-menu 1 0.0 0.0 org-babel-where-is-src-block-head 1 0.0 0.0 org-do-latex-and-special-faces2 0.0 0.0 org-cycle-internal-global 1 0.0 0.0 org-do-emphasis-faces 2 0.0 0.0 org-link-display-format 3 0.0 0.0 org-src-native-tab-command-maybe 1 0.0 0.0 org-fontify-entities 2 0.0 0.0 org-file-menu-entry 32 0.0 0.0 org-set-visibility-according-to-property 1 0.0 0.0 org-activate-bracket-links2 0.0 0.0
[Orgmode] Re: Lisp error: (void-variable org-inhibit-highlight-removal) with `C-c / /'
Am 14.12.2010 11:29, schrieb Sébastien Vauban: Hi, This seems new to me... #+begin_src emacs-lisp Debugger entered--Lisp error: (void-variable org-inhibit-highlight-removal) (if org-inhibit-highlight-removal nil (mapc (quote delete-overlay) org-occur-highlights) (setq org-occur-highlights nil) (setq org-occur-parameters nil) (unless noremove (remove-hook ... ... ...))) (unless org-inhibit-highlight-removal (mapc (quote delete-overlay) org-occur-highlights) (setq org-occur-highlights nil) (setq org-occur-parameters nil) (unless noremove (remove-hook ... ... ...))) org-remove-occur-highlights(nil nil t) (if keep-previous nil (org-remove-occur-highlights nil nil t)) (unless keep-previous (org-remove-occur-highlights nil nil t)) org-occur(some-string nil) call-interactively(org-occur) (cond ((equal ans 100) (call-interactively ...)) ((equal ans 98) (call-interactively ...)) ((equal ans 97) (call-interactively ...)) ((equal ans 116) (org-show-todo-tree nil)) ((equal ans 84) (org-show-todo-tree ...)) ((member ans ...) (call-interactively ...)) ((member ans ...) (setq kwd ...) (setq value ...) (unless ... ...) (org-match-sparse-tree arg ...)) ((member ans ...) (call-interactively ...)) (t (error No such sparse tree command \%c\ ans))) (let (ans kwd value) (message Sparse tree: [r]egexp [/]regexp [t]odo [T]odo-kwd [m]atch [p]roperty\n [d]eadlines [b]efore-date [a]fter-date) (setq ans (read-char-exclusive)) (cond (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ... ... ...) (... ...) (t ...))) org-sparse-tree(nil) call-interactively(org-sparse-tree nil nil) #+end_src My Org-mode version: 7.4 (release_7.4.24.g48b11) Best regards, Seb Hi, this seems similar: trying to open a link with C-c C-o gives this error: org-open-at-point: Symbol's value as variable is void: org-inhibit-highlight-removal - Rainer ___ 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] Re: Lisp error: (void-variable org-inhibit-highlight-removal) with `C-c / /'
Am 14.12.2010 13:08, schrieb Christian Moe: I get the same bug. Manually evaluating the following sexp at the very start of org.el fixes it: : (defvar org-inhibit-highlight-removal nil) But I can't see any reason why that line would not be evaluated at startup?? CM On 12/14/10 12:32 PM, Rainer Stengele wrote: Am 14.12.2010 11:29, schrieb Sébastien Vauban: Hi, This seems new to me... #+begin_src emacs-lisp Debugger entered--Lisp error: (void-variable org-inhibit-highlight-removal) (if org-inhibit-highlight-removal nil (mapc (quote delete-overlay) org-occur-highlights) (setq org-occur-highlights nil) (setq org-occur-parameters nil) (unless noremove (remove-hook ... ... ...))) (unless org-inhibit-highlight-removal (mapc (quote delete-overlay) org-occur-highlights) (setq org-occur-highlights nil) (setq org-occur-parameters nil) (unless noremove (remove-hook ... ... ...))) org-remove-occur-highlights(nil nil t) (if keep-previous nil (org-remove-occur-highlights nil nil t)) (unless keep-previous (org-remove-occur-highlights nil nil t)) org-occur(some-string nil) call-interactively(org-occur) (cond ((equal ans 100) (call-interactively ...)) ((equal ans 98) (call-interactively ...)) ((equal ans 97) (call-interactively ...)) ((equal ans 116) (org-show-todo-tree nil)) ((equal ans 84) (org-show-todo-tree ...)) ((member ans ...) (call-interactively ...)) ((member ans ...) (setq kwd ...) (setq value ...) (unless ... ...) (org-match-sparse-tree arg ...)) ((member ans ...) (call-interactively ...)) (t (error No such sparse tree command \%c\ ans))) (let (ans kwd value) (message Sparse tree: [r]egexp [/]regexp [t]odo [T]odo-kwd [m]atch [p]roperty\n [d]eadlines [b]efore-date [a]fter-date) (setq ans (read-char-exclusive)) (cond (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ... ... ...) (... ...) (t ...))) org-sparse-tree(nil) call-interactively(org-sparse-tree nil nil) #+end_src My Org-mode version: 7.4 (release_7.4.24.g48b11) Best regards, Seb Hi, this seems similar: trying to open a link withC-c C-o gives this error: org-open-at-point: Symbol's value as variable is void: org-inhibit-highlight-removal - Rainer ___ (setq org-inhibit-highlight-removal t) also fixes it. - Rainer ___ 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] Very strange indenting behaviour with CLOCKING drawers.
Hi all, I have a very strange indenting behaviour with CLOCKING drawers. I can easily reproduce it with a section like this: * INARBEIT test :LOGBOOK: CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] = 0:00 :END: text Note the location of the :END: string after pressing TAB on alle lines of the section. The value of org-clock-into-drawer is 6. Strangely, at another place in my org file I have this after pressing TAB in each line: INARBEIT [#A] [2010-12-08 Mi] PROJECT: Besprechung - Review Charts (+Vorbereitung/Nachbereitung) SCHEDULED: 2010-12-08 Mi 14:00-17:00 :LOGBOOK: CLOCK: [2010-12-08 Mi 13:00]--[2010-12-08 Mi 17:30] = 4:30 CLOCK: [2010-12-06 Mo 11:15]--[2010-12-06 Mo 12:00] = 0:45 CLOCK: [2010-12-06 Mo 08:30]--[2010-12-06 Mo 10:00] = 1:30 CLOCK: [2010-12-03 Fr 13:00]--[2010-12-03 Fr 14:00] = 1:00 CLOCK: [2010-12-01 Mi 16:30]--[2010-12-01 Mi 17:00] = 0:30 CLOCK: [2010-11-29 Mo 16:45]--[2010-11-29 Mo 17:00] = 0:15 CLOCK: [2010-11-29 Mo 09:00]--[2010-11-29 Mo 10:00] = 1:00 CLOCK: [2010-11-18 Do 13:30]--[2010-11-18 Do 14:00] = 0:30 CLOCK: [2010-11-18 Do 10:15]--[2010-11-18 Do 11:00] = 0:45 :END: - text Note the location of :END: at the beginning of the line. Org-mode version 7.3 (release_7.3.235.g6d07) - Rainer ___ 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] Re: moving in the agenda view is slow: solved!
Am 29.11.2010 17:15, schrieb Sébastien Vauban: Hi Rainer, Rainer Stengele wrote: after disabling the showing of the outline path in agenda views: line-move 430 0.189000 0.0004395348 line-move-1 430 0.173000 0.0004023255 org-agenda-previous-line 214 0.156000 0.0007289719 org-agenda-next-line 216 0.095 0.0004398148 next-line 216 0.048 0.000222 org-agenda-do-context-action 430 0.047 0.0001093023 org-detach-overlay431 0.015 3.48...e-005 org-unhighlight 431 0.015 3.48...e-005 line-move-partial 430 0.0 0.0 org-agenda-post-command-hook 431 0.0 0.0 org-get-at-bol430 0.0 0.0 scrolling with n and p runs smoothly now! Sigh! That means the slowness is connected to my .emacs and org settings!? I'am afraid I have to go through all the settings and find the culprit. What do you exactly mean by: disabling the showing of the outline path in agenda views? Best regards, Seb Hi Sebastian I meant setting org-agenda-show-outline-path to nil. - Now the more intersting news. Reading through my .emacs I found and removed the 2 reasons for the slowness! 1. smooth-scolling.el (from http://www.emacswiki.org/emacs/SmoothScrolling) The file includes this: #+BEGIN_SRC emacs-lisp (defadvice previous-line (after smooth-scroll-down (optional arg try-vscroll) activate) Scroll down smoothly if cursor is within `smooth-scroll-margin' lines of the top of the window. (and ;; Only scroll down if there is buffer above the start of the window. ( (window-start) (buffer-end -1)) (let ((lines-from-window-top (smooth-scroll-lines-from-window-top))) (and ;; Only scroll down if we're within the top margin (= lines-from-window-top smooth-scroll-margin) ;; Only scroll down if we're in the top half of the window (= lines-from-window-top ;; N.B. `window-height' includes modeline, so if it returned 21, ;; that would mean exactly 10 lines in the top half and 10 in ;; the bottom. 22 (or any even number) means there's one in the ;; middle. In both cases the following expression will ;; yield 10: (/ (1- (window-height)) 2)) (save-excursion (scroll-down (1+ (- smooth-scroll-margin lines-from-window-top (defadvice next-line (after smooth-scroll-up (optional arg try-vscroll) activate) Scroll up smoothly if cursor is within `smooth-scroll-margin' lines of the bottom of the window. (and ;; Only scroll up if there is buffer below the end of the window. ( (window-end) (buffer-end 1)) (let ((lines-from-window-bottom (smooth-scroll-lines-from-window-bottom))) (and ;; Only scroll up if we're within the bottom margin (= lines-from-window-bottom smooth-scroll-margin) ;; Only scroll up if we're in the bottom half of the window. (= lines-from-window-bottom ;; See above notes on `window-height'. (/ (1- (window-height)) 2)) (save-excursion (scroll-up (1+ (- smooth-scroll-margin lines-from-window-bottom ;;;_ + provide (provide 'smooth-scrolling) #+END_SRC 2. (add-hook 'org-agenda-mode-hook 'hl-line-mode) - Switching off both features brings back immediate scrolling. I do miss the features of smooth-scrolling and hl-line but it is not worth the performance penalty. Thanks to all for considering and helping. What a relieve to be able to again scroll fast in the agenda ... Best, Rainer ___ 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] Re: moving in the agenda view is slow
Am 28.11.2010 23:31, schrieb Nick Dokos: Eric S Fraga ucec...@ucl.ac.uk wrote: Nick Dokos nicholas.do...@hp.com writes: [...] Eric, do you encounter this problem on Emacs/Windows XP as well? Has anybody encountered this problem on anything *but* Emacs/Windows XP? All my systems run Linux (Debian testing+unstable mix) so it's not the OS. OK, thanks. It also eliminates the window system (unless Rainer is running X on Windows), so it looks like an emacs problem. Nick No, I am running Windows XP, native Windows Emacs GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched) Rainer ___ 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] Re: moving in the agenda view is slow
Am 28.11.2010 22:32, schrieb Nick Dokos: Rainer Stengele rainer.steng...@diplan.de wrote: I tried with pressing n step by step 10 times, so no leaning on the n key: org-agenda-next-line 10 0.313999 0.0314 next-line 10 0.313999 0.0314 org-detach-overlay12 0.0 0.0 org-agenda-post-command-hook 12 0.0 0.0 org-agenda-do-context-action 10 0.0 0.0 org-get-at-bol10 0.0 0.0 org-unhighlight 12 0.0 0.0 font-lock-mode1 0.0 0.0 font-lock-default-function1 0.0 0.0 I see no change. Emacs is on Windows XP. OK - next-line is indeed taking up all the time (but the exact equality and the 0.0 times make me wonder about the clock resolution on this platform and how reliable elp is here), so, unless there is some backdoor connection, these delays have nothing to do with org - it's emacs itself which is slow: 31ms per call is not as slow as it was yesterday, but it's still 25x what I see. Eric, do you encounter this problem on Emacs/Windows XP as well? Has anybody encountered this problem on anything *but* Emacs/Windows XP? Rainer, if you'd like to continue the exercise, maybe the thing to do is to profile functions that next-line calls and get another profile. The only other function that seems likely to take up time is line-move, so you might proceed like this: Set up a minimal emacs so that you don't have to retype everything over and over. Something like the following, where I assume you use org-install to initialize org - you'll also have to change the load-path and the list of org-agenda-files to suit your situation: --8---cut here---start-8--- (add-to-list 'load-path ~/elisp/org-mode/lisp) (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode)) (require 'org-install) (require 'org-agenda) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cr 'elp-results) (elp-instrument-list '(org-agenda-next-line next-line line-move)) (setq org-agenda-files '(~/lib/org/work.org ~/lib/org/home.org)) (org-agenda-list) (elp-reset-all) --8---cut here---end---8--- Save it in a file called minimal.emacs and then say emacs -Q --load minimal.emacs You should get an agenda - press n a dozen times, and then C-c r to get the results. You can add more functions to the list above (the next few candidates are line-move-partial, line-move-visual, line-move-1). Assuming that you get consistent results implicating these, I suspect that the thing to do is to post your findings in an emacs forum or open an emacs bug report. I haven't gone back to check your original emails, but is there a particular version of emacs that exhibits this problem? Is there a version that does *not* exhibit it? When exactly did you start noticing this behavior (relative to emacs updates etc)? Thanks, Nick Continuing the exercice I found: (elp-instrument-list '(org-agenda-next-line next-line line-move)) results in org-agenda-next-line 12 0.016 0.001333 next-line 12 0.0 0.0 line-move 12 0.0 0.0 (elp-instrument-list '(org-agenda-next-line next-line line-move line-move-partial line-move-visual line-move-1)) results in org-agenda-next-line 12 0.015 0.00125 next-line 12 0.0 0.0 line-move 12 0.0 0.0 line-move-partial 12 0.0 0.0 line-move-1 12 0.0 0.0 changing to agenda month view and n-ing through all entries results in: org-agenda-next-line 93 0.218000 0.0023440860 next-line 93 0.016 0.0001720430 line-move 93 0.0 0.0 line-move-partial 93 0.0 0.0 line-move-1 93 0.0 0.0 further, after elp-instrument-package RET org RET (and doing lots of ns and ps) org-agenda-do-context-action 445 1.516999 0.0034089887 org-display-outline-path 428 1.46 0.0034345794 org-get-outline-path 428 1.127000 0.0026331775 org-up-heading-safe 1932 1.096000 0.0005672877 org-agenda-next
Re: [Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 01:30, schrieb Nick Dokos: Rainer Stengelerainer.steng...@online.de wrote: Am 27.11.2010 20:23, schrieb Nick Dokos: ... Can you do M-x elp-instrument-functionRET next-lineRET and get another profile? ok, I did, getting org-agenda-next-line 10 0.864912 0.0864912 org-unhighlight 14 0.000875 6.257...e-05 org-detach-overlay14 0.000622 4.449...e-05 org-agenda-do-context-action 10 0.000274 2.74e-05 org-get-at-bol10 9.400...e-05 9.400...e-06 org-agenda-post-command-hook 14 7.5e-05 5.357...e-06 for 10 next-lines, all in the agenda block of Monday 29 November 2010 W48 which means there is no date crossing. What can I do to detail org-agenda-next-line? Apparently, you didn't read my mail carefully enough: see above. Nick Nick, sorry if I misunderstand, I tried again and get this: which probably is not what we expect to see? What I do is: being in the agenda I enter M-x elp-instrument-function RET next-line RET then enter n once and get: next-line 1 0.016 0.016 Thats really all I get. No more line than this one. Rainer ___ 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] Re: moving in the agenda view is slow
Am 28.11.2010 20:29, schrieb Nick Dokos: Eric S Fragaucec...@ucl.ac.uk wrote: I generate results for a number (looks like 99 times from the results) Looks like 129 times from the results below. of 'n' moves through my agenda, including going through a few days from today forwards. I get the following: , | org-agenda-later 4 2.319228 0.579807 | org-agenda-redo 4 2.319001 0.57975025 | org-agenda-list 5 1.907568 0.3815136 | org-agenda-get-day-entries 99 1.708234 0.017254 | org-agenda-to-appt 4 1.170569 0.29264225 | org-agenda 1 1.161838 1.161838 | org-let 4 1.145839 0.28645975 | org-agenda-get-scheduled 99 0.875935 0.0088478282 | org-prepare-agenda 5 0.866513 0.1733026000 | org-prepare-agenda-buffers 9 0.721267 0.080140 | org-agenda-next-line 129 0.645353 0.0050027441 ` Are you leaning on the n key? It's probably better to press it a given number of times instead. Or is it the case that the delay you and Rainer see *only* exhibits itself on auto-repeat? If the latter, then it might very well be the case that X is the culprit (or the emacs display engine or who knows what else). The org-agenda-next-line time per call is about 4x what I get on my system (where I have not seen the problem), so I assume that you will also probably get the 50x (or so) slowdown on your office system that Rainer got. Now, this is on my home system on which the response is actually perfectly fine! It is on my work system where the response is slow so I will repeat this on Tuesday if I get a chance. My home machine is actually slower than my office system *but* my office system is using a less effective X window system graphics driver so the current view that font-locking may have something to do with the problem could be consistent with this. Actually, I'm not sure it has anything to do with font-lock: I got some font-lock results in my initial profile (for unknown reasons - I hadn't added font-lock to the elp list afaik, but I may have done something stupid), and Manuel Hermenegildo chimed in with a problem that he has had for a while: there is a suspected font-lock connection there and Manuel posted a workaround for this problem[fn:1], but afaik this problem is not related to that one. The main thing to check in this problem case is whether the time that org-agenda-next-line takes is roughly the same as the time that next-line itself takes. There is somewhat indirect evidence that that is the case, but we need to make sure. I asked Rainer to add next-line to the elp list with M-x elp-instrument-functionRET next-lineRET, but I haven't heard any results yet. Thanks, Nick Footnotes: [fn:1] I don't remember who posted the workaround originally and haven't gone back to check. Nick, I tried with pressing n step by step 10 times, so no leaning on the n key: org-agenda-next-line 10 0.313999 0.0314 next-line 10 0.313999 0.0314 org-detach-overlay12 0.0 0.0 org-agenda-post-command-hook 12 0.0 0.0 org-agenda-do-context-action 10 0.0 0.0 org-get-at-bol10 0.0 0.0 org-unhighlight 12 0.0 0.0 font-lock-mode1 0.0 0.0 font-lock-default-function1 0.0 0.0 I see no change. Emacs is on Windows XP. Rainer ___ 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