From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103901 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Emacs with context lmtx Date: Tue, 9 Apr 2019 23:47:41 +0200 Message-ID: References: <20190408115424.GG846@smoon.vl-lomov.ru> <20190409070438.GI846@smoon.vl-lomov.ru> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2493124854482060925==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230080"; mail-complaints-to="usenet@blaine.gmane.org" To: Vladimir Lomov , Fabrice Couvreur , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 09 23:50:05 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hDyd2-000xiz-HW for gctc-ntg-context-518@m.gmane.org; Tue, 09 Apr 2019 23:50:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0846119413; Tue, 9 Apr 2019 23:49:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nJlJIMkjvFwX; Tue, 9 Apr 2019 23:49:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CFF61119403; Tue, 9 Apr 2019 23:49:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55221119401 for ; Tue, 9 Apr 2019 23:49:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xX2jx-VSMwuo for ; Tue, 9 Apr 2019 23:49:34 +0200 (CEST) Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9BD6E1193DA for ; Tue, 9 Apr 2019 23:49:34 +0200 (CEST) Original-Received: by mail-wr1-f48.google.com with SMTP id q1so480130wrp.0 for ; Tue, 09 Apr 2019 14:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yF6HRjhXWE0qIJaupuTLu+ch5GAtFS54usYa6P//1x4=; b=CFzoRV1XnPDa8H3fyn/yiv9obzZ/MeELbjFHEab8prtI3BVMK1Rqxultn44SKY3YVC 08EAfCy5AqxmVA95RPs16syf/R5rrT8GW4Ggw0I/JNegvpfFeOhlzjoALz/cbLFDx8QE dgiAcP/SXeWUt1UqAOGxv8Zd5yveN7r3Rn07kKPa0fkA9fs1mFytwA2FgQHmnVpQ+NTI H2ykBbvGSaOeR+sFiu6abipkqH1i+b+qOv5UtnkAc5g0gcl6REEOtmKEzmrFIOTfsxCY FCul4Lrq+Oh/CyOvu2bMQnSI/CDdklqLpQqyCmdW3fotHeIG8JgjBtFWOoXnk/BColjS COxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yF6HRjhXWE0qIJaupuTLu+ch5GAtFS54usYa6P//1x4=; b=d2B62l8cM1R1aXyELbhWVD4JQxFoa+pulBv8nGRPcb4O3aSBK36y6qxRJ+X8xga2Zt ZPqF158LZ49zVB+WVHmu8NBbGkAY2LpMP5DVTHtYthbLqpl/UIp1JkfwMbgyagNfSCzG J6RSPe4qv+EYSjZTLICPiCIupTOA3VK0pkCFmhDJycDZ5KLTY2UNyRv9YclB3PLpAx6C UxQPkWQz5LSnt2Y2qGcs9qTBMr3m+VfdUS0K+0iesmX8ODY6yBUjxysLynbbDl2G92Kp 53zJ4nZayhYDVjh6gyS9gze1FafABiaCJ3ZwCxrLv4Ray42gGBbxcBz4RwUvSMwAvB7t iVZA== X-Gm-Message-State: APjAAAUPCzLFzS45x2yKXFo0rlVaWRT71DFjGt6bevc/nkZTXufvMjTK UQ14vbxwOSE8wV7hEXJuivnHq/AmEJeYm+AH6NI= X-Google-Smtp-Source: APXvYqyDzRhtMh/zmx/Az/alkcXkCboHVuOmyrZy5/LofE1Z1h0bKYizslG+Cr0dIhnDy6xRXmTfPwzTgrBihpj/r0o= X-Received: by 2002:adf:f7c2:: with SMTP id a2mr24329020wrq.242.1554846574264; Tue, 09 Apr 2019 14:49:34 -0700 (PDT) In-Reply-To: <20190409070438.GI846@smoon.vl-lomov.ru> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103901 Archived-At: --===============2493124854482060925== Content-Type: multipart/alternative; boundary="000000000000bd433905861fed2c" --000000000000bd433905861fed2c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vladimir, This seems to work well : ################################ (eval-after-load "context" '(setq TeX-command-list (append '( ("context" "PATH=3D/home/viserion/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (MarkIV)") ("luametatex" "PATH=3D/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (LMTX)") ) TeX-command-list ) ) ) ################################ Thank you so much. Fabrice Le mar. 9 avr. 2019 =C3=A0 09:04, Vladimir Lomov a =C3= =A9crit : > Hello, > ** Fabrice Couvreur [2019-04-09 00:58:46 +0200]: > > > Hi Vladimir, > > I use AUCTeX and I compile with the command C-c C-c. The configuration > you > > proposed for my .emacs file last time works perfectly. So I tried to do > the > > same thing with context lmtx and if I add this > > > > ("ConTeXt" "PATH =3D /home/viserion/data/context/tex/texmf-linux-64/bin= : $ > > PATH context --purgeall% s" > > TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list= ) > > I get the message > > > > For information about GNU Emacs and the GNU system, type C-h C-a. > > File mode specification error: (wrong-type-argument symbolp (ConTeXt > PATH =3D > > / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH > > context -purgeall% s TeX-run-command nil t : help Run context (LMTX))) > > This message tells that something wrong with your settings (I assume the > spaces in above strings are side effect of mail system). The 'cons' > function that you use allows to add only one element to a list (see > Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp > but tested a bit and think this should work: > > -------------------------------- 8< ------------------------------------ > (eval-after-load "context" > '(setq TeX-command-list > (append > '( > ("ConTeXt" "PATH=3D...:$PATH context --purgeall %s" > TeX-run-command nil t :help "Run context (MarkIV)") > ("LMTX" "PATH=3D...:$PATH context --purgeall %s" > TeX-run-command t t :help "Run context (LMTX)") > ) TeX-command-list > ) > ) > ) > -------------------------------- 8< ------------------------------------ > > I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses > 'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead > of 'TeX-run-command'. Also you may change the 'nil t' to 't > (context-mode)' if you what to edit (expanded) string and only want to > see these entries for buffers set in 'context' mode. > > And please check the binary name and it's location (I didn't play with > LMTX yet). > > > Fabrice > > --- > WBR, Vladimir Lomov > > -- > Anyone here knowledgable in matters of water fowl? If you > walk through a park, and a goose starts following you... and > ends up following you more than half a mile until you reach > your car... at 11pm. Is the goose rabid or something? > --000000000000bd433905861fed2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Vladimir,
This = seems to work well :

=
################################
(eval-after-load "context"
=C2=A0 '(setq TeX-command-lis= t
=C2=A0=C2=A0=C2=A0 (append
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("context" "PATH= =3D/home/viserion/context/tex/texmf-linux-64/bin:$PATH context --purgeall %= s"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TeX-run-c= ommand nil t :help "Run context (MarkIV)")
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ("luametatex" "PATH=3D/home/viserio= n/data/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s"
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TeX-run-command nil = t :help "Run context (LMTX)")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )= TeX-command-list
=C2=A0=C2=A0=C2=A0 )
=C2=A0 )
)
################################
=

Thank you so mu= ch.
Fabrice

=
Le=C2= =A0mar. 9 avr. 2019 =C3=A0=C2=A009:04, Vladimir Lomov <lomov.vl@yandex.ru> a =C3=A9crit=C2=A0:
Hello,
** Fabrice Couvreur [2019-04-09 00:58:46 +0200]:

> Hi Vladimir,
> I use AUCTeX and I compile with the command C-c C-c. The configuration= you
> proposed for my .emacs file last time works perfectly. So I tried to d= o the
> same thing with context lmtx and if I add this
>
> ("ConTeXt" "PATH =3D /home/viserion/data/context/tex/te= xmf-linux-64/bin: $
> PATH context --purgeall% s"
>=C2=A0 =C2=A0 =C2=A0 TeX-run-command nil t: help "Run context (LMT= X)") TeX-command-list)
> I get the message
>
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt P= ATH =3D
> / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PAT= H
> context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))=

This message tells that something wrong with your settings (I assume the spaces in above strings are side effect of mail system). The 'cons'=
function that you use allows to add only one element to a list (see
Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp but tested a bit and think this should work:

-------------------------------- 8< ------------------------------------=
(eval-after-load "context"
=C2=A0 '(setq TeX-command-list
=C2=A0 =C2=A0 (append
=C2=A0 =C2=A0 =C2=A0 '(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("ConTeXt" "PATH=3D...:$PATH con= text --purgeall %s"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TeX-run-command nil t :help "Run co= ntext (MarkIV)")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("LMTX"=C2=A0 =C2=A0 "PATH=3D...= :$PATH context --purgeall %s"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TeX-run-command t=C2=A0 =C2=A0t :help &q= uot;Run context (LMTX)")
=C2=A0 =C2=A0 =C2=A0 ) TeX-command-list
=C2=A0 =C2=A0 )
=C2=A0 )
)
-------------------------------- 8< ------------------------------------=

I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX= uses
'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX= ' instead
of 'TeX-run-command'. Also you may change the 'nil t' to &#= 39;t
(context-mode)' if you what to edit (expanded) string and only want to<= br> see these entries for buffers set in 'context' mode.

And please check the binary name and it's location (I didn't play w= ith
LMTX yet).

> Fabrice

---
WBR, Vladimir Lomov

--
<Flimsy> Anyone here knowledgable in matters of water fowl?=C2=A0 If = you
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0walk through a park, and a goose starts f= ollowing you... and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ends up following you more than half a mi= le until you reach
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0your car... at 11pm.=C2=A0 Is the goose r= abid or something?
--000000000000bd433905861fed2c-- --===============2493124854482060925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2493124854482060925==--