From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Foley Subject: Re: [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. " References: <87lgd671k7.fsf@bzg.fr> <87o9i2p9qq.fsf@nicolasgoaziou.fr> <87k1sq6znz.fsf@bzg.fr> <871seyp6fr.fsf@nicolasgoaziou.fr> <874lju6tap.fsf@bzg.fr> <87bme1y7ft.fsf@gmail.com> <87sh7d1upr.fsf@gnu.org> <87muxlm1h6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d94e9056b11840a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD9ce-0006Oc-Ar for emacs-orgmode@gnu.org; Mon, 30 Apr 2018 10:17:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD9cd-0005fx-BP for emacs-orgmode@gnu.org; Mon, 30 Apr 2018 10:17:44 -0400 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: Nicolas Goaziou Cc: bzg@gnu.org, theophilusx@gmail.com, emacs-orgmode@gnu.org --0000000000003d94e9056b11840a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I should add that one issue with org-tempo is it doesn't seem to be backwards compatible with old templates. For example packages such as ob-sql-mode and org-reveal have easy templates based on the old format such as : (add-to-list 'org-structure-template-alist `(,org-babel-sql-mode-template-selector "#+BEGIN_SRC sql-mode ?\n\n#+END_SRC" "#+BEGIN_SRC sql-mode ?\n\n#+END_SRC")) https://github.com/nikclayton/ob-sql-mode/blob/8d36d312bec4a742bec889037394= 8a888cac18de/ob-sql-mode.el#L187 This causes the cryptic error "File mode specification error: (error Format specifier doesn=E2=80=99t match argument type)" when trying to load org-mod= e which took me ages to figure out and could potentially turn someone new to org-mode/emacs off forever. I think this would be a good reason to not enable org-tempo at least for the time being until either it can handle templates in the old format, or produces a less cryptic error for users. Regards, Kevin --0000000000003d94e9056b11840a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I should add that one issue with org-tempo is it doesn'= ;t seem to be backwards compatible with old templates.=C2=A0 For example pa= ckages such as ob-sql-mode and org-reveal have easy templates based on the = old format such as :

=C2=A0 =C2=A0 (add-to-list 'org= -structure-template-alist
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 `(,org-babel-sql-mode-template-selector
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "= ;#+BEGIN_SRC sql-mode ?\n\n#+END_SRC"
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "#+BEGIN_SRC sql-mode= ?\n\n#+END_SRC"))


<= /div>
This causes the cryptic error "File mode specification error= : (error Format specifier doesn=E2=80=99t match argument type)" when t= rying to load org-mode which took me ages to figure out and could potential= ly turn someone new to org-mode/emacs off forever.

I think this would be a good reason to not enable org-tempo at least for t= he time being until either it can handle templates in the old format, or pr= oduces a less cryptic error for users.

Regards,
Kevin

--0000000000003d94e9056b11840a--