From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Restore org-agenda-undo in the presence of evil and undo-tree Date: Wed, 27 Apr 2016 18:24:05 +0200 Message-ID: <5720E7A5.703@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avSG8-00035f-Nt for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 12:24:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avSG5-0001QP-Bd for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 12:24:16 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:33315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avSG5-0001QA-5V for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 12:24:13 -0400 Received: by mail-wm0-x22e.google.com with SMTP id g17so12695wme.0 for ; Wed, 27 Apr 2016 09:24:12 -0700 (PDT) Received: from [131.220.206.61] (eduroam-206-61.wlan.uni-bonn.de. [131.220.206.61]) by smtp.googlemail.com with ESMTPSA id i3sm4842520wjx.30.2016.04.27.09.24.10 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Apr 2016 09:24:10 -0700 (PDT) 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" To: "emacs-orgmode@gnu.org" Hi all, I am using evil and undo-tree and therefore have (global-undo-tree-mode 1). In agenda views, I would like to be able to use org-agenda-undo, but the usual keyboard shortcuts for org-agenda-undo are occupied by undo-tree-undo. So I wondered how to disable undo-tree-mode in agenda views and came up with the following: (add-hook 'org-agenda-finalize-hook #'(lambda () (undo-tree-mode -1))) Nevertheless, undo is not working properly as long as the underlying Org buffer, which I am editing remotely from the agenda buffer, is in evil-mode. If I switch it to Emacs input, undo works. Can anyone confirm this behaviour? Cheers, and thanks in advance, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → CSCUBS Computer Science Conference for University of Bonn Students 25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de