From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included Date: Thu, 7 Dec 2017 05:05:31 -0800 (PST) Message-ID: <0ec24988-f92f-4fd0-bde1-bd41cfab1bc9@googlegroups.com> References: <87tvx99t3y.fsf@gmail.com> <87indo7s7o.fsf@mbork.pl> <87d13u7qvo.fsf@mbork.pl> <86shcqg2a7.fsf@zoho.com> <878teh7o8a.fsf@mbork.pl> <86bmjdd8ey.fsf@zoho.com> <86vahjgul3.fsf@zoho.com> <86vahig499.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1512652234 21951 195.159.176.226 (7 Dec 2017 13:10:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2017 13:10:34 +0000 (UTC) Injection-Date: Thu, 07 Dec 2017 13:05:32 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 14:10:27 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 1eMvwV-0005Ux-Fb for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 14:10:23 +0100 Original-Received: from localhost ([::1]:60610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMvwc-0003Nq-AG for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 08:10:30 -0500 X-Received: by 10.55.77.135 with SMTP id a129mr19000621qkb.23.1512651932127; Thu, 07 Dec 2017 05:05:32 -0800 (PST) X-Received: by 10.31.147.83 with SMTP id v80mr912004vkd.0.1512651931840; Thu, 07 Dec 2017 05:05:31 -0800 (PST) Original-Path: usenet.stanford.edu!g35no614319qtk.1!news-out.google.com!v55ni1418qtc.0!nntp.google.com!g35no614312qtk.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <86vahig499.fsf@zoho.com> Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=61.2.48.230; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 61.2.48.230 Original-Xref: usenet.stanford.edu gnu.emacs.help:221175 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:115287 Archived-At: On Thursday, December 7, 2017 at 5:05:19 PM UTC+5:30, Emanuel Berg wrote: > Eric S Fraga wrote: >=20 > > I would have an example block first which > > allows the editing of the ascii drawing and > > then an nroff src block (although there is > > currently no actual support for nroff but > > trivial to add) for the pic diagram. >=20 > In general, if there is no support for *roff > this is a very severe flaw in any IDE as groff > is the markup and typesetting language of the > man pages - a cornerstone of any Unix system. >=20 > Even so, *roff is much more powerful and within > the military-publicist complex some use it to > layout commercial books like others > would LaTeX. >=20 > Here (my little project), nroff-mode isn't > essential because I just use it (so far) to get > some rudimentary font lock. For that, there are > other modes that could serve just as well. > nroff is closest tho conceptually as pic is > part of the groff pipeline tool chain, > as stated. >=20 > But anyhow, if I were to do as you suggest, and > I must confess I didn't understand any of > it :), what is the first step? Speaking conceptually You basically want a babel language binding for groff (-p) The general idea of babel bindings is http://orgmode.org/worg/org-contrib/babel/languages.html To make a new binding a template is provided: http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el Someone seems to have put together something for groff (attachment of) https://lists.gnu.org/archive/html/emacs-orgmode/2016-03/msg00434.html (You may need to stick in a -p to use pic) That is speaking conceptually ;-) Speaking more helpfully: I would say for a first dive into org start with something more mainstream rather than picking up some rough and untried code and shoe-horning it to y= our needs But then 1. I am very far from a babel expert =E2=80=94 noob is more accurate 2. Even after 25 years of emacs I find configuration slow, painful and erro= r-prone Very likely you are much better than I ;-) and may enjoy the dive Just thought I should say this is diving in at the deep end=E2=80=A6