From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included Date: Sun, 3 Dec 2017 11:17:48 -0800 Message-ID: References: <87tvx99t3y.fsf@gmail.com> <87indo7s7o.fsf@mbork.pl> <20171203101052.GA29579@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1512328706 23319 195.159.176.226 (3 Dec 2017 19:18:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Dec 2017 19:18:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 03 20:18:21 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLZmL-0005ZC-MW for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Dec 2017 20:18:17 +0100 Original-Received: from localhost ([::1]:39917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLZmS-0008IZ-SS for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Dec 2017 14:18:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLZlv-0008IU-AO for help-gnu-emacs@gnu.org; Sun, 03 Dec 2017 14:17:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLZlu-0006r9-B4 for help-gnu-emacs@gnu.org; Sun, 03 Dec 2017 14:17:51 -0500 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:38469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLZlu-0006qy-4l for help-gnu-emacs@gnu.org; Sun, 03 Dec 2017 14:17:50 -0500 Original-Received: by mail-oi0-x22e.google.com with SMTP id s9so10334835oie.5 for ; Sun, 03 Dec 2017 11:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DUI4xfaPF1eZhX4sB8zIim+HJTEu0eQexpuLAojuOGU=; b=IoawFPHE8NA5ob3oSu1PmzUv1FDppVpziPUYJM6pwGnm7Tf4jawt36f8LGMXpLqrYr G5/ghq+Bs8aIsjMdsiAp3Nrd7uH08WBtQT4HIBSwTe3S7i/MbU4EUjG+YU3OYfr+E02o oAgn+zCE2hflE2DKi1F205yRyWc4gVEIuVeY+GpQ+Jd6qlg4syl4z8UQ5tKK2gt6Nkwo uzDmj/W4xJl06t7WSepG0cdVLNtQZFtKf53A7rYN0Q0SRbOyLgGZZXrkENsYEJO/bXun 2C2aAoDKwiIsO8UkLIvJVAqumWH/f44H/20aMpcriWeAesl4QJq9GGlqCQAxSJZkj+Qa Rmhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DUI4xfaPF1eZhX4sB8zIim+HJTEu0eQexpuLAojuOGU=; b=HYdmZVHviYuQWqD3fo84T8pBzFCB4izXAHF3NjJTgfqRcQ19wNdF3u3wd2anTnd0tf iEEcfiXJ+MjvGf5emsh3Ys/g8Iy7dCDdRwPFw3SHyN3xwYK3QW1zIItEXeLTtgtwBY/c LPY4/Yv5+mIZA5cJMdehNEzzvmi2uYKUCQtYuaSBP9rnZdKP1eu/B1Hf3yGOrKeMkWE0 vxKfybceAVZeNGbMCP1H7Ukrza0/CfnpHFiYJ+lh7KM35nggoqS2emu6Mwoi/ZZ+CoCg qipVmnYkxlC0yLXNwNio9M84FQKzjiqa23BlfbAnhnZAfhE5o84NlRJdsAxqfTZf/Qsj 1e3A== X-Gm-Message-State: AJaThX4gR2VBLs/uCGI1yZ8ba5lvsgULD9li1TPF5pI1SJNmC/yJS5yl /QWAoKYmyIccQOa4P3qYQzc2fRNtaxetirkA0v4= X-Google-Smtp-Source: AGs4zMZfEoHQhs6W9nwdWhQfDIxeQ64POa0bX97NEyEtHao9Mzn95w79cCGbBr/mF84gz1zGL4jp+hR5WKaHZTEPeO4= X-Received: by 10.202.208.153 with SMTP id j25mr12952478oiy.127.1512328669133; Sun, 03 Dec 2017 11:17:49 -0800 (PST) Original-Received: by 10.74.92.140 with HTTP; Sun, 3 Dec 2017 11:17:48 -0800 (PST) In-Reply-To: <20171203101052.GA29579@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115186 Archived-At: On Sun, Dec 3, 2017 at 2:10 AM, wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sat, Dec 02, 2017 at 02:47:23PM -0800, Dan Hitt wrote: > > [...] > >> Hi Marcin, >> >> You are very nice, but what is a 'source block'? >> >> Is this like cdata in html? > > Yes and no :-) > > In org mode, a source block looks like > > #+BEGIN_SRC C > void img_free(img *image) > { > if(image) { > if(image->pixels) free(image->pixels); > free(image); > } > } > #+END_SRC > > Meaning: the code between this markup is C source code. Thus Org > knows, for many languages: > > - how to highlight it and edit it, via the appropriate > Emacs mode > > - how to "execute" it (and if you wish, insert the > results into your buffer). Yes, for C, Org would > call the compiler for you, for a snippet like the > above pack some boilerplate around it with a main > function calling into your func, and printing the > return value, for org to collect the result (that's > Org babel magic). > > There are many ways to pass parameters to source code blocks, > which controls their behaviour. > > Definitely worth a look. > > Cheers > - -- t > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlojzawACgkQBcgs9XrR2kYOgACePyLHE8ZGq7Wj5hm+FhhrlOR2 > USYAnjpr6QvsU1xMAmuxRLPPDkaMlp8K > =q2aB > -----END PGP SIGNATURE----- > Wow, i mean, just wow. Presumably there's some confirmation necessary for compilation and execution, or otherwise it would be some kind of multi-lingual hole (??) I have to think about this for a few days :) :) . . . . . dan