From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: org-map-entries moves point Date: Wed, 05 Feb 2014 20:49:05 +0100 Message-ID: <52F295B1.6090806@miszellen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB8ql-0001Ab-QC for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 15:13:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WB8qf-0005GO-VZ for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 15:13:35 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::11]:17888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB8qf-0005Fy-IB for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 15:13:29 -0500 Received: from [109.43.99.166] (ip-109-43-99-166.web.vodafone.de [109.43.99.166]) by smtp.strato.de (RZmta 32.23 DYNA|AUTH) with ESMTPSA id L03d97q15Jn88B8 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Wed, 5 Feb 2014 20:49:08 +0100 (CET) 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: Org Mode List When I call org-map-entries with scope set to 'tree, the current heading gets realigned to the top. Behold: (org-map-entries (lambda () ;; do something or even nothing ) nil 'tree) I think the culprit is the call to `org-agenda-prepare-buffers', or rather commit fe3379bda6ca23474639b114592958bf14431c88, which replaces save-excursion with save-window-excursion. What's interesting: This does NOT restore the window configuration. When I replace save-window-excursion with save-excursion the window configuration is restored again. I'm not sure *why* this happens. -- Florian Beck