From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: close a template? Date: Thu, 14 Jun 2018 10:10:57 +0200 Message-ID: <87a7rxss8e.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTNLe-0006ad-Db for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 04:11:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTNLZ-0002ib-3D for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 04:11:13 -0400 Received: from [195.159.176.226] (port=45019 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTNLY-0002iF-RW for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 04:11:09 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fTNJM-0004fw-Ec for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 10:08:52 +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 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-export clear all f1=5; f2=4; f3=6; h=(1-(-1))/2; s=misimp(5,4,6,h); disp('\begin{equation*}') fprintf('I = %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? Auctex has a similar functionality called «close environment» which is a real time saver. Uwe Brauer