From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel: ob-C with Visual C++ and compilation-mode Date: Mon, 18 Aug 2014 08:51:35 -0400 Message-ID: <87lhqhcihu.fsf@gmail.com> References: <878un4ut6c.fsf@gmail.com> <53E91C32.4000002@free.fr> <87lhqt6b0w.fsf@gmail.com> <53EA8F2B.7010205@free.fr> <87zjf8cdjk.fsf@gmail.com> <53ED1EB0.3030500@free.fr> <87lhqp7jnp.fsf@gmail.com> <53F08FE3.20506@free.fr> <87vbpq6o4w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKfV0-0007CW-H9 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 23:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKfUv-0000Al-GM for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 23:26:46 -0400 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:39090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKfUv-0000Ah-Ae for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 23:26:41 -0400 Received: by mail-ig0-f175.google.com with SMTP id uq10so14350092igb.2 for ; Thu, 21 Aug 2014 20:26:40 -0700 (PDT) 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: Ernesto Durante Cc: emacs-orgmode@gnu.org Ernesto Durante writes: > Thierry Banel writes: > >> Le 15/08/2014 19:22, Ernesto Durante a =C3=A9crit : >> >> True. >> And to achieve that the :includes header tag was added: >> #+BEGIN_SRC C++ :includes >> >> (Because otherwise a #include statement would end up in the main() funct= ion) >> >> For me this is already a questionable distortion of C++. >> >> The Emacs C++-mode does no attempt at hiding parts of a C++ file. >> It just display the file as it is, and that is good. >> > Yes, you are right. > >> >> This is far too complex for me. >> I will just write down the main() function rather than learning this >> extension. >> >> But of course, I am just one user among others. >> You are another user and you feel the need for this extension, >> and this should be taken into account. >> Try the extension for yourself, then share it, and see if others like it. > > Yes, you are right. > Perhaps a new header argument should be added for C-Family languages which will inhibit this main wrapping behavior? -- Eric --=20 Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)