From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonard Randall Subject: Re: (org-insert-headline '(4)) should insert new headline before point Date: Wed, 30 Apr 2014 08:12:01 +0100 Message-ID: References: <87a9bk9guf.fsf@bzg.ath.cx> <87zjjdafa3.fsf@bzg.ath.cx> <87eh0lg940.fsf@bzg.ath.cx> <8738gwwbxb.fsf@bzg.ath.cx> <87siowqks8.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1ede6db345104f83d4398 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfOgW-0001m8-Ef for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 03:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfOgU-000356-Ug for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 03:12:04 -0400 In-Reply-To: <87siowqks8.fsf@bzg.ath.cx> 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: York Zhao , emacs-orgmode --001a11c1ede6db345104f83d4398 Content-Type: text/plain; charset=UTF-8 On 29 April 2014 15:20, Bastien wrote: > > I'm having a hard time finding out what you *did* exactly -- can you > describe the way to reproduce the bug from an empty buffer, step by > step? > Sorry, I should have been more explicit about what I was doing. Step by step instructions would look something like this. If I type the following commands, 1. emacs -q -l ~/minimal-init.el 2. C-x C-f ~/test.org RET 3. bla 4. C-a 5. M-RET 6. C-e 7. RET 8. bla bla 9. C-a 10. M-RET I get: ----begin-example--- * bla * bla bla ----end-example--- If I perform the same commands without loading the minimal init file (Minimal-init just adds the most recent version org-mode to the load path, and says to debug on error), I get this ----begin example--- * bla * bla bla ----end-example--- It adds a new line before the first headline, but otherwise it acts as expected. I am not sure if it makes any difference. But I am running the the Homebrew version of emacs 24.3.1 on OS X Mavericks. All best, Leonard --001a11c1ede6db345104f83d4398 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On 29 April 2= 014 15:20, Bastien <bzg@gnu.org> wrote:

I'm having a hard time finding out what you *did* exactly -- can = you
describe the way to reproduce the bug from an empty buffer, step by
step?=C2=A0
=C2=A0
Sorry, I should have been = more explicit about what I was doing. Step by step instructions would look = something like this.

=C2=A0If I type the following commands,

1. emacs -q -l ~/minimal-init.el
2. C-x C-f ~/test.org RET=
3. bla
4. C-a
5. M-RET
6. C-e
7. RET
8. bla bla
<= /div>
9. C-a
10. M-RET

I get:
----be= gin-example---
* bla
*
bla bla
----end-example---

If I perform the same commands without loading the minimal i= nit file (Minimal-init just adds the most recent version org-mode to the lo= ad path, and says to debug on error), I get this

----beg= in example---

* bla
* bla bla
----e= nd-example---

It adds a new line before the first headline, but otherwise = it acts as expected. I am not sure if it makes any difference. But I am run= ning the the Homebrew version of emacs 24.3.1 on OS X Mavericks.

All best,
Leonard
--001a11c1ede6db345104f83d4398--