From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: (org-insert-headline '(4)) should insert new headline before point Date: Sat, 5 Apr 2014 01:03:11 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWJhC-00053X-09 for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWJhB-0001Lc-29 for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:03:13 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:62160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWJhA-0001LX-Rv for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:03:12 -0400 Received: by mail-ob0-f178.google.com with SMTP id wp18so4462168obc.23 for ; Fri, 04 Apr 2014 23:03:12 -0700 (PDT) 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: York Zhao Cc: emacs-orgmode They are working on the next release right now so things might be quiet. Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi grettke@acm.org | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Fri, Apr 4, 2014 at 10:01 PM, York Zhao wrote: > Any one? > > On Thu, Apr 3, 2014 at 6:59 PM, York Zhao wrote: >> Hi list, >> >> (org-insert-headline '(4)) used to insert new heading before point. But = this had >> broken recently. According to the docstring, this command inserts new >> heading at the end of the parent subtree ONLY if two universal prefix >> arguments is given, not one. Here's the reproducer: >> >> --8<---------------cut here---------------start------------->8--- >> emacs -Q -L path/to/org-mode/lisp/ --eval \ >> "(let ((buf (get-buffer-create \"test-org\"))) >> (with-current-buffer buf >> (org-mode) >> (insert \"* headline 1\") >> (goto-char (line-beginning-position)) >> (org-insert-heading '(4))) >> (switch-to-buffer buf))" >> --8<---------------cut here---------------end--------------->8--- >> >> Thanks >