From mboxrd@z Thu Jan 1 00:00:00 1970 From: Le Wang Subject: Re: [PATCH] org-edit-special too much space if starting with empty block Date: Thu, 8 Nov 2012 20:33:16 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWRIT-0000Vg-Cl for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 07:33:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWRIL-0005jS-Tj for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 07:33:24 -0500 Received: from mail-qc0-f169.google.com ([209.85.216.169]:49929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWRIL-0005jH-P0 for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 07:33:17 -0500 Received: by mail-qc0-f169.google.com with SMTP id t2so2111457qcq.0 for ; Thu, 08 Nov 2012 04:33:16 -0800 (PST) In-Reply-To: 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: Orgmode Mailing List Can someone take a look at these test cases and if this patch or some other fixes is appropriate? I use org-mode to take lots of notes of source code and this is annoying. On Mon, Nov 5, 2012 at 10:31 PM, Le Wang wrote: > Some tests: > > Case 1: > > Start with emacs -Q > > I insert > > " > #+begin_src javascript > #+end_src > " > > with point before "#+end_src", I press " C-c ' " to start editing the source > > I enter "foobar" into the source buffer and immediately exit with " C-c ' " > > Case 2: > > restart with > > " > #+begin_src javascript > > #+end_src > " > > I've included a patch that fixes both issues. > > -- > Le -- Le