From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Question mark not supported in structured templates? Date: Tue, 29 Oct 2019 16:42:13 +0000 Message-ID: <2AD69AC5-E6EE-4327-AE2B-07E377668822@ucsd.edu> References: <87a79k6jum.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53435) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPUaJ-0002yO-UW for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 12:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPUaH-00069I-Dj for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 12:43:07 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:61098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPUaG-00067Y-RA for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 12:43:05 -0400 In-Reply-To: Content-Language: en-US Content-ID: <8B5A570168F72D43A31B0E37DB79F0CC@AD.UCSD.EDU> 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: Vladimir Nikishkin Cc: "emacs-orgmode@gnu.org" `org-tempo' is the replacement. It is mentioned in the docstring for `org-s= tructure-template-alist'.=20 Here is what I have in my `emacs-init.org' file: (The letter `p' denotes where point should land. `n' is a newline. See the = docstring for `tempo-define-template' for more details.) #+begin_src emacs-lisp=20 (require 'org-tempo) (tempo-define-template "org-src_R" '("#+begin_src R" p n n "#+end_src" ) " n p n "\\end{eqnarray}" >) " n p n "\\end{equation}" >) " On Oct 29, 2019, at 1:59 AM, Vladimir Nikishkin wro= te: >=20 > In the version 8 of org-mode you could indicate where to put the point > after the template is expanded. In the template > (list "p" "#begin_src plantuml :file ? :export both \n#end_src"), > after the template is expanded, the point would be located after > :file, whereas in the template (list "SO" "#begin_src scheme :export > both \n?\n#end_src") the point would be located on the frist line > after the header. >=20 > At the moment, `org-insert-structure-template' just inserts the > question mark verbatim. I would consider this a regression, but maybe > there is some replacement mechanism?