From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: close a template? Date: Thu, 14 Jun 2018 10:39:33 +0100 Message-ID: <87po0t671m.fsf@gmail.com> References: <87a7rxss8e.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTOjE-00074a-Ty for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 05:39:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTOjA-0001YJ-WC for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 05:39:40 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:45013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTOjA-0001XT-NW for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 05:39:36 -0400 Received: by mail-wr0-x22a.google.com with SMTP id x4-v6so5657932wro.11 for ; Thu, 14 Jun 2018 02:39:36 -0700 (PDT) Received: from t3610 ([2.30.180.227]) by smtp.gmail.com with ESMTPSA id 201-v6sm8155277wmm.18.2018.06.14.02.39.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 02:39:34 -0700 (PDT) In-Reply-To: <87a7rxss8e.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 14 Jun 2018 10:10:57 +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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thursday, 14 Jun 2018 at 10:10, Uwe Brauer wrote: > Hi > > I asked that more than a year ago, but maybe meanwhile there are some > news in master which I did not noticed. > > Consider please the following template > > #+begin_src matlab :results output latex :exports results :eval never-e= xport=20 > clear all > f1=3D5; > f2=3D4; > f3=3D6; > h=3D(1-(-1))/2; > s=3Dmisimp(5,4,6,h); > disp('\begin{equation*}') > fprintf('I =3D %g \\\\\n', s) > disp('\end{eqaution*}') > #+end_src > > Suppose I accidentally delete the last line, so the template would be > invalid. Is there, meanwhile, any command which would guess the correct > template and insert the missing line? Unlikely to be a solution available given that you are wanting an autocompletion that understands LaTeX within MATLAB... I don't know of any tool that could help unfortunately. (and your last line is misspelled, by the way ;-)) =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWyI31QAKCRDIkZPY//z2 fbbWAJ9rJhcgEE7/7P24z/rrarIY/nD9ygCffXaPQ0rzF+U3lvWNtcR2eWdt6p8= =XsO/ -----END PGP SIGNATURE----- --=-=-=--