emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Michael Gilbert <mcg@gilbert.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Re: orgmode opening source file from agenda when marking as done
Date: Mon, 17 Aug 2009 18:36:46 -0400	[thread overview]
Message-ID: <12537.1250548606@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Michael Gilbert <mcg@gilbert.org> of "Mon, 17 Aug 2009 13:30:48 PDT." <AAD4A9B6-D607-4FB7-8CC3-8010DB5904D5@gilbert.org>

Michael Gilbert <mcg@gilbert.org> wrote:

> On Aug 17,2009, at 1:16 PM, Samuel Wales wrote:
> 
> > org-after-todo-state-change-hook is a variable defined in `org.el'.
> 
> Thank you, John for the detailed explanation. Thank you, Samuel, for  
> this help.
> 
> The value, alas, is nil.
> 
> Other ideas?
> 

So this is a persistent state of affairs? You restart emacs from scratch
and it still does it? If that's the case, then one of your
initialization files must have been modified - check modification dates,
compare against backups - by hook or crook, find what changed.

If that still does not produce results, you can bisect your way to the
place where the problem appears: start emacs with the -q switch and load
.emacs piecemeal: open the .emacs file in a buffer and evaluate it one
s-expr at a time by placing the cursor after the closing paren of the
s-expr and using C-x C-e (that is bound to eval-last-sexp).  Or if you
prefer bigger bites, mark a region and use M-x eval-region on it. Try
the agenda commands that give you trouble after every evaluation.  At
the beginning, you are going to get errors, since org-mode will not even
have been loaded. At some point, the agenda command is going to succeed
and either behave properly or misbehave - but then you know which part
of the initialization file is responsible and you can concentrate your
efforts on that.

You may also find that the problem arises when your .emacs loads another
initialization file, in which case you go through the same process on
that file. Eventually, you'll find the culprit.

HTH,
Nick

PS. It might be a good idea to post a more detailed description of
*exactly* what you are doing and what you see when the misbehavior
occurs. Although I read the thread completely, I'm still not quite sure
what exactly you are seeing - for example, could it be just the "note"
behavior of the org-log-done variable? (C-h v org-log-done <RET> for
details).  Taking a screenshot of emacs and posting that might help as
well.

  reply	other threads:[~2009-08-17 22:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17 13:29 orgmode opening source file from agenda when marking as done Michael Gilbert
2009-08-17 17:27 ` Matt Lundin
2009-08-17 18:47   ` Michael Gilbert
2009-08-17 19:31     ` Samuel Wales
2009-08-17 19:56       ` Michael Gilbert
2009-08-17 20:16         ` Samuel Wales
2009-08-17 20:30           ` Michael Gilbert
2009-08-17 22:36             ` Nick Dokos [this message]
2009-08-17 20:18         ` John Rakestraw

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=12537.1250548606@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mcg@gilbert.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).