From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug] undo bunching in agenda Date: Tue, 28 Jul 2015 14:48:41 +0200 Message-ID: <87r3nssb12.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK4JT-0001Jm-U8 for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:48:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK4JP-0000EJ-LB for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:48:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:56903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK4JP-0000Cx-Eu for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:48:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZK4JN-0008D7-Gf for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 14:48:49 +0200 Received: from ip5b4025d5.dynamic.kabel-deutschland.de ([91.64.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2015 14:48:49 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2015 14:48:49 +0200 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: emacs-orgmode@gnu.org Samuel Wales 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