ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Emacs with context lmtx
@ 2019-04-08 10:08 Fabrice Couvreur
  2019-04-08 11:54 ` Vladimir Lomov
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-08 10:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1000 bytes --]

Hi,
I compile all my files with Emacs and standalone context. I would like to
compare context lmtx.
I added this in my .emacs file but it does not work.

#############################################################################
(eval-after-load "context"
  '(setq TeX-command-list
       (cons '("ConTeXt"
"PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
        TeX-run-command nil t :help "Run context (MarkIV)")
TeX-command-list)
       ("ConTeXt"
"PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
        TeX-run-command t t :help "Run context (LMTX)") t)
)
#############################################################################


For information about GNU Emacs and the GNU system, type C-h C-a.
File mode specification error: (wrong-type-argument symbolp (ConTeXt
PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s TeX-run-command t t :help Run context (LMTX)))

Thank you.
Fabrice

[-- Attachment #1.2: Type: text/html, Size: 3173 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs with context lmtx
  2019-04-08 10:08 Emacs with context lmtx Fabrice Couvreur
@ 2019-04-08 11:54 ` Vladimir Lomov
  2019-04-08 22:58   ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Lomov @ 2019-04-08 11:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1522 bytes --]

Hello,
** Fabrice Couvreur [2019-04-08 12:08:44 +0200]:

> Hi,
> I compile all my files with Emacs and standalone context. I would like to
> compare context lmtx.
> I added this in my .emacs file but it does not work.

Does Emacs prints error messages? How do you run the command in Emacs?
Do you use AUCTeX or not? What messages do you see in *Messages* buffer?

> #############################################################################
> (eval-after-load "context"
>   '(setq TeX-command-list
>        (cons '("ConTeXt"
> "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
>         TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list)
>        ("ConTeXt"
> "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
>         TeX-run-command t t :help "Run context (LMTX)") t)
> )
> #############################################################################
> 
> 
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt
> PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s TeX-run-command t t :help Run context (LMTX)))
> 
> Thank you.
> Fabrice

P.S. I didn't try lmtx yet, on my agenda.

P.P.S. It might be more useful to discuss this topic on AUCTeX mailing
list if you use AUCTeX.

---
WBR, Vladimir Lomov

-- 
Nothing recedes like success.
		-- Walter Winchell

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs with context lmtx
  2019-04-08 11:54 ` Vladimir Lomov
@ 2019-04-08 22:58   ` Fabrice Couvreur
  2019-04-09  7:04     ` Vladimir Lomov
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-08 22:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Vladimir Lomov


[-- Attachment #1.1: Type: text/plain, Size: 2951 bytes --]

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 = /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 =
/ home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH
context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))

Fabrice

Le lun. 8 avr. 2019 à 14:01, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2019-04-08 12:08:44 +0200]:
>
> > Hi,
> > I compile all my files with Emacs and standalone context. I would like to
> > compare context lmtx.
> > I added this in my .emacs file but it does not work.
>
> Does Emacs prints error messages? How do you run the command in Emacs?
> Do you use AUCTeX or not? What messages do you see in *Messages* buffer?
>
> >
> #############################################################################
> > (eval-after-load "context"
> >   '(setq TeX-command-list
> >        (cons '("ConTeXt"
> > "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s"
> >         TeX-run-command nil t :help "Run context (MarkIV)")
> > TeX-command-list)
> >        ("ConTeXt"
> > "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s"
> >         TeX-run-command t t :help "Run context (LMTX)") t)
> > )
> >
> #############################################################################
> >
> >
> > For information about GNU Emacs and the GNU system, type C-h C-a.
> > File mode specification error: (wrong-type-argument symbolp (ConTeXt
> > PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s TeX-run-command t t :help Run context (LMTX)))
> >
> > Thank you.
> > Fabrice
>
> P.S. I didn't try lmtx yet, on my agenda.
>
> P.P.S. It might be more useful to discuss this topic on AUCTeX mailing
> list if you use AUCTeX.
>
> ---
> WBR, Vladimir Lomov
>
> --
> Nothing recedes like success.
>                 -- Walter Winchell
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 4747 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs with context lmtx
  2019-04-08 22:58   ` Fabrice Couvreur
@ 2019-04-09  7:04     ` Vladimir Lomov
  2019-04-09 21:47       ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Lomov @ 2019-04-09  7:04 UTC (permalink / raw)
  To: Fabrice Couvreur; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2376 bytes --]

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 = /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 =
> / 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=...:$PATH context --purgeall %s"
          TeX-run-command nil t :help "Run context (MarkIV)")
        ("LMTX"    "PATH=...:$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

-- 
<Flimsy> 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?

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs with context lmtx
  2019-04-09  7:04     ` Vladimir Lomov
@ 2019-04-09 21:47       ` Fabrice Couvreur
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-09 21:47 UTC (permalink / raw)
  To: Vladimir Lomov, Fabrice Couvreur, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3178 bytes --]

Hi Vladimir,
This seems to work well :

################################
(eval-after-load "context"
  '(setq TeX-command-list
    (append
      '(
        ("context"
"PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
          TeX-run-command nil t :help "Run context (MarkIV)")
        ("luametatex"
"PATH=/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 à 09:04, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> 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 = /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 =
> > / 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=...:$PATH context --purgeall %s"
>           TeX-run-command nil t :help "Run context (MarkIV)")
>         ("LMTX"    "PATH=...:$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
>
> --
> <Flimsy> 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?
>

[-- Attachment #1.2: Type: text/html, Size: 5568 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-09 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 10:08 Emacs with context lmtx Fabrice Couvreur
2019-04-08 11:54 ` Vladimir Lomov
2019-04-08 22:58   ` Fabrice Couvreur
2019-04-09  7:04     ` Vladimir Lomov
2019-04-09 21:47       ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).