[Orgmode] Re: Agenda repeats diary entries
Nathan Neff nathan.n...@gmail.com writes: On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin m...@imapmail.org wrote: Hi Nathan, Nathan Neff nathan.n...@gmail.com writes: I'm using org-agenda-diary-file. When I run agenda-mode with the attached configuration, I see the same diary entry under each day. Here's what my agenda shows. Notice that the entry from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda. Also, 2009 and 2009-12-December headers repeated under each day. Monday 14 December 2009 W51 Diary: 2009 Diary: 2009-12 December Diary: * 2009-12-08 Tuesday Diary: ** Something else. Diary: 2009-12-08 Tue Tuesday 15 December 2009 Diary: 2009 Diary: 2009-12 December Diary: * 2009-12-08 Tuesday Diary: ** Something else. Diary: 2009-12-08 Tue Here's the contents of my diary file journal.org * 2009 ** 2009-12 December *** 2009-12-08 Tuesday Something else. 2009-12-08 Tue I've tried to include the bare-minimum in my .emacs file, and I can provide it if necessary. I'm submitting this using M-x org-submit-bug-report, so hopefully, all necessary info is included. I can't reproduce this. Here's what my agenda looks like using the same source along with the settings you included in your email: Week-agenda (W50-W51): Tuesday 8 December 2009 journal: Something else. Wednesday 9 December 2009 Thursday 10 December 2009 Friday 11 December 2009 Saturday 12 December 2009 Sunday 13 December 2009 Monday 14 December 2009 W51 Best, Matt Thanks for the help, guys -- If I set the org-agenda-file to a filename that doesn't have the .org extension, then I get the following error: Wront type argument: stringp, nil I turned on debugging, and the error is occurring in org-fix-position-after-promote() Here's the stack trace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) looking-at(nil) org-fix-position-after-promote() org-do-demote() org-datetree-insert-line(2009 12) org-datetree-find-month-create(2009 12) org-datetree-find-date-create((12 29 2009)) org-agenda-add-entry-to-org-agenda-diary-file(day foo (12 29 2009)) org-agenda-diary-entry-in-org-file() org-agenda-diary-entry() call-interactively(org-agenda-diary-entry nil nil) Your org-agenda-files need to be files in org-mode (normally ending in .org). Your org-agenda-diary-file should also be an org file (your journal.org). BUT the diary-file is a totally different animal. Mine is set to ~/diary which is a zero-length empty file. I don't use the standard Emacs diary at all. I have org-agenda-include-diary set to nil and just use my diary.org file (your journal.org) and my regular org files for all of my appointment information. HTH, Bernt ___ 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] [PATCH] Add min/max/mean age operators to column view.
On Mon, Nov 2, 2009 at 12:29 AM, James TD Smith wrote: Hi Carsten and Mikael, On 2009-11-01 18:24:41(+0100), Carsten Dominik wrote: Hi Mikael, thanks for doing the testing! Yes, thanks a lot. James, do you want to integrate Mikaels changes? If yes, can you please do so and let me know when and from where I can pull? I've already applied the patch and pushed it to misc-new-features in my repo. Also, if one of you would like to go through the trouble to adapt the XEmacs version, that would be very nice. I'll have a go at it. I had forgotten there was another version of colview; if I had known I would made the changes there. I'll let you know when it's done. I cloned the repo at git://yog-sothoth.mohorovi.cc/org-mode.git but did not find `misc-new-features' branch and could not find the changes in the org-mode proper as well. The changes sound very interesting and I recently found a need for it. Hope you have not decided to abandon the feature. Warm regards and a very happy new year! -- Manish ___ 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] Date calculations
I'm using a normal org-file as my contact register so I easier can link tasks to a specific person. I have also added events as birthdays to each contact but is there some way I can make them show up in the agenda with some yearly calculations? For example a simple birthday reminder can look like this: * 2006-12-30 ++1y Happy Birthday! Is there some clever way I can add a date calculation to it when it shows up in the agenda? * 2006-12-30 ++1y Happy Birthday %d years! Regards, Fredrik ___ 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] Date calculations
Hmm reading a bit more in the manual I found that entries like this should work: %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old But I can't make in show in my agenda? The manual also samples this : %%(org-calendar-holiday) This works though? So any ideas on how to make the first one work? Regards, Fredrik On 30 dec 2009, at 13.47, Fredrik wrote: I'm using a normal org-file as my contact register so I easier can link tasks to a specific person. I have also added events as birthdays to each contact but is there some way I can make them show up in the agenda with some yearly calculations? For example a simple birthday reminder can look like this: * 2006-12-30 ++1y Happy Birthday! Is there some clever way I can add a date calculation to it when it shows up in the agenda? * 2006-12-30 ++1y Happy Birthday %d years! Regards, Fredrik ___ 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 ___ 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] Date calculations
Fredrik wrote: I'm using a normal org-file as my contact register so I easier can link tasks to a specific person. I have also added events as birthdays to each contact but is there some way I can make them show up in the agenda with some yearly calculations? For example a simple birthday reminder can look like this: * 2006-12-30 ++1y Happy Birthday! Is there some clever way I can add a date calculation to it when it shows up in the agenda? * 2006-12-30 ++1y Happy Birthday %d years! Regards, You can use diary sexps. Search the manual for Diary-style sexp entries. As an example I have: %%(diary-anniversary 3 1 2000) Ella is %d years old in one of my org files. Ian. ___ 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: Date calculations
Hey, Fredrik fred...@jumans.net writes: I'm using a normal org-file as my contact register so I easier can link tasks to a specific person. I have also added events as birthdays to each contact but is there some way I can make them show up in the agenda with some yearly calculations? For example a simple birthday reminder can look like this: * 2006-12-30 ++1y Happy Birthday! Is there some clever way I can add a date calculation to it when it shows up in the agenda? * 2006-12-30 ++1y Happy Birthday %d years! I used to do it the way it was done in the manual: (info (org)Weekly/daily agenda) under Calendar/Diary integration %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old I now use bbdb which also works good and has gnus integration which is important to me. Regards, Fredrik br, benny ___ 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] [PATCH] Add min/max/mean age operators to column view.
Hi Manish, On 2009-12-30 17:02:47(+0530), Manish wrote: I cloned the repo at git://yog-sothoth.mohorovi.cc/org-mode.git but did not find `misc-new-features' branch and could not find the changes in the org-mode proper as well. The changes sound very interesting and I recently found a need for it. Hope you have not decided to abandon the feature. No, it's finished and working; I deleted the branch once Carsten had merged it into the main org branch. The changes are definately in 6.33 and later, it's mentioned in the Changelog. What version of org-mode are you using? Warm regards and a very happy new year! And to you as well. James -- |-James TD Smith-email/ahktenz...@mohorovi.cc-| ___ 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: Date calculations
Hey, Benjamin Andresen be...@in-ulm.de writes: I used to do it the way it was done in the manual: (info (org)Weekly/daily agenda) under Calendar/Diary integration %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old I can't for the life of me get this to work. I tried emacs 22.1, 22.3, emacs 23.1 and the current CVS head. Additionally I tried a few combination of org 5.23a, 4.12a, the newest git HEAD and others in between. I also changed the value of `org-agenda-include-diary' and whether or not a ~/diary file existed. (Zero-length though). I remember that this worked. But not at the moment. Does anyone have this working? br, benny ___ 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: Date calculations
Benjamin Andresen be...@in-ulm.de writes: %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old I can't for the life of me get this to work. I tried emacs 22.1, 22.3, emacs 23.1 and the current CVS head. [...] Does anyone have this working? Works fine here. %%(diary-anniversary 10 1 1960) Geburtstag xyz: %d Jahre. Emacs 23.1.90.1 org 6.33f ___ 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: Date calculations
On Dec 30, 2009, at 3:21 PM, Benjamin Andresen wrote: Hey, Benjamin Andresen be...@in-ulm.de writes: I used to do it the way it was done in the manual: (info (org)Weekly/daily agenda) under Calendar/Diary integration %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old Hi Benjamin, currently these lines must be all the way at the left margin, they cannot be indented. - Carsten I can't for the life of me get this to work. I tried emacs 22.1, 22.3, emacs 23.1 and the current CVS head. Additionally I tried a few combination of org 5.23a, 4.12a, the newest git HEAD and others in between. I also changed the value of `org-agenda-include-diary' and whether or not a ~/diary file existed. (Zero-length though). I remember that this worked. But not at the moment. Does anyone have this working? br, benny ___ 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 - Carsten ___ 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: Date calculations
Hey Carsten, Carsten Dominik carsten.domi...@gmail.com writes: On Dec 30, 2009, at 3:21 PM, Benjamin Andresen wrote: Hey, Benjamin Andresen be...@in-ulm.de writes: I used to do it the way it was done in the manual: (info (org)Weekly/daily agenda) under Calendar/Diary integration %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old Hi Benjamin, currently these lines must be all the way at the left margin, they cannot be indented. I'm sorry for that line, it was ambiguous. I meant to indent it for clarity, not to represent how it's indented in my file. I have found the culprit though. This works: %%(diary-anniversary 12 30 1984) Arthur Dent is %d years ^ ^ ^ M D Y This doesn't: %%(diary-anniversary 30 12 1984) Arthur Dent is %d years ^ ^ ^ D M Y This isn't affected by any locale setting on my end. I tried en_GB, de_DE and en_US and it will always choose the US M/D/Y format in the org-mode file. That runs counter to the documentation example cited above, so does anyone else see that? - Carsten br, benny ___ 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: Date calculations
Benjamin Andresen be...@in-ulm.de writes: This works: %%(diary-anniversary 12 30 1984) Arthur Dent is %d years ^ ^ ^ M D Y This doesn't: %%(diary-anniversary 30 12 1984) Arthur Dent is %d years ^ ^ ^ D M Y Second one is what I have here and it works as expected. Probably related to these settings in my .emacs: (setq european-calendar-style t) ; obsolete! (setq calendar-date-style 'european) ;(info (emacs)Date Formats) Do you have these set, too? ___ 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: Date calculations
Memnon Anon gegendosenflei...@googlemail.com writes: Probably related to these settings in my .emacs: (setq european-calendar-style t) ; obsolete! (setq calendar-date-style 'european) ;(info (emacs)Date Formats) Do you have these set, too? Thanks! If I set it to european, it works. Should the documentation be changed to the american default? (If it is a default and not based on the $LANG when emacs is being built.) br, benny ___ 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] Speeding up agenda display
My agenda views take a couple seconds to build, and I'd like them to be faster. I'm posting a portion of configuration and some profiling results here in case anyone can see any opportunities for optimization. Some background: I don't use the diary at all -- this agenda view exists only to show me tasks that are due soon (and in this case, not tagged with @yard or @home). Thanks, ajk (setq org-agenda-custom-commands '((o Due at Office agenda ((org-agenda-skip-function '(or (org-agenda-skip-entry-if '(notdeadline)) (ajk/org-agenda-skip-if-not-due-soon) (ajk/org-agenda-skip-if-tagged-for-home))) (defun ajk/org-skip-position () (or (save-excursion (outline-next-heading) (point)) (point-max))) (defun ajk/org-agenda-skip-if-not-due-soon () (unless (ajk/org-agenda-skip-if-due-soon) (ajk/org-skip-position))) (defun ajk/org-agenda-skip-if-tagged-for-home () (org-back-to-heading t) (let ((tags (org-get-tags))) (if (or (member @home tags) (member @yard tags)) (ajk/org-skip-position (defun ajk/org-agenda-skip-if-action () (if (org-get-todo-state) (ajk/org-skip-position))) org-agenda1 2.017599 2.017599 org-let 1 1.33683 1.33683 org-agenda-list 1 1.336819 1.336819 org-agenda-get-day-entries1 1.30812 1.30812 org-entry-get 422 0.924314 0.0021903175 org-entry-properties 416 0.920302 0.0022122644 org-get-tags-at 418 0.689975 0.0016506602 org-agenda-get-restriction-and-command1 0.680728 0.680728 org-agenda-get-scheduled 1 0.663837 0.663837 org-up-heading-safe 1055 0.654734 0.0006206018 org-agenda-get-deadlines 1 0.545852 0.545852 org-agenda-skip-entry-if 416 0.198253 0.0004765721 org-agenda-skip-if416 0.196961 0.0004734639 org-back-to-heading 2439 0.100562 4.123...e-05 org-agenda-get-timestamps 1 0.094435 0.094435 org-prepare-agenda1 0.02532 0.02532 org-prepare-agenda-buffers1 0.024896 0.024896 org-refresh-category-properties 1 0.012516 0.012516 org-outline-level 1696 0.011961 7.052...e-06 org-deadline-close178 0.008567 4.812...e-05 org-agenda-skip 416 0.007149 1.718...e-05 org-get-tags-string 424 0.005429 1.280...e-05 org-days-to-time 178 0.004836 2.717...e-05 org-at-date-range-p 101 0.004414 4.371...e-05 org-time-string-to-time 178 0.002363 1.328...e-05 org-get-todo-state116 0.002161 1.863...e-05 org-agenda-get-blocks 1 0.002077 0.002077 org-entry-is-done-p 113 0.001964 1.738...e-05 org-finalize-agenda 1 0.001947 0.001947 org-agenda-dim-blocked-tasks 1 0.001868 0.001868 org-agenda-get-sexps 1 0.001698 0.001698 org-split-string 633 0.001638 2.587...e-06 org-get-property-block6 0.001411 0.0002351666 org-on-heading-p 424 0.001399 3.301...e-06 org-parse-time-string 183 0.001352 7.393...e-06 org-block-todo-from-children-or-siblings-or-parent2 0.001044 0.000522 org-format-agenda-item2 0.000966 0.000483 org-fit-window-to-buffer 1
Re: [Orgmode] Speeding up agenda display
On Dec 30, 2009, at 14:20 , Carsten Dominik wrote: could you please also instrument your ajk/ functions for profiling and repeat the experiment? And show the code of all these functions, not only some (I am missing for example `ajk/org-agenda-skip-if-due- soon' Yes to both -- see below for corrected listings of code and profiling results. Also: - Are you using property inheritance? - Are you relying on tag inheritance to check for @yard and @home? No to both. - Are you using the latest version of Org-mode? I'm using 6.33. Btw, the single org file from which the agenda is generated contains 323 headlines in the TODO state and 12,227 lines total. Thanks, ajk (setq org-agenda-custom-commands '((o Due at Office agenda ((org-agenda-skip-function '(or (org-agenda-skip-entry-if '(notdeadline)) (ajk/org-agenda-skip-if-not-due-soon) (ajk/org-agenda-skip-if-tagged-for-home))) (defun ajk/org-skip-position () (or (save-excursion (outline-next-heading) (point)) (point-max))) (defun ajk/org-agenda-skip-if-due-soon () (and (let ((time (org-entry-get nil DEADLINE))) ; not due or not due soon (and time (org-deadline-close time))) (ajk/org-skip-position))) (defun ajk/org-agenda-skip-if-not-due-soon () (unless (ajk/org-agenda-skip-if-due-soon) (ajk/org-skip-position))) (defun ajk/org-agenda-skip-if-tagged-for-home () (org-back-to-heading t) (let ((tags (org-get-tags))) (if (or (member @home tags) (member @yard tags)) (ajk/org-skip-position org-agenda1 1.997575 1.997575 org-let 1 1.305759 1.305759 org-agenda-list 1 1.305747 1.305747 org-agenda-get-day-entries1 1.279215 1.279215 ajk/org-agenda-skip-if-not-due-soon 416 1.034962 0.0024878918 ajk/org-agenda-skip-if-due-soon 416 0.975166 0.0023441514 org-entry-get 422 0.965561 0.0022880616 org-entry-properties 416 0.961836 0.0023121081 org-get-tags-at 418 0.698291 0.0016705526 org-agenda-get-restriction-and-command1 0.691773 0.691773 org-up-heading-safe 1055 0.664914 0.0006302511 org-agenda-get-scheduled 1 0.634158 0.634158 org-agenda-get-deadlines 1 0.506933 0.506933 org-agenda-skip-entry-if 416 0.138524 0.0003329927 org-agenda-skip-if416 0.137230 0.0003298798 org-agenda-get-timestamps 1 0.134207 0.134207 org-back-to-heading 2439 0.088765 3.639...e-05 ajk/org-skip-position 419 0.058316 0.0001391813 org-prepare-agenda1 0.023446 0.023446 org-prepare-agenda-buffers1 0.022988 0.022988 org-refresh-category-properties 1 0.012406 0.012406 org-outline-level 1696 0.011875 7.001...e-06 org-at-date-range-p 101 0.009216 9.124...e-05 org-agenda-skip 416 0.008605 2.068...e-05 org-deadline-close178 0.008460 4.753...e-05 org-get-tags-string 424 0.005351 1.262...e-05 org-days-to-time 178 0.004724 2.653...e-05 org-time-string-to-time 178 0.002268 1.274...e-05 org-get-todo-state116 0.002221 1.915...e-05 org-agenda-get-blocks 1 0.002071 0.002071 org-entry-is-done-p 113 0.001985 1.756...e-05 org-agenda-get-sexps 1 0.001713 0.001713 org-finalize-agenda 1 0.001653 0.001653 org-split-string
[Orgmode] Re: Date calculations
Hey Carsten, Carsten Dominik carsten.domi...@gmail.com writes: Hi Benjamin, can you point out exactly where in the documentation this is located? Sure. org-mode/doc/org.text Line: 6643 I wouldn't know how to phrase it, but maybe a link to (info (emacs)Special Diary Entries) where this behaviour is explained is the best. The entry looks like this: %%(diary-anniversary 10 31 1948) Arthur's birthday This entry applies to October 31 in any year after 1948; `10 31 1948' specifies the date. (If you are using the European or ISO calendar style, the input order of month, day and year is different.) Thanks. - Carsten P.S. Emacs calendar is great, but changing function call arguments depending on calendar style was a truly braindead decision. I completely agree. Or go all the way with localization and make the `and' macro short-circuit right to left when you run the elisp in Israel. ;-) br, benny ___ 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: beamer columns mixed up [6.33trans]
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. I am trying to create a beamer presentation using the example at the bottom of the page http://orgmode.org/worg/org-tutorials/org-beamer.php This example creates column environments *outside* the frame environment and closes them *inside*. Surely, that can't be right. \section{This is the first structural section} \label{sec-1} \begin{columns}[t] \begin{column}{0.5\textwidth} \begin{frame} \frametitle{Thanks to Eric Fraga} \label{sec-1.2} for the first viable beamer setup in Org \end{column} \end{columns} \end{frame} Best regards, Ruud ___ 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: Date calculations
Carsten Dominik carsten.domi...@gmail.com writes: can you point out exactly where in the documentation this is located? ,[ (info (org)Weekly/daily agenda) ] | * Birthdays and similar stuff | #+CATEGORY: Holiday | %%(org-calendar-holiday) ; special function for holiday names | #+CATEGORY: Ann | %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old | %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old ` These examples suggest D-M-Y, which only seems to work with the calendar set to european style. Maybe, it would be better to change the example to M-D-Y (I think it is more common?) and add a footnote that provides the info that the date format is depending on calendar-date-style? The next paragraph (Anniversaries from BBDB) on the other hand states a fixed order. Basically, you need to press `C-o anniversary RET' with the cursor in a BBDB record and then add the date in the format `-MM-DD', [...] 1973-06-22 1955-08-02 wedding 2008-04-14 %s released version 6.01 of org-mode, %d years ago So, if I understand it correctly, org-bbdb settled on iso format, diary-anniversary uses either american or european style depending on calendar-date-style. Thats somehow inconsistent, isn't it? ___ 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: Agenda repeats diary entries
On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen be...@norang.ca wrote: Nathan Neff nathan.n...@gmail.com writes: On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin m...@imapmail.org wrote: Hi Nathan, Nathan Neff nathan.n...@gmail.com writes: I'm using org-agenda-diary-file. When I run agenda-mode with the attached configuration, I see the same diary entry under each day. Here's what my agenda shows. Notice that the entry from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda. Also, 2009 and 2009-12-December headers repeated under each day. Monday 14 December 2009 W51 Diary: 2009 Diary: 2009-12 December Diary: * 2009-12-08 Tuesday Diary: ** Something else. Diary: 2009-12-08 Tue Tuesday15 December 2009 Diary: 2009 Diary: 2009-12 December Diary: * 2009-12-08 Tuesday Diary: ** Something else. Diary: 2009-12-08 Tue Here's the contents of my diary file journal.org * 2009 ** 2009-12 December *** 2009-12-08 Tuesday Something else. 2009-12-08 Tue I've tried to include the bare-minimum in my .emacs file, and I can provide it if necessary. I'm submitting this using M-x org-submit-bug-report, so hopefully, all necessary info is included. I can't reproduce this. Here's what my agenda looks like using the same source along with the settings you included in your email: Week-agenda (W50-W51): Tuesday 8 December 2009 journal:Something else. Wednesday 9 December 2009 Thursday 10 December 2009 Friday 11 December 2009 Saturday 12 December 2009 Sunday 13 December 2009 Monday 14 December 2009 W51 Best, Matt Thanks for the help, guys -- If I set the org-agenda-file to a filename that doesn't have the .org extension, then I get the following error: Wront type argument: stringp, nil I turned on debugging, and the error is occurring in org-fix-position-after-promote() Here's the stack trace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) looking-at(nil) org-fix-position-after-promote() org-do-demote() org-datetree-insert-line(2009 12) org-datetree-find-month-create(2009 12) org-datetree-find-date-create((12 29 2009)) org-agenda-add-entry-to-org-agenda-diary-file(day foo (12 29 2009)) org-agenda-diary-entry-in-org-file() org-agenda-diary-entry() call-interactively(org-agenda-diary-entry nil nil) Your org-agenda-files need to be files in org-mode (normally ending in .org). Your org-agenda-diary-file should also be an org file (your journal.org). BUT the diary-file is a totally different animal. Mine is set to ~/diary which is a zero-length empty file. I don't use the standard Emacs diary at all. I have org-agenda-include-diary set to nil and just use my diary.org file (your journal.org) and my regular org files for all of my appointment information. HTH, Bernt Thank you very much. I finally got it to work, using only this setting: (setq org-agenda-diary-file ~/Documents/personal/journal.org) Whenever I press i in agenda, org-mode puts date/timestamped entries in the correct file, using org mode formatting, which is what I want. Since I don't use the diary-file ~/Documents/journal file, it seems odd to have to define it, but oh well :-) Thank you very much -- I will use the org-agenda-diary-file much more now. --Nate ___ 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: Agenda repeats diary entries
Nathan Neff nathan.n...@gmail.com writes: On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen be...@norang.ca wrote: Your org-agenda-files need to be files in org-mode (normally ending in .org). Your org-agenda-diary-file should also be an org file (your journal.org). BUT the diary-file is a totally different animal. Mine is set to ~/diary which is a zero-length empty file. I don't use the standard Emacs diary at all. I have org-agenda-include-diary set to nil and just use my diary.org file (your journal.org) and my regular org files for all of my appointment information. HTH, Bernt Thank you very much. I finally got it to work, using only this setting: (setq org-agenda-diary-file ~/Documents/personal/journal.org) Whenever I press i in agenda, org-mode puts date/timestamped entries in the correct file, using org mode formatting, which is what I want. Since I don't use the diary-file ~/Documents/journal file, it seems odd to have to define it, but oh well :-) Thank you very much -- I will use the org-agenda-diary-file much more now. You can probably do (setq diary-file nil) I just did that. This variable seems to want to be a filename - and there's no way to customize it to nil on my version of emacs... but I never use it so it doesn't bother me and it can point to any non-existent or empty file. I used the diary eons ago and so I have a leftover empty ~/diary file in my setup. I have since moved to keeping my diary entries in the org-agenda-diary-file instead. I've just set diary-file to nil and nothing broke immediately so I'll just leave it that way until something bad happens :) I'm glad you got that issue fixed. Regards, Bernt ___ 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: Date calculations
On Dec 30, 2009, at 8:51 PM, Benjamin Andresen wrote: Hey Carsten, Carsten Dominik carsten.domi...@gmail.com writes: Hi Benjamin, can you point out exactly where in the documentation this is located? Sure. org-mode/doc/org.text Line: 6643 I wouldn't know how to phrase it, but maybe a link to (info (emacs)Special Diary Entries) where this behaviour is explained is the best. The entry looks like this: %%(diary-anniversary 10 31 1948) Arthur's birthday This entry applies to October 31 in any year after 1948; `10 31 1948' specifies the date. (If you are using the European or ISO calendar style, the input order of month, day and year is different.) Thanks, I have made a note there. Thanks. - Carsten P.S. Emacs calendar is great, but changing function call arguments depending on calendar style was a truly braindead decision. I completely agree. Or go all the way with localization and make the `and' macro short-circuit right to left when you run the elisp in Israel. ;-) yes. braindead - more braidead - most braindead ... :-) - Carsten ___ 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: Date calculations
Memnon Anon gegendosenflei...@googlemail.com writes: ,[ (info (org)Weekly/daily agenda) ] | * Birthdays and similar stuff | #+CATEGORY: Holiday | %%(org-calendar-holiday) ; special function for holiday names | #+CATEGORY: Ann | %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old | %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old ` These examples suggest D-M-Y, which only seems to work with the calendar set to european style. Maybe, it would be better to change the example to M-D-Y (I think it is more common?) and add a footnote that provides the info that the date format is depending on calendar-date-style? It might be even better to use calendar style ‘iso’ in that documentation, to be consistent with default Org usage. So, if I understand it correctly, org-bbdb settled on iso format, diary-anniversary uses either american or european style depending on calendar-date-style. Thats somehow inconsistent, isn't it? Yes, that inconsistency in the Diary behaviour has been noted. -- \ “My business is to teach my aspirations to conform themselves | `\ to fact, not to try and make facts harmonise with my | _o__) aspirations.“ —Thomas Henry Huxley, 1860-09-23 | Ben Finney ___ 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] [babel] new org-babel key bindings
Hi, I've added keybindings exposing some of the org-babel functions which up until now have had to be called by name. All of the relevant information is in the documentation for `org-babel-key-bindings' [1]. Currently all babel keybindings are placed behind the C-c M-b key sequence, so for example C-c M-b t runs org-babel-tangle and C-c M-b s runs org-babel-execute-subtree I'd be interested to hear how well these bindings and key choices go over. If anyone has suggestions for different bindings please let me know before the existing bindings sink too deep into muscle memory. Best -- Eric Footnotes: [1] , | org-babel-key-bindings's value is | ((t . org-babel-tangle) | (T . org-babel-tangle-file) | (e . org-babel-execute) | (s . org-babel-subtree) | (b . org-babel-execute-buffer) | (h . org-babel-sha1-hash) | (g . org-babel-goto-named-source-block) | (l . org-babel-lob-ingest)) | | | Documentation: | Org-babel keybindings. This list associates interactive | org-babel functions with keys. Each element of this list will | add an entry to the `org-mode-map' using the letter key which is | the `car' of the a-list placed behind the generic | `org-babel-key-prefix'. | | [back] ` ___ 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: Agenda repeats diary entries
Bernt Hansen be...@norang.ca writes: You can probably do (setq diary-file nil) I just did that. Don't do that. :) This variable seems to want to be a filename - and there's no way to customize it to nil on my version of emacs... but I never use it so it doesn't bother me and it can point to any non-existent or empty file. I used the diary eons ago and so I have a leftover empty ~/diary file in my setup. I have since moved to keeping my diary entries in the org-agenda-diary-file instead. I've just set diary-file to nil and nothing broke immediately so I'll just leave it that way until something bad happens :) I can't exit Emacs anymore if diary-file is set to nil so that's a really bad idea. I removed the customization and it's back to the default ~/diary value and all is well again. -Bernt ___ 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] Can I export TODO flags in table of contents?
I marked my notes and tasks with TODO flags and I also want to see these TODO flags in table of contents. So I can jump and explore to unfinished task quickly. By doing this, I can give myself a quickly summary of my tasks. Can I do it? Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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] Can I export TODO flags in table of contents?
Hi Water, On Dec 31, 2009, at 4:17 AM, Water Lin wrote: I marked my notes and tasks with TODO flags and I also want to see these TODO flags in table of contents. So I can jump and explore to unfinished task quickly. By doing this, I can give myself a quickly summary of my tasks. Can I do it? I guess you are talking about export? You can try (setq org-export-mark-todo-in-toc t) This will not show TODO keywords in the table of contents, but it will highlight headlines under which there are unfinished TODO entries. HTH - Carsten Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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 - Carsten ___ 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] Speeding up agenda display
Hi Andrew, thanks! The only thing I see now is this: 1. Get the latest development version. A week or two ago I made an optimization that should speed up (org-entry-get nil DEADLINE) quite a bit. Let's see if that does help enough. - Carsten On Dec 30, 2009, at 8:40 PM, Andrew J. Korty wrote: On Dec 30, 2009, at 14:20 , Carsten Dominik wrote: could you please also instrument your ajk/ functions for profiling and repeat the experiment? And show the code of all these functions, not only some (I am missing for example `ajk/org-agenda-skip-if-due- soon' Yes to both -- see below for corrected listings of code and profiling results. Also: - Are you using property inheritance? - Are you relying on tag inheritance to check for @yard and @home? No to both. - Are you using the latest version of Org-mode? I'm using 6.33. Btw, the single org file from which the agenda is generated contains 323 headlines in the TODO state and 12,227 lines total. Thanks, ajk (setq org-agenda-custom-commands '((o Due at Office agenda ((org-agenda-skip-function '(or (org-agenda-skip-entry-if '(notdeadline)) (ajk/org-agenda-skip-if-not-due-soon) (ajk/org-agenda-skip-if-tagged-for-home))) (defun ajk/org-skip-position () (or (save-excursion (outline-next-heading) (point)) (point-max))) (defun ajk/org-agenda-skip-if-due-soon () (and (let ((time (org-entry-get nil DEADLINE))) ; not due or not due soon (and time (org-deadline-close time))) (ajk/org-skip-position))) (defun ajk/org-agenda-skip-if-not-due-soon () (unless (ajk/org-agenda-skip-if-due-soon) (ajk/org-skip-position))) (defun ajk/org-agenda-skip-if-tagged-for-home () (org-back-to-heading t) (let ((tags (org-get-tags))) (if (or (member @home tags) (member @yard tags)) (ajk/org-skip-position org-agenda 1 1.997575 1.997575 org-let 1 1.305759 1.305759 org-agenda-list 1 1.305747 1.305747 org-agenda-get-day-entries 1 1.279215 1.279215 ajk/org-agenda-skip-if-not-due-soon 416 1.034962 0.0024878918 ajk/org-agenda-skip-if-due-soon 416 0.975166 0.0023441514 org-entry-get 422 0.965561 0.0022880616 org-entry-properties 416 0.961836 0.0023121081 org-get-tags-at 418 0.698291 0.0016705526 org-agenda-get-restriction-and-command 1 0.691773 0.691773 org-up-heading-safe 10550.664914 0.0006302511 org-agenda-get-scheduled 1 0.634158 0.634158 org-agenda-get-deadlines 1 0.506933 0.506933 org-agenda-skip-entry-if 416 0.138524 0.0003329927 org-agenda-skip-if 416 0.137230 0.0003298798 org-agenda-get-timestamps 1 0.134207 0.134207 org-back-to-heading 24390.088765 3.639...e-05 ajk/org-skip-position 419 0.058316 0.0001391813 org-prepare-agenda 1 0.023446 0.023446 org-prepare-agenda-buffers 1 0.022988 0.022988 org-refresh-category-properties 1 0.012406 0.012406 org-outline-level 16960.011875 7.001...e-06 org-at-date-range-p 101 0.009216 9.124...e-05 org-agenda-skip 416 0.008605 2.068...e-05 org-deadline-close 178 0.008460 4.753...e-05 org-get-tags-string 424 0.005351 1.262...e-05 org-days-to-time 178 0.004724 2.653...e-05 org-time-string-to-time 178 0.002268 1.274...e-05 org-get-todo-state 116 0.002221 1.915...e-05 org-agenda-get-blocks 1 0.002071 0.002071 org-entry-is-done-p
Re: [Orgmode] Bug: beamer columns mixed up [6.33trans]
Hi Ruud, can you please post the exact content of your Org-mode file? Also, are you using the latest Org version? - Carsten On Dec 30, 2009, at 9:37 PM, Ruud Brekelmans wrote: 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. I am trying to create a beamer presentation using the example at the bottom of the page http://orgmode.org/worg/org-tutorials/org-beamer.php This example creates column environments *outside* the frame environment and closes them *inside*. Surely, that can't be right. \section{This is the first structural section} \label{sec-1} \begin{columns}[t] \begin{column}{0.5\textwidth} \begin{frame} \frametitle{Thanks to Eric Fraga} \label{sec-1.2} for the first viable beamer setup in Org \end{column} \end{columns} \end{frame} Best regards, Ruud ___ 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 - Carsten ___ 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] HTML table export with col width XY
Hi Karl, I cannot reproduce this. Are you using XEmacs, maybe? - Carsten On Dec 30, 2009, at 8:57 AM, Karl Eichwalder wrote: I'm using org 6.33x. If you limit the col width with the special header notation (e.g., 35), org-export-as-html-to-buffer expands the = indicator literally. In org mode my table looks as follows: | 35| || | Rückfahrt | || |-+--+| | St. Bartholomä | ab 16:30 | Schiff | | Schönau (Königssee), ab Berchtesgad | ab 17:xx | Bus (z.t. SEV) | where the long field actually contains: # # Edit field and finish with C-c C-c # Schönau (Königssee), ab Berchtesgaden weiter als SEV M-x org-export-as-html-to-buffer RET == ... tbody trtdSt. Bartholomä/tdtdab 16:30/tdtdSchiff/td/tr trtdSchönau (Königssee), ab Berchtesgaden weiter als SEV/ tdtdab 17:xx/tdtdBus (z.t. SEV)/td/tr Thanks for this great software! -- Karl Eichwalder ___ 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mobile bug
Hi Mark, I cannot reproduce this problem. - Carsten On Dec 30, 2009, at 4:58 AM, Mark Scala wrote: Hi, I was exploring org-mobile.el just now, and I found a small problem. The function org-mobile-push throws an error unless there is at least one custom agenda command defined -- clearly not desirable. I suspect the problem is in org-agenda-custom-commands: (delq nil '()) returns nil for an empty list. After defining one custom agenda command, all works as expected. Best, Mark Scala ___ 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 - Carsten ___ 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