all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] undo bunching in agenda
Date: Tue, 28 Jul 2015 14:48:41 +0200	[thread overview]
Message-ID: <87r3nssb12.fsf@gmx.us> (raw)
In-Reply-To: CAJcAo8syTrCaM6SbzdWD2useqqngY7iTNftdodbbLRjt=B4d9w@mail.gmail.com

Samuel Wales <samologist@gmail.com> writes:

> on repeated task i change state twice in agenda.  i ret to go to the
> task.  i do undo only once, but both changes get undone.

Indeed on repeated tasks the second undo seems to be weird and produces
bad output:

    * TODO test
      :PROPERTIES:
      :LAST_REPEAT: [2015-07-28 mar 14:40]
      :END:
    ]
     <2015-08-04 mar +1w>>

I guess your expected behavior would be to go back to the previous state
(i.e. change the last repeated property and the time stamp).

We could to that by always modifying the the headline, properties and the
date tag in a temporary buffer and *then* inserting in after all
"internal" modifications.  Probably other ways exist as well.  This would
presumably provide a nice workflow in this case.

I'm not very familiar with the agenda codebase and I don't have time to
allocate towards fixing this right now.

Rasmus

-- 
Evidence suggests Snowden used a powerful tool called monospaced fonts

      reply	other threads:[~2015-07-28 12:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28  6:07 [bug] undo bunching in agenda Samuel Wales
2015-07-28 12:48 ` Rasmus [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3nssb12.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.