From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: add blocks to org-structure-template-alist Date: Fri, 27 Apr 2018 18:24:32 -0400 Message-ID: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------896E53867C9D66F424CED949" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCBnD-0008LG-PY for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 18:24:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCBn9-00070z-ND for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 18:24:39 -0400 Received: from omr-a014e.mx.aol.com ([204.29.186.62]:47279) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCBn9-000709-Hm for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 18:24:35 -0400 Received: from mtaout-mcc01.mx.aol.com (mtaout-mcc01.mx.aol.com [172.26.253.77]) by omr-a014e.mx.aol.com (Outbound Mail Relay) with ESMTP id 69684380005A for ; Fri, 27 Apr 2018 18:24:34 -0400 (EDT) Received: from [10.0.0.2] (0x5b31302e302e302e325d [96.238.154.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mcc01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 1AF2938000089 for ; Fri, 27 Apr 2018 18:24:33 -0400 (EDT) Content-Language: en-US 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------896E53867C9D66F424CED949 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, in my .emacs I have a couple of (add-to-list 'org-structure-template-alist) blocks of my own, for example #+begin_src (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) #+end_src which I used until a few months ago. Is this correct of has the format changed? Charlie Millar --------------896E53867C9D66F424CED949 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi,

in my .emacs I have a couple of (add-to-list 'org-structure-template-alist) blocks of my own, for example

#+begin_src

(add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" ""))

#+end_src

which I used until a few months ago.

Is this correct of has the format changed?

Charlie Millar

--------------896E53867C9D66F424CED949-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 01:00:54 +0200 Message-ID: <87in8ctftl.fsf@nicolasgoaziou.fr> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCCMS-0001gv-Tg for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCCMN-0003uj-SM for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:01:04 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39913) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCCMN-0003ty-LM for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:00:59 -0400 In-Reply-To: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> (Charles Millar's message of "Fri, 27 Apr 2018 18:24:32 -0400") 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: Charles Millar Cc: emacs-orgmode@gnu.org Hello, Charles Millar writes: > Hi, > > in my .emacs I have a couple of (add-to-list > 'org-structure-template-alist) blocks of my own, for example > > #+begin_src > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? > :type \n#+end_src" "")) > > #+end_src > > which I used until a few months ago. > > Is this correct of has the format changed? In master branch, the format has changed. You may want to look at the variable docstring. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 01:09:45 +0200 Message-ID: <87muxop7pi.fsf@gnu.org> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCCUz-00048A-Eq for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:09:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCCUu-0007jK-HO for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:09:53 -0400 In-Reply-To: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> (Charles Millar's message of "Fri, 27 Apr 2018 18:24:32 -0400") 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: Charles Millar Cc: emacs-orgmode@gnu.org Hi Charles, Charles Millar writes: > Is this correct of has the format changed? The format slightly changed, please check this option's docstring. Also see ORG-NEWS here, which I just updated: https://code.orgmode.org/bzg/org-mode/src/master/etc/ORG-NEWS#L65 Let me know if you think this is informative enough for other users. Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 01:12:18 +0200 Message-ID: <87efj0p7l9.fsf@gnu.org> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCCXS-0004z8-0c for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCCXM-0000te-TQ for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:12:25 -0400 In-Reply-To: <87in8ctftl.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 28 Apr 2018 01:00:54 +0200") 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Charles Millar Hi Nicolas, Nicolas Goaziou writes: > In master branch, the format has changed. With the new template mechanism, can we have rich templates like the one Charles quotes? (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) allowing cursor positioning, etc? If yes, what pointer can we add to ORG-NEWS? Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 01:22:44 +0200 Message-ID: <87bme4tet7.fsf@nicolasgoaziou.fr> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> <87efj0p7l9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCChZ-0007bp-VY for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCChZ-0007Rh-7K for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 19:22:53 -0400 In-Reply-To: <87efj0p7l9.fsf@gnu.org> (Bastien's message of "Sat, 28 Apr 2018 01:12:18 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org, Charles Millar Hello, Bastien writes: > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) > > allowing cursor positioning, etc? > > If yes, what pointer can we add to ORG-NEWS? I don't know, but I would suggest to use Yasnippet or some other specialized package for advanced templates like this one. Regards, -- Nicolas Goaziou 0x80A93738 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: add blocks to org-structure-template-alist Date: Fri, 27 Apr 2018 17:12:13 -0700 Message-ID: <87tvrwyysi.fsf@ericabrahamsen.net> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> <87efj0p7l9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCDW7-0004R2-AK for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCDW6-0005Tr-IP for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:15:07 -0400 In-Reply-To: <87efj0p7l9.fsf@gnu.org> (Bastien's message of "Sat, 28 Apr 2018 01:12:18 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org, Nicolas Goaziou , Charles Millar Bastien writes: > Hi Nicolas, > > Nicolas Goaziou writes: > >> In master branch, the format has changed. > > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) > > allowing cursor positioning, etc? > > If yes, what pointer can we add to ORG-NEWS? I think more complicated templating has gone into org-tempo.el, which can be loaded separately, and uses the tempo package. The docstring of `tempo-define-template' shows what's possible. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: add blocks to org-structure-template-alist Date: Fri, 27 Apr 2018 20:43:51 -0400 Message-ID: <4a10e297-beee-13b6-06bd-9127fbbc5d7a@verizon.net> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87muxop7pi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------8E97D9275AE7C58102A08508" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCDy3-0002fW-Qx for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:44:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCDxy-0007Br-S4 for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:43:59 -0400 Received: from omr-a009e.mx.aol.com ([204.29.186.49]:43734) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCDxy-0007BS-M0 for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:43:54 -0400 Received: from mtaout-aad02.mx.aol.com (mtaout-aad02.mx.aol.com [172.26.127.226]) by omr-a009e.mx.aol.com (Outbound Mail Relay) with ESMTP id 2240D3800091 for ; Fri, 27 Apr 2018 20:43:54 -0400 (EDT) Received: from [10.0.0.2] (0x5b31302e302e302e325d [96.238.154.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aad02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id B135238000089 for ; Fri, 27 Apr 2018 20:43:53 -0400 (EDT) In-Reply-To: <87muxop7pi.fsf@gnu.org> Content-Language: en-US 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------8E97D9275AE7C58102A08508 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, again, On 04/27/2018 07:09 PM, Bastien wrote: > Hi Charles, > > Charles Millar writes: > >> Is this correct of has the format changed? > The format slightly changed, please check this option's docstring. > > Also see ORG-NEWS here, which I just updated: > > https://code.orgmode.org/bzg/org-mode/src/master/etc/ORG-NEWS#L65 > > Let me know if you think this is informative enough for other > users. Prior to posting I did read the docstring for org-structure-template-alist in version 9.1.12 and I found nothing concerning "roll your own" templates. I have also read your org-news entry as well as the other replies. It is not clear to me - is it possible to write my own, fairly simple template with a few modifications that are a result of some recent changes or, for example, are elements such as those in tempo-define-template now required? Thanks. Charlie Millar --------------8E97D9275AE7C58102A08508 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi, again,

On 04/27/2018 07:09 PM, Bastien wrote:
Hi Charles,

Charles Millar <millarc@verizon.net> writes:

Is this correct of has the format changed?
The format slightly changed, please check this option's docstring.

Also see ORG-NEWS here, which I just updated:

https://code.orgmode.org/bzg/org-mode/src/master/etc/ORG-NEWS#L65

Let me know if you think this is informative enough for other
users.
Prior to posting I did read the docstring for org-structure-template-alist in version 9.1.12 and I found nothing concerning "roll your own" templates. I have also read your org-news entry as well as the other replies.

It is not clear to me - is it possible to write my own, fairly simple template with a few modifications that are a result of some recent changes or, for example, are elements such as those in tempo-define-template now required?

Thanks.

Charlie Millar
--------------8E97D9275AE7C58102A08508-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 08:16:28 +0200 Message-ID: <87lgd7hn43.fsf@gnu.org> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> <87efj0p7l9.fsf@gnu.org> <87bme4tet7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCJ9x-0008Db-4H for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 02:16:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCJ9t-00018h-PH for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 02:16:36 -0400 In-Reply-To: <87bme4tet7.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 28 Apr 2018 01:22:44 +0200") 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Charles Millar Hi Nicolas and Eric, Nicolas Goaziou writes: > I don't know, but I would suggest to use Yasnippet or some other > specialized package for advanced templates like this one. Thanks. Eric Abrahamsen writes: > I think more complicated templating has gone into org-tempo.el, which > can be loaded separately, and uses the tempo package. The docstring of > `tempo-define-template' shows what's possible. I advertized both `tempo-define-template' and `yasnippet' in ORG-NEWS. Best, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 08:22:04 +0200 Message-ID: <87a7tnhmur.fsf@gnu.org> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87muxop7pi.fsf@gnu.org> <4a10e297-beee-13b6-06bd-9127fbbc5d7a@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCJFJ-0001vQ-7C for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 02:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCJFG-0003Eo-3Q for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 02:22:09 -0400 In-Reply-To: <4a10e297-beee-13b6-06bd-9127fbbc5d7a@verizon.net> (Charles Millar's message of "Fri, 27 Apr 2018 20:43:51 -0400") 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: Charles Millar Cc: emacs-orgmode@gnu.org Hi Charles, Charles Millar writes: > It is not clear to me - is it possible to write my own, fairly simple > template with a few modifications that are a result of some recent > changes or, for example, are elements such as those in > tempo-define-template now required? you would need to use `tempo-define-template', yes. -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: add blocks to org-structure-template-alist Date: Sat, 28 Apr 2018 09:02:13 -0400 Message-ID: <5176c351-c0de-a90e-c536-b0ca2efdbbec@verizon.net> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87muxop7pi.fsf@gnu.org> <4a10e297-beee-13b6-06bd-9127fbbc5d7a@verizon.net> <87a7tnhmur.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------2FF9725F3B08D746A091D59D" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCPUZ-0002Kz-6D for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 09:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCPUW-0003dK-2P for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 09:02:19 -0400 Received: from omr-m007e.mx.aol.com ([204.29.186.9]:62553) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCPUV-0003dA-TJ for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 09:02:15 -0400 Received: from mtaout-maa01.mx.aol.com (mtaout-maa01.mx.aol.com [172.26.222.141]) by omr-m007e.mx.aol.com (Outbound Mail Relay) with ESMTP id 470A538000BD for ; Sat, 28 Apr 2018 09:02:15 -0400 (EDT) Received: from [192.168.1.128] (0x5b3139322e3136382e312e3132385d [174.220.16.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-maa01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 8D9D038000090 for ; Sat, 28 Apr 2018 09:02:14 -0400 (EDT) In-Reply-To: <87a7tnhmur.fsf@gnu.org> Content-Language: en-US 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------2FF9725F3B08D746A091D59D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Bastien, On 04/28/2018 02:22 AM, Bastien wrote: > Hi Charles, > > Charles Millar writes: > >> It is not clear to me - is it possible to write my own, fairly simple >> template with a few modifications that are a result of some recent >> changes or, for example, are elements such as those in >> tempo-define-template now required? > you would need to use `tempo-define-template', yes. > OK - something new to learn! Thank you. Charlie --------------2FF9725F3B08D746A091D59D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi Bastien,

On 04/28/2018 02:22 AM, Bastien wrote:
Hi Charles,

Charles Millar <millarc@verizon.net> writes:

It is not clear to me - is it possible to write my own, fairly simple
template with a few modifications that are a result of some recent
changes or, for example, are elements such as those in
tempo-define-template now required?
you would need to use `tempo-define-template', yes.

OK - something new to learn!

Thank you.

Charlie
--------------2FF9725F3B08D746A091D59D-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: add blocks to org-structure-template-alist Date: Sun, 29 Apr 2018 22:34:39 +0200 Message-ID: <877eopyco0.fsf@gmx.us> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> <87efj0p7l9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCt4U-0002i7-JT for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCt4Q-0006SN-0s for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:22 -0400 Received: from [195.159.176.226] (port=34393 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCt4P-0006S0-PN for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:17 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fCt2G-00081O-Vk for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 22:35:04 +0200 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: emacs-orgmode@gnu.org Bastien writes: > Hi Nicolas, > > Nicolas Goaziou writes: > >> In master branch, the format has changed. > > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) > > allowing cursor positioning, etc? > > If yes, what pointer can we add to ORG-NEWS? Not at the moment. The particular example could be approximated with ("r" . "#+begin_src rec :data :type") On the snippet expansion side, you can make whatever you want, see the "