From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: org-add-note not working with winner-mode Date: Thu, 14 Apr 2011 14:27:00 -0700 Message-ID: <20110414142700.79956bfa@kuru.homelinux.net> References: <20110403025527.695b870b@bhishma.homelinux.net> <87bp0no6bd.fsf@norang.ca> <20110403095147.68ee3693@bhishma.homelinux.net> <24281.1301865121@alphaville.dokosmarshall.org> <20110403145918.3ef81f68@bhishma.homelinux.net> <25343.1301869767@alphaville.dokosmarshall.org> <20110404090525.2e7c3362@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/g9NbJ9Hms1zDLip/ysdaCzt" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAU4E-0006nL-69 for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 17:27:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAU4D-00079e-6Z for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 17:27:10 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:45366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAU4D-00079Y-3I for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 17:27:09 -0400 Received: by qwa26 with SMTP id 26so1624790qwa.0 for ; Thu, 14 Apr 2011 14:27:07 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org mode mailing list --MP_/g9NbJ9Hms1zDLip/ysdaCzt Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Orgers, I finally managed to get to this. I think the problem with winner mode was a side-effect. The actual problem appears when you set to log changes to TODO states and you attempt to make the changes from the agenda. (Changing from the org buffer works fine) On Mon, 4 Apr 2011 10:00:50 -0700 Samuel Wales wrote: > IIRC org-add-note works in a way that is unexpected. I think it makes > its actions happen after the command itself. I got bitten by that for > something else; maybe it is related here. >=20 =46rom my observations it seems the above statement might be related to the issue. I see that setting to record notes or TODO state changes like this: "DONE(d@/!)", "DONE(d!)" or "DONE(d@)" triggers the problem. After changing the TODO state from the agenda, org doesn't prompt me (in case of @) or doesn't insert the time stamp (in case of !). However it does write an empty LOGBOOK drawer. When I visit the headline subsequently by hitting TAB from the agenda, I get prompted for the note or the timestamp gets recorded as the case maybe for the particular keyword. I have attached the minimal org setup I used to replicate this along with an example org file. If I change more than one TODO states from the agenda before visiting the org file, only the last TODO state change is logged. For all the preceding changes, I only get an empty drawer. As the last time, I don't see the problem when I am using Emacs 23.2. I hope I have been able to explain the problem clearly this time. Thanks, --=20 Suvayu Open source is the future. It sets us free. --MP_/g9NbJ9Hms1zDLip/ysdaCzt Content-Type: text/plain Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=test.org DQoqIERPTkUgRGVidWcgVE9ETyBzdGF0ZSBjaGFuZ2UgbG9nZ2luZw0KICBDTE9TRUQ6IFsyMDEx LTA0LTE0IFRodSAxNDoxMl0NCiAgOkxPR0JPT0s6DQogIC0gU3RhdGUgIkNPTlQiICAgICAgIGZy b20gIlRPRE8iICAgICAgIFsyMDExLTA0LTE0IFRodSAxNDoxMV0NCiAgOkVORDoNCg0KKiBET05F IFdyaXRlIG1pbmltYWwgb3JnIHNldHVwDQogIENMT1NFRDogWzIwMTEtMDQtMTQgVGh1IDE0OjEx XQ0KICA6TE9HQk9PSzoNCiAgLSBTdGF0ZSAiRE9ORSIgICAgICAgZnJvbSAiVE9ETyIgICAgICAg WzIwMTEtMDQtMTQgVGh1IDE0OjExXSBcXA0KICAgIHRoaXMgaXMgYSBub3RlDQogIDpFTkQ6DQoN CiogRE9ORSBXcml0ZSBtaW5pbWFsIGRlbW8gZmlsZQ0KICBDTE9TRUQ6IFsyMDExLTA0LTE0IFRo dSAxNDoxMV0NCiAgOkxPR0JPT0s6DQogIDpFTkQ6DQoNCiogRE9ORSBTZW5kIGVtYWlsIHRvIGxp c3QNCiAgQ0xPU0VEOiBbMjAxMS0wNC0xNCBUaHUgMTQ6MTJdDQogIDpMT0dCT09LOg0KICAtIFN0 YXRlICJET05FIiAgICAgICBmcm9tICJDT05UIiAgICAgICBbMjAxMS0wNC0xNCBUaHUgMTQ6MTJd DQogIC0gU3RhdGUgIkNPTlQiICAgICAgIGZyb20gIlRPRE8iICAgICAgIFsyMDExLTA0LTE0IFRo dSAxNDoxMl0NCiAgOkVORDoNCg== --MP_/g9NbJ9Hms1zDLip/ysdaCzt Content-Type: text/x-emacs-lisp Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=min.el (setq debug-on-error t debug-on-signal nil debug-on-quit nil) (add-to-list 'load-path (expand-file-name "~/build/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/build/org-mode/contrib/lisp")) (require 'org-install) (require 'org-inlinetask) (setq org-agenda-files '("~/org") ;; log time for TODO state changes org-log-done 'time ;; log time on rescheduling org-log-reschedule 'time ;; log time on changing deadline org-log-redeadline 'time ;; To put notes inside LOGBOOK drawer org-log-into-drawer t ) (setq org-todo-keywords '((sequence "TODO(t)" "DLAY(l@/!)" "CONT(c!)" "|" "DONE(d@/!)" "CNCL(n@/!)") )) (setq org-todo-keyword-faces '(("CNCL" . (:background "snow3" :foreground "black" :weight bold)) )) (global-set-key (kbd "C-c a") 'org-agenda) (global-set-key (kbd "C-c l") 'org-store-link) (global-set-key (kbd "C-c C-l") 'org-insert-link-global) (global-set-key (kbd "C-c b") 'org-switchb) --MP_/g9NbJ9Hms1zDLip/ysdaCzt--