From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: babel: ob-C with Visual C++ and compilation-mode Date: Mon, 11 Aug 2014 21:40:34 +0200 Message-ID: <53E91C32.4000002@free.fr> References: <878un4ut6c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvSS-0000LJ-U8 for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:40:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGvSO-0007tE-Sk for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:40:40 -0400 Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]:50737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvSO-0007sj-Go for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:40:36 -0400 Received: from [IPv6:2a01:e35:2e21:def0:b425:737d:9428:4f58] (unknown [IPv6:2a01:e35:2e21:def0:b425:737d:9428:4f58]) by smtp2-g21.free.fr (Postfix) with ESMTP id 741CA4B0070 for ; Mon, 11 Aug 2014 21:40:34 +0200 (CEST) In-Reply-To: <878un4ut6c.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Le 04/08/2014 18:16, Ernesto Durante a =E9crit : > One suggestion. It will be nice to put the error buffer in > compilation-mode, this way errors are highlighted and we can jump > directly into the source code. I modified org-babel-eval to launch the > compilation mode in case of errors. I also removed the read-only > attribute, else the buffer content of org-babel-error-buffer-name canno= t > be erased. The compilation mode is a very good idea ! I tried it. > > Clearly, it's not a good patch because org-babel-eval seems to be > a core function in babel. Maybe for ob-C, this function should be > replaced by a new function.=20 It works well for C++, D, Dot It fails for Perl, R, Elisp But when it fails, it does not do any harm: the behavior is as before. So... I vote for your patch. > Thanks to everyone for orgmode and babel to exist.=20 > > Best > Ernesto > >