From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toby Cubitt Subject: Re: bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll Date: Thu, 26 Apr 2012 15:19:11 +0200 Message-ID: <20120426131911.GA3469@c3po> References: <87ehraool5.fsf@gnu.org> Reply-To: Toby Cubitt Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNOd7-0005ZS-Vd for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 09:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNObp-0001HR-DS for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 09:21:05 -0400 Received: from starfish.geekisp.com ([216.168.135.166]:49095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNObo-00017l-8O for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 09:19:44 -0400 Content-Disposition: inline In-Reply-To: <87ehraool5.fsf@gnu.org> 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 On Thu, Apr 26, 2012 at 10:59:50AM +0200, Bastien wrote: > Hi Matt, > > Matt Lundin writes: > > > Note: It seems that adding the optional argument KEEPDATE is necessary > > for parsing to work. With the following line instead of the one above > > org-read-date works as expected: > > > > (org-eval-in-calendar '(setq cursor-type nil) t) > > that's right -- I pushed this fix to master. Thanks for reporting this > and for detailing the solution! Thanks for the fix! What exactly does KEEPDATE argument do? The `org-eval-in-calendar' docstring doesn't mention it anywhere, which is probably why I missed it in my patch. Looking at the code, it seems that the part about storing the cursor date in org-ans2 only happens for a non-nil KEEPDATE? I'd post an update to improve the `org-eval-in-calendar' docstring, but I don't feel like I really understand what the KEEPDATE argument does well enough. Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: tsc25@cantab.net web: www.dr-qubit.org