emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom <adatgyujto@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] Changing TODO states sometimes	modifies	the	schedulingof the next heading
Date: Mon, 4 Apr 2011 20:25:00 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110404T222130-385@post.gmane.org> (raw)
In-Reply-To: loom.20110403T191200-372@post.gmane.org

Tom <adatgyujto <at> gmail.com> writes:
> 
> Bottom line: the problem does not occur in the English locale,
> because there all day abbreviations are 3 chars long, so the
> above described simple way of restoring the cursor position
> always works. But this is not true for all locales, so org
> shouldn't rely on that.
> 
> 


I created a temporary fix for the problem with advice until it
is fixed in the code properly.


Here it is if someone needs it:


(defadvice org-todo (around my-org-todo activate)
  (save-restriction
    (narrow-to-region (save-excursion (org-back-to-heading t) (point))
                      (save-excursion (outline-next-heading) (point)))
    ad-do-it))

  reply	other threads:[~2011-04-04 20:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03  6:46 [BUG] Changing TODO states sometimes modifies the scheduling of the next heading Tom
2011-04-03  8:35 ` Tom
2011-04-03 13:37   ` Matt Lundin
2011-04-03 14:09     ` [BUG] Changing TODO states sometimes modifies the schedulingof " Tom
2011-04-03 16:42       ` Matt Lundin
2011-04-03 17:49         ` Tom
2011-04-04 20:25           ` Tom [this message]
2011-07-20  8:28             ` Nicolas Goaziou
2011-07-21 19:25               ` Tom
2011-07-22  7:31                 ` Bastien

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=loom.20110404T222130-385@post.gmane.org \
    --to=adatgyujto@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).