From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-add-note not working with winner-mode
Date: Thu, 14 Apr 2011 14:27:00 -0700 [thread overview]
Message-ID: <20110414142700.79956bfa@kuru.homelinux.net> (raw)
In-Reply-To: <BANLkTikvUaNT1KRRZZS_aymv5ehPxifoqA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]
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 <samologist@gmail.com> 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.
>
From 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,
--
Suvayu
Open source is the future. It sets us free.
[-- Attachment #2: test.org --]
[-- Type: text/plain, Size: 646 bytes --]
* DONE Debug TODO state change logging
CLOSED: [2011-04-14 Thu 14:12]
:LOGBOOK:
- State "CONT" from "TODO" [2011-04-14 Thu 14:11]
:END:
* DONE Write minimal org setup
CLOSED: [2011-04-14 Thu 14:11]
:LOGBOOK:
- State "DONE" from "TODO" [2011-04-14 Thu 14:11] \\
this is a note
:END:
* DONE Write minimal demo file
CLOSED: [2011-04-14 Thu 14:11]
:LOGBOOK:
:END:
* DONE Send email to list
CLOSED: [2011-04-14 Thu 14:12]
:LOGBOOK:
- State "DONE" from "CONT" [2011-04-14 Thu 14:12]
- State "CONT" from "TODO" [2011-04-14 Thu 14:12]
:END:
[-- Attachment #3: min.el --]
[-- Type: text/x-emacs-lisp, Size: 997 bytes --]
(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)
next prev parent reply other threads:[~2011-04-14 21:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-03 9:55 org-add-note not working with winner-mode Suvayu Ali
2011-04-03 12:41 ` Bernt Hansen
2011-04-03 16:51 ` Suvayu Ali
2011-04-03 21:12 ` Nick Dokos
2011-04-03 21:59 ` Suvayu Ali
2011-04-03 22:29 ` Nick Dokos
2011-04-04 15:57 ` brian powell
2011-04-04 16:05 ` Suvayu Ali
2011-04-04 17:00 ` Samuel Wales
2011-04-14 21:27 ` Suvayu Ali [this message]
2011-04-14 21:40 ` suvayu ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110414142700.79956bfa@kuru.homelinux.net \
--to=fatkasuvayu+linux@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).