From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll Date: Wed, 25 Apr 2012 18:10:34 -0500 Message-ID: <87y5pjqufp.fsf@fastmail.fm> References: <8762cuy5rw.fsf@altern.org> <20120421193406.GA1111@c3po.home> <874nsctgb8.fsf@gnu.org> <8762cnsdnp.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNBN2-0004Gw-Lu for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 19:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNBN0-0003fq-M6 for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 19:11:36 -0400 In-Reply-To: <8762cnsdnp.fsf@fastmail.fm> (Matt Lundin's message of "Wed, 25 Apr 2012 16:30:02 -0500") 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: Bastien Cc: emacs-orgmode@gnu.org Matt Lundin writes: > Bastien writes: > >> Toby Cubitt writes: >> >>> In the patch I posted, I also took the opportunity to set >>> `cursor-type' to nil when opening the calendar in `org-read-date'. >>> The cursor obscures one digit of the selected date, making that bit >>> harder to read (as well as looking ugly). Did you intend to reject >>> this change too? >> >> I did because I found the not-bold-anymore face wasn't visible enough, >> and the shallow cursor made it visible. >> >> I use inverse-video now for this face, so cursor-type nil is okay, I >> applied a patch with this. > > This patch broke org-read-date. It will no longer parse date strings > such as "Aug 15" correctly, instead inserting the current day. > [snip] > If I comment out the following line: > > (org-eval-in-calendar '(setq cursor-type nil)) > > org-read-date works correctly. 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) Best, Matt