From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101749 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Emacs + latest beta Date: Wed, 29 Aug 2018 11:39:07 +0200 Message-ID: References: <20180824022059.GC762@smoon.vl-lomov.ru> <20180824134827.GD762@smoon.vl-lomov.ru> <20180827040728.GF762@smoon.vl-lomov.ru> <20180828055731.GG762@smoon.vl-lomov.ru> <20180829025817.GH762@smoon.vl-lomov.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2974756867788834265==" X-Trace: blaine.gmane.org 1535535475 26440 195.159.176.226 (29 Aug 2018 09:37:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2018 09:37:55 +0000 (UTC) To: mailing list for ConTeXt users , lomov.vl@yandex.ru Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 29 11:37:51 2018 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 esmtp (Exim 4.84_2) (envelope-from ) id 1fuwv2-0006cP-W3 for gctc-ntg-context-518@m.gmane.org; Wed, 29 Aug 2018 11:37:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 26C6F59D19; Wed, 29 Aug 2018 11:39:34 +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 PUhh5vp9pbdk; Wed, 29 Aug 2018 11:39:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5071559D39; Wed, 29 Aug 2018 11:39:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 984C559D48 for ; Wed, 29 Aug 2018 11:39:31 +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 ufDj21CGnP1l for ; Wed, 29 Aug 2018 11:39:30 +0200 (CEST) Original-Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.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 B3B24561B2 for ; Wed, 29 Aug 2018 11:39:20 +0200 (CEST) Original-Received: by mail-wm0-f48.google.com with SMTP id j192-v6so4826604wmj.1 for ; Wed, 29 Aug 2018 02:39:20 -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=gpH/OfNdDeNuOhmiVFYLJZ+H4z22TXLaU4GoT1ySwR4=; b=lX2uxmo9BOjR5NMuh1GIoGK7vor33IxtUn13/ybHkseIt8f0XNvPrnBDamXO3KTE92 J42GBCqE8Yv2LXwII01UQ7YUUb4nm2PUe9HPdpicWGJYBmr1kR8txAfbN6hl+jRn3NiI 0E3l7WA7ELYhfEcSAlfrxbv4dBMKb88jA95hKmwiLty/ZGQEwNIwOOdGBE+KsMFPTr4+ o7wF3q548cZnaqLg/MdGsAU54ozXq/VEFqgqcBOd7Y6danO7WlNj830IFluuWshIkEV7 DHE+UF6euqbYDZHTVL3Un/JgZzLgj/tI22j5YEgK1IhrNvNHhAUpFz1PbThf2SUV+Q3b dsNA== 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=gpH/OfNdDeNuOhmiVFYLJZ+H4z22TXLaU4GoT1ySwR4=; b=eIzg9sStXFKyJBroV/oGkzwPK2lwZiEw6ZeE6CxHtcQ/sSOw01ObFk+WTiW0jLUn0C XCmUb0L7ahkXOlaFuZ1EaFI4Q7jMP6RzHzNsVb+idl9YKuEZXc4esOqK/kM+MHNm20nC NgEsZIJukRiVI9vzAZhlbpCcvjTlbWgrWJrgM+g0kh2yLUaMsE+g4/a3fShCtWDWAKMk dmJNxbKGcIPgZ8IdXW8Orq/ZXx1Q1OipVRzTDT9nQMQcow6EXYqPQ4lW2yH520Dp1CTB ZabUydYDdQ+mDF2RhPWol2673cwtAivb+tM6Hj7OR/Q9yxFeIjcJP/sja8OROBFzxcul Di/A== X-Gm-Message-State: APzg51Aau1zStz7hl0mm8RtVZDIDNLH4Sq/SiwQp8b6tEcsOQ8JGD9fN nGLjozQ2A4y3qS19FNRn8egkLckip/fBXufUrOq7v5Y4 X-Google-Smtp-Source: ANB0VdYYdLGC4rS+1tYwSPJaJajDALGU99oGHM4RVBG1ED7xxeUUsHI8thQMsNHrd4sZ9Ex8JbZl2eydy3DBFiydT94= X-Received: by 2002:a1c:1c95:: with SMTP id c143-v6mr3547169wmc.147.1535535560007; Wed, 29 Aug 2018 02:39:20 -0700 (PDT) In-Reply-To: <20180829025817.GH762@smoon.vl-lomov.ru> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:101749 Archived-At: --===============2974756867788834265== Content-Type: multipart/alternative; boundary="0000000000009826e305748fbb50" --0000000000009826e305748fbb50 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Before considering modifications, here's what I get when I do which context : Setting "/home/aragorn/context/tex" as ConTeXt root. [aragorn@fab ~]$ which context /home/aragorn/context/tex/texmf-linux-64/bin/context [aragorn@fab ~]$ $ pacman -Qs texlive > [root@fab aragorn]# pacman -Qs texlive [root@fab aragorn]# $ pacman -Qs emacs > [root@fab aragorn]# pacman -Qs emacs local/emacs 26.1-2 The extensible, customizable, self-documenting real-time display editor local/emacs-python-mode 6.2.3-1 Python mode for Emacs [root@fab aragorn]# you mentioned that commands run in terminal worked fine, but you > invoked them by full path; > To be able to test with the texlive context binary and context standalone context binary . The next in the next message after restarting my PC ... Fabrice Le mer. 29 ao=C3=BBt 2018 =C3=A0 04:58, Vladimir Lomov = a =C3=A9crit : > Hello, > ** Fabrice Couvreur [2018-08-28 11:18:58 +0200]: > > > Hi Vladimir, > > > I do not use Arch Linux repositories to install texlive 2018 packages > > Some texlive-* packages could be installed as dependencies of other > packages. You may check if your system has any texlive package: > > $ pacman -Qs texlive > > > but I installed texlive 2018 "scheme-full" with tlmgr -gui in > > /home/aragorn /texlive/2018. I then make regular updates in the same > > way. No texlive traces in the \usr\share\ directory or elsewhere. > > I prefer to rely on package manager. > > > Standalone Context is also installed in my home directory. However, > > Emacs is installed from the Arch Linux repositories and is located in > > /usr/share/emacs. > > $ pacman -Qs emacs > > > So I have to add the path of texlive 2018 ? > > Maybe you do not need to add the Context Standalone path ? > > My ~/.profile file would be this : > > > > source /home/aragorn/context/tex/setuptex > > export PATH =3D $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux > > export PATH =3D $ PATH: /home/aragorn /bin > > This part is a bit strange: > - in message > https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html > you mentioned that commands run in terminal worked fine, but you > invoked them by full path; > > - in the same message you set PATH in emacs as > > (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" = t) > > (I have to admit that I didn't know it is possible to use '$PATH' in > setenv), so it prepends path to context binary to PATH list. The above > lines do opposite: they append path to context binary to the end of > PATH list. > > The first line, 'source ...', helps here because 'setuptex' in turns > prepend path to context binary to PATH. > > When you invoke 'context' in terminal (I assume it is bash shell) the > shell searches program in current directory (depends on configuration) > and then in PATH, the first wins. So to use context from ConTeXt > standalone you may simply do > > $ export PATH=3D$HOME/context/tex/texmf-linux-64/bin:$PATH > > either in terminal or in ~/.profile. You may always check if this is > true by runnig > > $ command -v context > > (for bash shell) or > > $ which context > > Returning to your problem. I looked closely again in messages with > output from context and I don't understand what may cause the error. > Seems that Emacs uses correct context (according to loading files). > Could you show in full your ~/.emacs file? Do you use AUCTeX or bare > Emacs? > > > Regards, > > Fabrice > > > > [...] > > --- > WBR, Vladimir Lomov > > > -- > Uncontrolled power will turn even saints into savages. And we can all > be counted on to live down to our lowest impulses. > -- Parmen, "Plato's Stepchildren", stardate 5784.3 > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ --0000000000009826e305748fbb50 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
Before considering modifications, here's what= I get when I do which co= ntext :

= Setting &qu= ot;/home/aragorn/context/tex" as ConTeXt root.
[aragorn@fab ~]$ whi= ch context
/home/aragorn/context/tex/texmf-linux-64/bin/context
[arag= orn@fab ~]$


$ pacman -Qs t= exlive

=C2=A0[root@fab aragorn]# pacman -Qs texl= ive
[root@fab aragorn]#

$ pacman -Qs emacs

=C2=A0[root@fab aragorn]# pacman -Qs emac= s
local/emacs 26.1-2
=C2=A0=C2=A0=C2=A0 The extensib= le, customizable, self-documenting real-time display editor
=
local/emacs-python-mode 6.2.3-1
=C2=A0=C2=A0=C2=A0 Python mode fo= r Emacs
[root@fab aragorn]#

you mentioned that commands= run in terminal worked fine, but you
=C2=A0 invoked them by full path;

=C2= =A0
To be able to test with the
texlive co= ntext binary and context standalone context binary
.


The next in the next messa= ge after restarting my PC ...

Fabrice
=C2=A0

Le=C2=A0mer. 29 ao=C3=BBt 2018 =C3=A0=C2=A004:58, Vladimir Lomov <lomov.vl@yandex.ru> a =C3=A9crit= =C2=A0:
Hello,
** Fabrice Couvreur [2018-08-28 11:18:58 +0200]:

> Hi Vladimir,

> I do not use Arch Linux repositories to install=C2=A0 texlive 2018 pac= kages

Some texlive-* packages could be installed as dependencies of other
packages. You may check if your system has any texlive package:

=C2=A0 $ pacman -Qs texlive

> but I installed texlive 2018 "scheme-full" with tlmgr -gui= =C2=A0 in
> /home/aragorn /texlive/2018.=C2=A0 I then make regular updates in the = same
> way. No texlive traces in the \usr\share\ directory or elsewhere.

I prefer to rely on package manager.

> Standalone Context is also installed in my home directory. However, > Emacs is installed from the Arch Linux repositories and is located in<= br> > /usr/share/emacs.

=C2=A0 $ pacman -Qs emacs

> So I have to add the path of texlive 2018 ?
> Maybe you do not need to add the Context Standalone path ?
> My ~/.profile file would be this :
>
> source /home/aragorn/context/tex/setuptex
> export PATH =3D $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux > export PATH =3D $ PATH: /home/aragorn /bin

This part is a bit strange:
- in message
=C2=A0 https://mailman.ntg.nl/pipermail= /ntg-context/2018/092418.html
=C2=A0 you mentioned that commands run in terminal worked fine, but you
=C2=A0 invoked them by full path;

- in the same message you set PATH in emacs as

=C2=A0 =C2=A0 (setenv "PATH" "/home/aragorn/context/tex/texm= f-linux-64/bin/:$PATH" t)

=C2=A0 (I have to admit that I didn't know it is possible to use '$= PATH' in
=C2=A0 setenv), so it prepends path to context binary to PATH list. The abo= ve
=C2=A0 lines do opposite: they append path to context binary to the end of<= br> =C2=A0 PATH list.

=C2=A0 The first line, 'source ...', helps here because 'setupt= ex' in turns
=C2=A0 prepend path to context binary to PATH.

When you invoke 'context' in terminal (I assume it is bash shell) t= he
shell searches program in current directory (depends on configuration)
and then in PATH, the first wins. So to use context from ConTeXt
standalone you may simply do

=C2=A0 $ export PATH=3D$HOME/context/tex/texmf-linux-64/bin:$PATH

either in terminal or in ~/.profile. You may always check if this is
true by runnig

=C2=A0 $ command -v context

(for bash shell) or

=C2=A0 $ which context

Returning to your problem. I looked closely again in messages with
output from context and I don't understand what may cause the error. Seems that Emacs uses correct context (according to loading files).
Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
Emacs?

> Regards,
> Fabrice
>

[...]

---
WBR, Vladimir Lomov


--
Uncontrolled power will turn even saints into savages.=C2=A0 And we can all=
be counted on to live down to our lowest impulses.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- Parmen, "Pl= ato's Stepchildren", stardate 5784.3
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000009826e305748fbb50-- --===============2974756867788834265== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2974756867788834265==--