From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103896 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: Emacs with context lmtx Date: Tue, 9 Apr 2019 15:04:38 +0800 Message-ID: <20190409070438.GI846@smoon.vl-lomov.ru> References: <20190408115424.GG846@smoon.vl-lomov.ru> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5649443599055012048==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="165531"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.4 (2019-03-13) Cc: mailing list for ConTeXt users To: Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 09 09:11:19 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 1hDkuc-000gu3-Cp for gctc-ntg-context-518@m.gmane.org; Tue, 09 Apr 2019 09:11:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 81B0A118EB8; Tue, 9 Apr 2019 09:10:47 +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 yXesl31Xawey; Tue, 9 Apr 2019 09:10:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73469118EB9; Tue, 9 Apr 2019 09:10:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 83864118EB5 for ; Tue, 9 Apr 2019 09:10:44 +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 j_HbVaALb47q for ; Tue, 9 Apr 2019 09:10:43 +0200 (CEST) X-Greylist: delayed 361 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 09 Apr 2019 09:10:43 CEST Original-Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BE899118E90 for ; Tue, 9 Apr 2019 09:10:43 +0200 (CEST) Original-Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward101o.mail.yandex.net (Yandex) with ESMTP id B06683C01765; Tue, 9 Apr 2019 10:04:40 +0300 (MSK) Original-Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pM0h38Zr3f-4eYS4ZLu; Tue, 09 Apr 2019 10:04:40 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554793480; bh=Q8e9I3ZU66Lpm99wXS4+fgN5pR40PzCj1p3ZY4sB5vw=; h=In-Reply-To:Subject:Cc:To:From:References:Date:Message-ID; b=T07ux1o6egidMuTmIHBAe/i0k6VWdFxPy4Dd3hpHm0BHyrkhcv6aEzAMLSY7oBkDH 59Nf3TllxFr3fouMIxuTa2eTPR/myyPj7sYUlJWhhxbijTNOzV2+nlbQdQ6Rc67v4e N7ns+hP3BcMFN7MWSePX2pgPNuhlD/CrQ9qPS+8I= Authentication-Results: mxback20j.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qmP0eS3mha-4dlecata; Tue, 09 Apr 2019 10:04:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Original-Received: by smoon.vl-lomov.ru (Postfix, from userid 1000) id 44ddZZ6R8wz3hj3x; Tue, 9 Apr 2019 15:04:38 +0800 (+08) Mail-Followup-To: Vladimir Lomov , Fabrice Couvreur , mailing list for ConTeXt users In-Reply-To: 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:103896 Archived-At: --===============5649443599055012048== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ONvqYzh+7ST5RsLk" Content-Disposition: inline --ONvqYzh+7ST5RsLk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 t= he > same thing with context lmtx and if I add this >=20 > ("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 >=20 > 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 --=20 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? --ONvqYzh+7ST5RsLk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCXKxD8wAKCRAHGfInzJc4 BW7dAP99EIdmXYKf9gT+WzP26sDpYwjuTuc5g50ZkFDK5IoUHwD8CRoAAn4aGyqG Lzc+8hB4UrODFjuajZxZJRK3WJ6vFwk= =osi8 -----END PGP SIGNATURE----- --ONvqYzh+7ST5RsLk-- --===============5649443599055012048== 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== --===============5649443599055012048==--