From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: (org-insert-heading "hello") Date: Mon, 5 Jun 2017 06:00:04 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114422d06375d80551353e83" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHqg5-0004rA-KB for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 08:00:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHqg4-0002St-Ct for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 08:00:09 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHqg4-0002N0-6R for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 08:00:08 -0400 Received: by mail-wm0-x231.google.com with SMTP id x70so10755943wme.0 for ; Mon, 05 Jun 2017 05:00:06 -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" To: f.nikolakopoulos@gmail.com Cc: "emacs-orgmode@gnu.org" --001a114422d06375d80551353e83 Content-Type: text/plain; charset="UTF-8" arg is for the prefix arg.You want this: (org-insert-heading) (insert "hello") John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jun 5, 2017 at 12:55 AM, wrote: > > (org-insert-heading "hello") emacs lisp function ignores argument and > inserts blank heading. > > I think is a change of mode to add the argument but which command. > > > --001a114422d06375d80551353e83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
arg is for the prefix arg.You want this:

(org-insert-heading)
(insert "hello")

John

-----------------------------------
Professor John Kitchin= =C2=A0
Doherty Hall A207F
Department of Chemical Engineering
Carne= gie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Mon, Jun 5, 2017 at 12:55 AM, <f.nikolakopoulos@gmail.com> wrote:

(org-insert-heading "hello") emacs lisp function ignores argument= and inserts blank heading.

I think is a change of mode to add the argument but which command.



--001a114422d06375d80551353e83--