Re: [O] (org-agenda-to-appt) with sexp org-diary-class entry?
December, 05 at 8:39 Benjamin Slade wrote: None of my events which are scheduled with org-diary-class sexp entries seem to get pushed with (org-agenda-to-appt) (for triggering alarms etc.). Is this simply a limitation of sexp org-diary-class? Is there are workaround, or would it be better to simply schedule such events as (infinitely) repeating? Do your entries have a time in hour and minutes of the day? Ivan -- A bank is a place that will lend you money if you can prove that you don't need it. -- Bob Hope
Re: [O] random weekly event
July, 15 at 23:58 Thorsten Jolitz wrote: Ivan Kanis i...@kanis.fr writes: I need to have org agenda (and then appt) manage an event once a week. The catch is that is should happen at a random day and hour. My thinking is that populating programmatically a year entry is probably the sanest way to go about it. Has anyone else done it? This is not an arcane scientific solution, but should give a random timestamp for between tomorrow and the end of the current week. You could write a function (using run-with-timer) that runs this sunday at 00:00h and inserts a todo item with the returned timestamp into an agenda file: Hi Thorsten, Thanks it will get me there when I will write it. I turn off emacs at home and at work so the run-with-timer will not work. Take care, Ivan -- Hard drive sleeping. Let it wake up on it's own... -- BOFH excuse #43
[O] random weekly event
Hi, I need to have org agenda (and then appt) manage an event once a week. The catch is that is should happen at a random day and hour. My thinking is that populating programmatically a year entry is probably the sanest way to go about it. Has anyone else done it? Ivan -- Repeated reboots of the system failed to solve problem. -- BOFH excuse #20
[O] Capturing outgoing gnus e-mail
Hi, I would like to capture outgoing e-mail in my org file. I use the gcc mechanism in gnus with a nnml backend. I think I have read on the org mailing list that someone has implemented that feature. I did a search but could not find the article. I tried implementing it myself. I had a look at the function gnus-inews-do-gcc. It has the group and the article number. However org link expect the Message-ID header. How do I get it? Thanks, Ivan -- Software uses US measurements, but the OS is in metric... -- BOFH excuse #24
[O] Training on how to program Emacs
Hello, I will give a 3 days training in Nantes on how to extend Emacs with elisp. If there is interest I can talk also about org meta programming with org babel. The training date is from June, 30 to July, 2. I will speak in french (or English if everyone is comfortable with it). The maximum number of attendees will be six in order to have a convivial atmosphere and that no-one feels left out. I feel that talking about coding is more fun while showing how to solve concrete example. You are encouraged to bring material that you are trying to solve. My goal is to show you how to make Emacs do what you want it to do, while learning elisp programming. The training cost is 1,800 euros (tax included). If you are an employee in a french company you can use your OPCA to pay for it. The following is the link to the web page outlining the training in french : http://www.2i2l.fr/spip.php?article278 I have translated it in English : Presentation of the program: - open and use Emacs - understand Emacs Lisp - know where to find the documentation First steps: - master text editor basics (copy, paste, etc...) - understand the structure of Lisp: code and data are the same - understand variables: explanation of the difference between global an lexical - Understand the bases of Lisp: cdr, car and cons Program with Emacs Lisp: - master operation on number, strings and list - master associative list - master logical operator if and cond - master looping such as while and dolist - master functions - know how debug: backtrace and edebug If you are interested in attending, please contact 2i2l at +33 02 40 3702 06 or format...@2i2l.fr Take care, Ivan -- To live is so startling it leaves little time for anything else. -- Emily Dickinson
Re: [O] Emacs Barcamp
August, 20 at 11:22 Bastien wrote: So I suggest we coordinate with each other, set the date/location in Paris, then announce it publicly. OK, when? -- Interference between the keyboard and the chair. -- BOFH excuse #58
Re: [O] Emacs Barcamp
Le 16 Août à 10h08, joa...@verona.se a écrit : Ivan Kanis i...@kanis.fr writes: Le 14 Août à 16h38, joa...@verona.se a écrit : BTW with only 12 people it would be fun to do stuff like hands-on sessions and hacker sessions, WDYT? That's the spirit of a barcamp! Let's wait on Bastien's reply. BTW Me and Daimrod will attend http://www.gnu.org/ghm/2013/paris/ so at least two Emacs hackers will be there. We could have an additional Emacs event there for interested parties. It's too soon for me. I need to plan about three months ahead. -- Et souvent les choses qui m'ont semblé vraies lorsque j'ai commencé à les concevoir, m'ont paru fausses lorsque je les ai voulu mettre sur le papier. -- René Descartes J'écoute « La Rue Ketanou - Germaine ».
Re: [O] Emacs Barcamp
Le 13 Août à 21h03, joa...@verona.se a écrit : It was I that mentioned Stockholm. Our company has an office we could probably use. But I think places to be are probably easy to come by, so do what you feel is easiest! How many people can sit at your office meeting room? I would like to visit Stockholm. Take care, Ivan -- Plus ça change, plus c'est la même chose. -- Alphonse Karr
Re: [O] Emacs Barcamp
Le 13 Août à 20h59, Nic Ferrier a écrit : I probably wouldn't attend if it's a weekend thing though so this would have to be a last resort. Thanks for offering venues. It's a weekend thing. -- Un roman commence par un coup de dés. -- Roger Vailland
Re: [O] Emacs Barcamp
Le 14 Août à 15h39, joa...@verona.se a écrit : How many people can sit at your office meeting room? I would like to visit Stockholm. The office is limited to 150 people by fire regulations I think. But that would be crowded. I would like to be about 12. More is too much for me to handle. Theres a fridge and a kitchen. The company I work for can likely also provide snacks and some t-shirts :) Is Swedish beer any good ? :) -- La différence entre un bon et un mauvais architecte réside en ce que le mauvais succombe à toutes les tentations quand le bon leur tient tête. -- Ludwig Wittgenstein J'écoute « Stan Getz, Joao Gilberto - The Girl From Ipanema ».
Re: [O] Emacs Barcamp
Le 14 Août à 16h38, joa...@verona.se a écrit : BTW with only 12 people it would be fun to do stuff like hands-on sessions and hacker sessions, WDYT? That's the spirit of a barcamp! Let's wait on Bastien's reply. -- L'histoire est un roman qui a été ; le roman est de l'histoire qui aurait pu être. -- Edmond et Jules de Goncourt
[O] Emacs Barcamp
Hi, Following the success of the emacs conference, Bastien and I would like to arrange a barcamp. This is something informal involving about twelve persons. I envision this to be in Europe. It would be in French or English, I don't care. I am good at organizing stuff. I am a bad MC and bad speaker. I can show two people how to have fun programming lisp. Let's focus on the basic questions: Where? Someone mentioned Stockholm I think but I can't recall who. I know of two places in Paris When? Early December Who? Well, just respond. And what's next? -- La musique a sept lettres, l'écriture a vingt-cinq notes. -- Joseph Joubert
[O] customize category width in agenda
If I read the manual correctly the category is 10 characters wide. Is there a way to reduce it? -- New guy cross-connected phone lines with AC power bus. -- BOFH excuse #38
Re: [O] customize category width in agenda
June, 20 at 15:03 Carsten Dominik wrote: On Jun 20, 2013, at 9:30 AM, Ivan Kanis i...@kanis.fr wrote: If I read the manual correctly the category is 10 characters wide. Is there a way to reduce it? Yes, you can, take a look at the variable org-agenda-prefix-format HTH Perfect! -- Academic politics is the most vicious and bitter form of politics, because the stakes are so low. -- Wallace Sayre
Re: [O] [PATCH] fix appointment warn time
Le 14 Mai à 10h36, Bastien a écrit : I tried it again on a more recent emacs (bzr from two weeks ago). Same result. Are you sure you removed your patch? :D Mhh... yes, I'm sure. Can anyone else reproduce Ivan's problem? Are you using bzr emacs? -- D'autres civilisations que la nôtre ont pu, infiniment mieux que nous ne l'avons fait, résoudre les problèmes qui se posent à l'homme. -- Alfred Métraux
Re: [O] [PATCH] fix appointment warn time
Le 14 Mai à 13h49, Bastien a écrit : Can anyone else reproduce Ivan's problem? Are you using bzr emacs? Now I recall it happens on 24.1 and bzr. Let's hope someone else can reproduce. -- La différence entre un bon et un mauvais architecte réside en ce que le mauvais succombe à toutes les tentations quand le bon leur tient tête. -- Ludwig Wittgenstein
Re: [O] [PATCH] fix appointment warn time
Le 14 Mai à 16h08, Bastien a écrit : Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: Yes, I can. Both Emacs 24.3 with Org-mode version 7.9.4 (7.9.4-1-ga5435f-elpa) and Org-mode version 8.0.2 (release_8.0.2-71-g5a1400) exhibits the problem than Ivan reports. For me it is solved with Bastien patch, i.e. http://lists.gnu.org/archive/html/emacs-orgmode/2013-04/txt0omoVnE86i.txt I applied this patch, thanks for confirming. Thanks! FWIW I still cannot reproduce the bug... weird. Have you tried emacs -Q ? -- Les mots sont les fantômes des imaginations malades, au-dessus desquels il y a la vie qu'il faut vivre sans penser aux mots. -- Charles-Louis Philippe J'écoute « The Mamas the Papas - I Call Your Name ».
Re: [O] [PATCH] fix appointment warn time
April, 27 at 14:02 Bastien wrote: It works great and it looks less expensive. Thank you! Great -- thanks for testing this. Still, I need to really understand what real problem it fixes... is it because some of your functions needs to check the property or is it during regular use of Org? Sorry if I missed this in one of your previous message... and thanks in advance! I am doing regular use of Org. Put the attached foo.org in your home directory. Eval the progn. Pick agenda for the day. Go to the test entry and do M-x describe-text-properties Without your patch you should see that warntime is nil. ** TPIT with Jean-Philippe at San Francisco 2013-01-19 Fri 15:00 +1w :PROPERTIES: :APPT_WARNTIME: 5 :END: (progn (setq org-agenda-files '(~/foo.org)) (org-agenda))
Re: [O] [PATCH] fix appointment warn time
April, 28 at 10:59 Bastien wrote: Without your patch you should see that warntime is nil. Mhh... I don't see this. The call to (org-agenda) in your (progn...) will refresh the text-properties in foo.org and C-u C-x = show the property in both the agenda and foo.org. I clearly miss something here :/ I tried it again on a more recent emacs (bzr from two weeks ago). Same result. Are you sure you removed your patch? :D I have attached a screen shot. attachment: org-bug.png
Re: [O] [PATCH] fix appointment warn time
April, 26 at 19:01 Bastien wrote: The patch adds a function that goes at the beginning of the header to get the property. As a bonus it turns the string into a number. Please let me know if the patch is accepted or needs improvement. Can you try the attached patch instead? It works great and it looks less expensive. Thank you! -- Sand fleas eating the Internet cables. -- BOFH excuse #59
Re: [O] hard coded autoload file
April, 26 at 8:36 Bastien wrote: It sucks for me as I generate autoload with a different name. I made a workaround so it's fine. Why do you generate autoloads with a different name? I do my own packaging. I started before ELPA and el-get existed. I was dissatisfied with the Debian way. Now I am still doing it to keep third-party packages in sync with my three computers. I think it would be better engineered no to have this stuff repeated at the end of each file. We follow the Calc exemple here: .el files for which autoloads need to be in Emacs loaddefs.el don't have this local variable set, and files for which autoloads are put into org-loaddefs.el do have this variable. OK, I didn't know that Emacs has two autoload files. It makes sense now. I can imagine some ad hoc function putting the autoloads were they belong, but this would be ad hoc. I guess you'll have first to explain why the current setup is problematic. There is no need to waste anymore time on this. I have a workaround. -- The power of accurate observation is commonly called cynicism by those who have not got it. -- George Bernard Shaw
[O] [PATCH] fix appointment warn time
It seemed to be a boundary error. (point) was at the end of the timestamp which doesn't hold the org-appt-warntime property. foo.org illustrate what I have seen. Evaling the get-property sexp returns nil. The patch adds a function that goes at the beginning of the header to get the property. As a bonus it turns the string into a number. Please let me know if the patch is accepted or needs improvement. diff --git a/emacs/org/org-agenda.el b/emacs/org/org-agenda.el index 631c6d0..a826b26 100644 --- a/emacs/org/org-agenda.el +++ b/emacs/org/org-agenda.el @@ -5425,6 +5425,14 @@ the documentation of `org-diary'. (org-end-of-subtree 'invisible (nreverse ee))) +(defun org-agenda-get-warntime () + Return warn time number when the property exists. + (save-excursion +(org-back-to-heading t) +(let ((warntime (get-text-property (point) 'org-appt-warntime))) + (when warntime +(string-to-number warntime) + (defun org-agenda-todo-custom-ignore-p (time n) Check whether timestamp is farther away than n number of days. This function is invoked if `org-agenda-todo-ignore-deadlines', @@ -5570,7 +5578,7 @@ This function is invoked if `org-agenda-todo-ignore-deadlines', clockp (and org-agenda-include-inactive-timestamps (or (string-match org-clock-string tmp) (string-match ]-+\\' tmp))) - warntime (get-text-property (point) 'org-appt-warntime) + warntime (org-agenda-get-warntime) donep (member todo-state org-done-keywords)) (if (or scheduledp deadlinep closedp clockp (and donep org-agenda-skip-timestamp-if-done)) @@ -5659,7 +5667,7 @@ This function is invoked if `org-agenda-todo-ignore-deadlines', (memq 'agenda org-agenda-use-tag-inheritance tags (org-get-tags-at nil (not inherited-tags)) todo-state (org-get-todo-state) - warntime (get-text-property (point) 'org-appt-warntime) +warntime (org-agenda-get-warntime) extra nil) (dolist (r (if (stringp result) @@ -6059,7 +6067,7 @@ specification like [h]h:mm. (not (= diff 0 (setq txt nil) (setq category (org-get-category) - warntime (get-text-property (point) 'org-appt-warntime) + warntime (org-agenda-get-warntime) category-pos (get-text-property (point) 'org-category-position)) (if (not (re-search-backward ^\\*+[ \t]+ nil t)) (throw :skip nil) ** TPIT with Jean-Philippe at San Francisco 2013-01-18 Fri 15:00 +1w :PROPERTIES: :APPT_WARNTIME: 5 :END: (get-text-property 71 'org-appt-warntime) (goto-char 71)
[O] hard coded autoload file
Hello, It seems each file has the name of the autoload file hard coded at the end. For example at the end org-element.el: ;; Local variables: ;; generated-autoload-file: org-loaddefs.el ;; End: It sucks for me as I generate autoload with a different name. I made a workaround so it's fine. I think it would be better engineered no to have this stuff repeated at the end of each file. It would be better that it's specified somewhere in the autoconf. If I work on this would the patch be accepted? -- Not properly grounded, please bury computer. -- BOFH excuse #52
Re: [O] APPT_WARNTIME not honored anymore in 8.0
April, 19 at 19:48 Bastien wrote: I should get a notice 17mn before 20:00 that I need to go to karaoke. Now it does the default 90mn. It's a regression. I can't reproduce this -- I assume you added the appointment with `org-agenda-to-appt', right? AFAIK yes. I might have time next week to investigate. -- It's the InterNIC's fault. -- BOFH excuse #3
[O] APPT_WARNTIME not honored anymore in 8.0
Hi, Suppose I have the following entry: ** Karaoke 2012-09-21 Fri 20:00 +1w :PROPERTIES: :APPT_WARNTIME: 17 :END: I should get a notice 17mn before 20:00 that I need to go to karaoke. Now it does the default 90mn. It's a regression. I might have time next week to look into it. -- Forsake not an old friend; for the new is not comparable to him; a new friend is as new wine; when it is old, thou shalt drink it with pleasure. -- Ecclesasticus ch.9, v.10
[O] org-macro need to provide org-macs
Just add (require 'org-macs) in org-macro.el. -- Elle n'était vêtue que de bonnes fortunes du jeu ou de la sottise de ses amants. -- Antoine Furetière
Re: [O] Looking for a way to scrape a webpage to a org-mode note (text+images)
April, 15 at 20:38 Itai kloog wrote: im looking for a way/wondering if anyone has a homebrew script he uses, to scrape a webpage into org. This is a long, long shot. I wrote some basic emacs-w3m scraping to login to Facebook. You will need to know elisp to make anything out of it. http://ivan.kanis.fr/auto-login-facebook-with-emacs-w3m.html It probably won't help you :) -- Let a fool hold his tongue and he will pass for a sage. -- Publilius Syrus
Re: [O] Org-mode as a replacement for Google Reader
Le 26 Mars à 13h49, Karl Voit a écrit : TL;DR: org-feed.el is not a doable replacement for Google Reader. What about alternatives? I use newsticker, it's part of emacs. -- Aide-toi, l'État ne t'aidera pas. -- Auguste Detœuf
Re: [O] Org Community
March, 10 at 13:01 Scott Randby wrote: However, I am concerned about the future of org. There is one individual who is poisoning the atmosphere by engaging in unfair and unfounded name calling that simply should not be included in messages to this list. I think we should ignore him. I have wasted 30mn of my life reading his posts. He might be manic and will probably be embarrassed by his posts when he cools down. Now this person wants to take some of their contributions out of org. Wishful thinking. Since his code made it to emacs he has signed FSF paperwork. IANAL but I don't think it belongs to him anymore. -- Quantum dynamics are affecting the transistors -- BOFH excuse #70 I am listening to ZZ Top - La Grange.
[O] Emacs conference 30/3/2013 in London
Hello, I am forwarding Alex e-mail from the emacs conference mailing list. I can confirm that the date for the conf is 30th March. It will be held at Forward, here: http://www.forward.co.uk/contact The venue can hold 100 people and there are various breakout areas, which I think will be ideal to hold sessions/tutorials/lightning talks. The venue can also stream video live, but details about that a bit later. One of the things I'd like to encourage, all the speakers is that the talks should not be a set format, just to fill a particular time slot. It should be any length where you can convey your message across. If you want to make it more interactive, be it audience participation, IRC participation or something else, feel free to include that. The point is to encourage knowledge sharing and better tooling with Emacs. I would like to add that we have the following resources to organize the conference: - Web site: http://emacsconf.org - Mailing list: http://lists.hugadev.com/listinfo.cgi/emacs-conf-hugadev.com - Twitter account @EmacsConf - Talks organization document: https://github.com/dotemacs/emacsconf-organisation/blob/master/talks.org Take care, Ivan -- It's not what we have in our life, but who we have in our life, that counts. -- J.M. Laurence
Re: [O] Emacs user conference
Hello, The next action is to decide when this will happen. I propose May, 15. Is that date agreeable with everyone? I think we should narrow the discussion to one mailing list. I think help-gnu-em...@gnu.org is the best. Do you agree with me? Bastien b...@altern.org wrote: I'd be glad to be part of it if it happens, I have some experience with organizing big events. That's great. I have never done it. -- Ivan Kanis http://ivan.kanis.fr 'Tis better to have loved and lost Than never have loved at all. -- Alfred, Lord Tennyson
Re: [O] Emacs user conference
Hi Joakim, Good we got a place! So it will be Stockholm. Roughly how many people can you hold comfortably in a meeting room? It's important to know so that we don't get too many people. When we did a Org Mode conference in Paris in 2012 we were very surprised that 12 people turned up. The next question is when? I think like you that a week-end is best. I can't think talking about emacs for more than two days. I am thinking between April and June 2013. I am only saying this because warm weather puts me in a good mood. It could be done sooner. I don't think we should do it in July or August because most people takes their holiday then... [1] Take care, Ivan Kanis [1] Well in France at least ;)
[O] Emacs user conference
Hello, A user emacs conference would consist of talks of about an hour. I think a week end should be sufficient. If we don't have enough talks we can split workshops in smaller group on a given topic. They are plenty of talk proposals listed on this web site. http://emacsconf.herokuapp.com/ I can give a talk on GTD with org mode. And since we are speaking of GTD, what need to happens next for this event to happen? -- Ivan Kanis http://ivan.kanis.fr Don't look back unless you intend to go that way. -- Marc Holm
[O] Short article on how I implement my GTD
Hi Org moders, I have written a short article: http://ivan.kanis.fr/gtd-and-org-mode.html If there's enough interest I will writ more. Take care, -- Ivan Kanis http://ivan.kanis.fr We must strive to reach that simplicity that lies beyond sophistication. -- John Gardner
[O] Org Camp Paris
Hi Bastien, The last time we did this was two years ago IIRC. How about we organize it again? Is Frederic Couchet on the org mailing list? -- Ivan Kanis http://ivan.kanis.fr Good breeding consists in concealing how much we think of ourselves and how little we think of the other person. -- Mark Twain
Re: [O] implement appt warntime
Hey Bastien, Bastien b...@altern.org wrote: Indeed. It should works fine now, please test and tell me. Works great, thank you! -- Ivan Kanis http://ivan.kanis.fr If it works, it's obsolete. -- Marshall McLuhan
Re: [O] implement appt warntime
Hi Bastien, Bastien b...@gnu.org a écrit Hi Ivan, Ivan Kanis ivan.ka...@googlemail.com writes: I could use properties instead. For example: ** an appointment with a reminder 5 minutes before 10:00 SCHEDULED: 2012-07-16 Mon 10:00 :PROPERTIES: :WARNTIME: 5 :END: I've implemented something along this idea, using APPT_WARNTIME instead to make sure this is only useful when adding the entry to the list of apptointment with `appt-add'. Please test and report any problem. I tried is this evening and unfortunately it's not working. I think the problem is in the following line in the function org-agenda-to-appt: (org-entry-get (point) APPT_WARNTIME)) I don't think (point) is in the right place after the parsing is done in org-agenda-get-day-entries. I guess that from the entries we can find the proper point in the correct buffer. Take care, -- Ivan Kanis http://ivan.kanis.fr Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan I am listening to The XX - Stars.
[O] implement appt warntime
Hi Bastien, I had a look at org-notify.el. It's over engineered for my need. If you recall I submitted a patch that added warntime on the header. It's not pretty but it works for me. I could use properties instead. For example: ** an appointment with a reminder 5 minutes before 10:00 SCHEDULED: 2012-07-16 Mon 10:00 :PROPERTIES: :WARNTIME: 5 :END: Would you integrate such a functionality? I might code it if I find the time. Take care, -- Ivan Kanis http://ivan.kanis.fr A great teacher is one who realizes that he himself is also a student and whose goal is not dictate the answers, but to stimulate his students creativity enough so that they go out and find the answers themselves. -- Herbie Hancock
Re: [O] agenda appt warn time (baby step part 2)
Hi Bastien, FYI I sent an e-mail to b...@altern.org and it bounced. Bastien b...@altern.org wrote: Inserting warntime in the headline looks hackish. Yeah it's an ugly hack. It would belong in the time stamp. Adding something there is beyond my skill. Maybe have a look at contrib/lisp/org-notify.el by Peter? Someone suggested that on the mailing list. It's on my todo list. -- Ivan Kanis http://ivan.kanis.fr Art washes from the soul the dust of everyday life. -- Pablo Picasso
Re: [O] [RFC] warn time for appointments
Peter Münster pmli...@free.fr wrote: On Fri, Mar 23 2012, Ivan Kanis wrote: I got no reply to my RFC and to my tentative patches. Does that mean everybody is happy with the default 12 minutes warning time? No, I'm not happy with 12 minutes. But there is https://github.com/p-m/org-notify where you can have arbitrary warning times (seconds, weeks, whatever...). Does it fit your needs? Thanks for the link, I will try it out! In the meantime I am using a hack that I posted on the list. -- Ivan Kanis http://ivan.kanis.fr Men of lofty genius when they are doing the least work are the most active. -- Leonardo da Vinci
Re: [O] [RFC] warn time for appointments
In bzr emacs there is a new variable called appt-warning-time-regexp. It contains a string for how many minutes we want to be reminded of an appointment... I got no reply to my RFC and to my tentative patches. Does that mean everybody is happy with the default 12 minutes warning time? -- Ivan Kanis http://kanis.fr We make a living by what we get, we make a life by what we give. -- Winston Churchill I am listening to Supersystem - The Love Story.
[O] agenda appt warn time (baby step part 2)
Hi, The previous patch I sent was completely buggy. This one works but doesn't fulfill my RFC. I think the warn time should be somewhere within the time stamp... diff --git a/emacs/org/org-agenda.el b/emacs/org/org-agenda.el index 780794e..2a8e926 100644 --- a/emacs/org/org-agenda.el +++ b/emacs/org/org-agenda.el @@ -8490,6 +8490,7 @@ By default `org-agenda-to-appt' will use :deadline, :scheduled and :timestamp entries. See the docstring of `org-diary' for details and examples. (interactive P) + (require 'appt) (if refresh (setq appt-time-msg-list nil)) (if (eq filter t) (setq filter (read-from-minibuffer Regexp filter: ))) @@ -8518,6 +8519,12 @@ details and examples. (let* ((evt (org-trim (or (get-text-property 1 'txt x) ))) (cat (get-text-property 1 'org-category x)) (tod (get-text-property 1 'time-of-day x)) + (warn-match (string-match appt-warning-time-regexp evt)) + (warntime + (when warn-match + (prog1 + (string-to-number (match-string 1 evt)) + (setq evt (substring evt 0 warn-match) (ok (or (null filter) (and (stringp filter) (string-match filter evt)) (and (functionp filter) (funcall filter x)) @@ -8536,7 +8543,9 @@ details and examples. \\([0-9]\\{1,2\\}\\)\\([0-9]\\{2\\}\\)\\' tod) (concat (match-string 1 tod) : (match-string 2 tod - (appt-add tod evt) + (if warntime + (appt-add tod evt warntime) + (appt-add tod evt)) (setq cnt (1+ cnt) entries) (org-release-buffers org-agenda-new-buffers) (if (eq cnt 0)
[O] patch for warning time (first baby sted)
Hi, This patch implements warn time for org appt. It only works on emacs bzr (the variable appt-warning-time-regexp appears in it). You need to add the warntime in the text of the entry, like so : * doctor warntime 10 2012-02-19 10:00 or * doctor warntime 10 2012-02-19 10:00 The patch is not fit to be included in org. I am submitting it in case it interests others to have the functionality. diff --git a/emacs/org/org-agenda.el b/emacs/org/org-agenda.el index 780794e..78194b1 100644 --- a/emacs/org/org-agenda.el +++ b/emacs/org/org-agenda.el @@ -8518,6 +8518,11 @@ details and examples. (let* ((evt (org-trim (or (get-text-property 1 'txt x) ))) (cat (get-text-property 1 'org-category x)) (tod (get-text-property 1 'time-of-day x)) + (warn-match (string-match appt-warning-time-regexp evt)) + (warntime + (when warn-match + (string-to-number (match-string 1 evt)) + (setq evt (substring literal 0 warn-match (ok (or (null filter) (and (stringp filter) (string-match filter evt)) (and (functionp filter) (funcall filter x)) @@ -8536,7 +8541,9 @@ details and examples. \\([0-9]\\{1,2\\}\\)\\([0-9]\\{2\\}\\)\\' tod) (concat (match-string 1 tod) : (match-string 2 tod - (appt-add tod evt) + (if warntime + (appt-add tod evt warntime) + (appt-add tod evt)) (setq cnt (1+ cnt) entries) (org-release-buffers org-agenda-new-buffers) (if (eq cnt 0)
[O] [RFC] warn time for appointments
Hi Bastien, In bzr emacs there is a new variable called appt-warning-time-regexp. It contains a string for how many minutes we want to be reminded of an appointment. For example, to be warned 30 minutes in advance of an appointment you would put the following in the diary file: 2011/06/01 12:00 Do something ## warntime 30 I would very much like this feature in org. How about we use the same regexp? We could use this when we call org-agenda-to-appt. A typical entry would look like this: * Do something 2012-02-04 Sat warntime 30 What do you think of the specifications? If it's OK with you I will find the time to do it. Take care, -- Ivan Kanis http://kanis.fr Nothing in life is to be feared. It is only to be understood. -- Marie Curie
Re: [O] [PATCH] integration with bbdb 3.0
Carsten Dominik carsten.domi...@gmail.com wrote: On 28.12.2011, at 20:06, Ivan Kanis wrote: Hi Bastien, The following patch fixes linking bbdb 3.0 records. Let me know if the patch needs improvement. Have you signed FSF papers? Hi Carsten, Yes I have. -- Ivan Kanis http://kanis.fr I shall never make a new friend in my life, though perhaps a few after I die. -- Oscar Wilde
[O] [PATCH] integration with bbdb 3.0
Hi Bastien, The following patch fixes linking bbdb 3.0 records. Let me know if the patch needs improvement. Take care, Ivan Kanis diff --git a/emacs/org/org-bbdb.el b/emacs/org/org-bbdb.el index 61f8258..ddb7e4a 100644 --- a/emacs/org/org-bbdb.el +++ b/emacs/org/org-bbdb.el @@ -118,6 +118,9 @@ (defvar date) ;; dynamically scoped from Org +;; Support for version 2.35 +(defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal)) + ;; Customization (defgroup org-bbdb-anniversaries nil @@ -195,8 +198,11 @@ date year). Store a link to a BBDB database entry. (when (eq major-mode 'bbdb-mode) ;; This is BBDB, we make this link! -(let* ((name (bbdb-record-name (bbdb-current-record))) - (company (bbdb-record-getprop (bbdb-current-record) 'company)) +(let* ((rec (bbdb-current-record)) + (name (bbdb-record-name rec)) + (company (if org-bbdb-old +(bbdb-record-getprop rec 'company) + (car (bbdb-record-get-field rec 'organization (link (org-make-link bbdb: name))) (org-store-link-props :type bbdb :name name :company company :link link :description name) @@ -218,24 +224,49 @@ italicized, in all other cases it is left unchanged. (require 'bbdb) (let ((inhibit-redisplay (not debug-on-error)) (bbdb-electric-p nil)) -(catch 'exit - ;; Exact match on name - (bbdb-name (concat \\` name \\') nil) - (if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) - ;; Exact match on name - (bbdb-company (concat \\` name \\') nil) - (if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) - ;; Partial match on name - (bbdb-name name nil) - (if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) - ;; Partial match on company - (bbdb-company name nil) - (if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) - ;; General match including network address and notes - (bbdb name nil) - (when (= 0 (buffer-size (get-buffer *BBDB*))) - (delete-window (get-buffer-window *BBDB*)) - (error No matching BBDB record) +(if org-bbdb-old +(org-bbdb-open-old) + (org-bbdb-open-new + +(defun org-bbdb-open-old () + (catch 'exit +;; Exact match on name +(bbdb-name (concat \\` name \\') nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Exact match on name +(bbdb-company (concat \\` name \\') nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Partial match on name +(bbdb-name name nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Partial match on company +(bbdb-company name nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; General match including network address and notes +(bbdb name nil) +(when (= 0 (buffer-size (get-buffer *BBDB*))) + (delete-window (get-buffer-window *BBDB*)) + (error No matching BBDB record + +(defun org-bbdb-open-new () + (catch 'exit +;; Exact match on name +(bbdb-search-name (concat \\` name \\') nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Exact match on name +(bbdb-search-organization (concat \\` name \\') nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Partial match on name +(bbdb-search-name name nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; Partial match on company +(bbdb-search-organization name nil) +(if ( 0 (buffer-size (get-buffer *BBDB*))) (throw 'exit nil)) +;; General match including network address and notes +(bbdb name nil) +(when (= 0 (buffer-size (get-buffer *BBDB*))) + (delete-window (get-buffer-window *BBDB*)) + (error No matching BBDB record (defun org-bbdb-anniv-extract-date (time-str) Convert -MM-DD to (month date year).
[O] bug#9695: allowed date range
After investigating further 2011-10-17 --2011-10-30 works but not 2011-10-17--2011-10-30. The regexp for a timestamp is defined in org-ts-regexp : \\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}[^\r\n]*?\\) Shouldn't the trailing space be optional? -- Ivan Kanis http://kanis.fr When you're looking at life In a strange new room Maybe drowning soon Is this the start of it all? -- Ian Curtis
[O] resolving conflicting appointments
Hello, At the last two org camps we talked about conflicting appointments. I was thinking we could display on top of the calendar an agenda view of the target date. That way we can quickly see potential conflicts before confirming an appointment. What do you think? Take care, -- Ivan Kanis http://kanis.fr Go confidently in the direction of your dreams. Live the life you have imagined. -- Henry David Thoreau
[Orgmode] stuck project and check boxes
Hello, I'd like to setup my project like this: * project ** TODO buy house - [ ] check house market - [ ] save money I would like to list stuck projects with the following definition: - projects that do not have check boxes - projects that have all their check boxes set Is it possible? Kind regards, -- Ivan Kanis http://kanis.fr Only the wise possess ideas; the greater part of mankind are possessed by them. -- Samuel Taylor Coleridge ___ 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-mode and appt
Bernt Hansen be...@norang.ca wrote: Is there any way to make appt report appointments scheduled at the same time? Is there way to fix #2? So I get warnings for Test many times, and then a single warning for Test 2 1 minute before the deadline and again at the deadline. I have no idea how to change this behaviour or if it is configurable at all. Last time I looked at the code appt does not support multiple warnings. It would be a good thing to add on top of my patch for variable warning time. I got in a situation where a 90 minutes warning clobbered a 5 minutes appointment. http://kanis.fr/appointment-implement-variable-warning-time.html -- Ivan Kanis http://kanis.fr When you're looking at life In a strange new room Maybe drowning soon Is this the start of it all? -- Ian Curtis ___ 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] appointment implement variable warning time
Hi, I use appointment with org. I find that a global time delay for each appointments is inconvenient. For example I need to be warned an hour before an appointment downtown and only 5 minutes for a meeting at work. I have hacked appt.el to keep track of a delay for each appointment. The function appt-add is compatible with the old appt. It should be applied after the feature freeze of emacs. You can download the new version from my website http://kanis.fr/blog-emacs.html Now I would like to hook this change this with org. I don't think it would be a good idea to extend the timestamp as it's already pretty complex. How could I add the number of minute in an entry in a way that's not obtrusive? Thanks for your ideas. -- Ivan Kanis http://kanis.fr Parting is all we know of heaven, And all we need of hell. -- Emily Dickinson ___ 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: Running debian + emacs on my Android G1
Friedrich Delgado Friedrichs frie...@nomaden.org wrote: I just upgraded (!) my G1 to CyanogenMod yesterday, because I want to try out emacs on it, too. I am wondering if you can you stills make call with the CyanogenMod? Take care, -- Ivan Kanis http://kanis.fr Nothing in life is to be feared. It is only to be understood. -- Marie Curie ___ 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: Opening links to Outlook items from Org mode (may be a FR)
Manish [EMAIL PROTECTED] writes: On Fri, Aug 22, 2008 at 1:14 PM, Ivan Kanis wrote: Manish writes: I have to use Office and envy folks that can link to their emails (Gnus, VM etc.) and contacts (bbdb) from Org mode. I have a macro that moves outlook to local e-mail that can be picked by gnus. If you are interested, I will post it. I would very much like to try it. Thank you, -- Manish Here is the script: Sub ivan(MyMail As MailItem) Set SafeItem = CreateObject(Redemption.SafeMailItem) SafeItem.Item = MyMail SafeItem.SaveAs (P:\ivan\tmp\bla.msg) Shell (p:/perl58/bin/wperl.EXE p:/ivan/tmp/msgconvert.pl --mbox p:/ivan/tmp/mbox P:/ivan/tmp/bla.msg) End Sub You will need to install msgconvert on windows and redemption for Outlook. You will also need to self certify your macro in outlook. How to process incoming messages in Microsoft Outlook: http://www.outlookcode.com/article.aspx%3Fid%3D62 Bypass security with Redemption: http://www.dimastr.com/redemption/home.htm] Signing your own macros with SelfCert.exe: http://www.howto-outlook.com/howto/selfcert.htm Locating SelfCert.exe By default you can find Selfcert.exe in the following location; C:\Program Files\Microsoft Office\Office version number If it is not there run Office setup and choose a custom installation and then advanced customization. Expand the Office Shared Features Section and select Digital Certificate for VBA Projects to run from your computer. For Office 2000 you can find this under the Office Tools section. Simply run SelfCert.exe. It will prompt you to name the certificate. I use my username because that is most convenient to me but you can also give it the name of your company or whatever you want. Create Digital Certificate with SelfCert.exe As explained in the dialog a selfcert is for personal use only Back in the VBA Editor (ALT+F11) where you created the macro choose Tools- Digital Signature. You’ll see that the current VBA project isn’t signed. Press the Choose… button and you’ll get a screen to select a certificate. Now you can choose the certificate you just created. Hope this helps, -- Ivan http://kanis.fr The West won the world not by the superiority of its ideas or values or religion ... but rather by its superiority in applying organized violence. Westerners often forget this fact; non-Westerners never do. -- Samuel Huntington ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Opening links to Outlook items from Org mode (may be a FR)
Manish [EMAIL PROTECTED] writes: I have to use Office and envy folks that can link to their emails (Gnus, VM etc.) and contacts (bbdb) from Org mode. I have a macro that moves outlook to local e-mail that can be picked by gnus. If you are interested, I will post it. -- Ivan http://kanis.fr The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man. -- George Bernard Shaw ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Strange bug, request for more info
Carsten Dominik [EMAIL PROTECTED] writes: The bug happens when being in the agenda and trying to goto or show the origin location of an agenda entry by pressing SPC or RET. John reports that sometimes (for him several times a day), Hi Carsten, I have seen the bug and never thought much of it, I just refresh the agenda view and it goes away. I'll pay attentions and see if I can reproduce it. Thanks for org! -- Ivan http://kanis.fr The best age is the age you are. -- Maggie Kuhn ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: my GTD setup
David O'Toole [EMAIL PROTECTED] writes: ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. Hi David, thanks for sharing your setup. Could you, please, fix mew so that it does not wrap your lisp? I find it unreadable. I decided to finally sit down and read up on GTD and implement simple setup for Org. Do you know there is a book called Getting Things Done ? I suggest you buy it ;) I have not finished it, but I don't think reading stuff on the 'net is a substitute to reading the original book. My two cents. Kind regards, -- Ivan http://kanis.fr At Group L, Stoffel oversees six first-rate programmers, a managerial challenge roughly comparable to herding cats. -- Anonymous , 1985-06-09 , The Washington Post ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: my GTD setup
William Henney [EMAIL PROTECTED] writes: On Dec 23, 2007 5:20 AM, Ivan Kanis [EMAIL PROTECTED] wrote: David O'Toole [EMAIL PROTECTED] writes: ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. Hi David, thanks for sharing your setup. Could you, please, fix mew so that it does not wrap your lisp? I find it unreadable. I think the problem must be with your mail/news reader. The lisp in David's message is not wrapped. At least, it looks fine when I do Show original in gmail. Argh the embarassment... I have fixed my news reader. Apologies for the noise. -- Ivan http://kanis.fr Only the wise possess ideas; the greater part of mankind are possessed by them. -- Samuel Taylor Coleridge ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Agenda view with tags filter
Bastien [EMAIL PROTECTED] writes: (org-add-agenda-custom-command '(h agenda ((org-agenda-skip-function '(org-agenda-skip-entry 'notregexp :home:)) (org-agenda-overriding-header Agenda with :home: tag: Thanks for the tip, you code did not quite work for me. I think org-agenda-skip-entry was missiong. This works but I think it's bit ugly: (setq org-agenda-custom-commands '((h agenda home ((org-agenda-skip-function (lambda() (org-agenda-skip-if nil '(notregexp :home:)) (o agenda office ((org-agenda-skip-function (lambda() (org-agenda-skip-if nil '(notregexp :office: I'll take any better ideas. -- Ivan http://kanis.fr When faced with a challenge, look for a way, not a way out. -- David Weatherford ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Agenda view with tags filter
Hello, I have been using org modes for a while now and it's great. I was wondering if it's possible to have an agenda view with a filter on tags. Fox example I would like to have a daily agenda with only the :home: tag item listed. I looked at the manual and the source code but it doesn't seem possible. Maybe I have missed something? Kind regards, -- Ivan Kanis http://kanis.fr Only the wise possess ideas; the greater part of mankind are possessed by them. -- Samuel Taylor Coleridge ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Agenda view with tags filter
Hi Bastien, Bastien [EMAIL PROTECTED] writes: I was wondering if it's possible to have an agenda view with a filter on tags. Fox example I would like to have a daily agenda with only the :home: tag item listed. I suspect you're using an old version of Org. What version of Org are you using? Org-mode version 5.13h , | M-x org-agenda m ` lets you match a TAGS query. Yes I am aware of this command, it lists all item matching tags. I would like an agenda view with items that matches a specific tag. For example a day view with only :office: items. -- Ivan http://kanis.fr I shall never make a new friend in my life, though perhaps a few after I die. -- Oscar Wilde ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode