I tested the file and conTeXt works well from emacs. The problem seems to be related with your conTeXt standalone installation. when the file is compiled, emacs create a log buffer  *... output*.  You could post that information to look the possible error.

Have you tried reinstalling conTeXt?

attached test.pdf


On 07/31/2018 04:43 AM, Fabrice Couvreur wrote:
With (setenv "PATH" "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t)  It works properly with C-c C-c


With (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does not work with C-c C-c

The compilation is however correct by using a terminal without Emacs from the standalone version
Fabrice

2018-07-31 10:18 GMT+02:00 Fabrice Couvreur <fabrice1.couvreur@gmail.com>:
Hello,
I did the same thing as you, but nothing changes. Have you tested the file? The expected result is to have the title of the chapter with the chapter number in large and light gray color. All compiles except the macro that allows to have the chapter number; I get a small rectangle instead.
Fabrice


2018-07-30 16:02 GMT+02:00 Lizardo Reyna <farliz@disroot.org>:

I had a similar issue in emacs few months ago. I use an Ubuntu based
GNU/Linux distribution.

 My solution was start a new terminal to execute the commands in .bashrc
file. When it works, a message will appear in the top of the terminal.
"Setting "/home/farliz/context/tex" as ConTeXt root."

Then execute emacs from that terminal typing  $ emacs &. This was the
only way I got run conTeXt from emacs.

I'm not advanced GNU/Linux  user, but there are three configuration
files when login; .bashrc, .bash_profile, and .profile. I don't know why
this files were not execute automatically when I login, so the path to
conTeXt bin is not added and setuptex file is not execute. For this
reason it was necessary to start a new terminal.

I have my system upgraded and now I don't have problem with that.

Regards


On 30/07/18 05:45, Fabrice Couvreur wrote:
> Hi,
> I made the changes that you recommend, but it does not work
>
> ./emacs
>
>
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(ConTeXt-Mark-version "IV")
>  '(ConTeXt-engine "luatex")
>  '(custom-enabled-themes (quote (leuven)))
>  '(package-selected-packages (quote (nova-theme auctex))))
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
>
> ;; SERVER Download (MELPA):
> (when (>= emacs-major-version 24)
>   (require 'package)
>   (add-to-list
>    'package-archives
>    '("melpa" . "http://melpa.org/packages/")
>    t)
>   (package-initialize))
>
> ;;(setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
>
>
> (setq ConTeXt-mode-hook
>       (lambda () (setq TeX-command-extra-options "--purgeall")))
>
> (setq-default cursor-type 'bar)
>
> (set-cursor-color "#ff0000")
>
>
> (setq TeX-view-program-list '(("Evince" "evince %o"))
>       TeX-view-program-selection '((output-pdf "Evince")))
>
> (setq make-backup-files nil) ; stop creating backup~ files
> (setq auto-save-default nil) ; stop creating #autosave# files
>
> ;; auto close bracket insertion. New in emacs 24
> (electric-pair-mode 1)
>
> ;; turn on highlight matching brackets when cursor is on one
> (show-paren-mode 1)
>
>
> (setq inhibit-startup-screen t)
>
>
> ./bashrc
>
> export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin
> source ~/context/tex/setuptex
> export TEXROOT=/home/aragorn/context/tex
> export PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux
>
>
>
>
> 2018-07-30 4:16 GMT+02:00 Lizardo M. Reyna Bowen <farliz@disroot.org
> <mailto:farliz@disroot.org>>:
>
>     I understand that you can not compile the document with C-c C-c in
>     Emacs.
>
>     I have the following setup of my .bashrc and .init files.
>
>     BASH:
>
>     export PATH=$PATH:/home/farliz/context/tex/texmf-linux-64/bin
>     source ~/context/tex/setuptex
>     export OSFONTDIR="~/.fonts"
>     export TEXROOT=~/context/tex
>
>
>     EMACS:
>
>     (custom-set-variables
>      '(ConTeXt-Mark-version "IV")
>      '(ConTeXt-engine "luatex"))
>
>     Using this setup I compile all documents with C-c C-c (AucTex mode).
>
>
>     Cheers
>
>     --
>
>     Dr. Lizardo M. Reyna Bowen
>     Docente
>     Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí
>     [Dirección]  Lodana, Santa Ana, Manabí, Ecuador
>     [Móvil]  +593  982924637
>     PGP Key: 0xa35a15b90ee64e8d
>
>
>

--
Dr. Lizardo M. Reyna Bowen
Profesor
Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí
[Dirección]  Lodana, Santa Ana, Manabí, Ecuador
[Móvil]  +593  982924637
PGP Key: 0xa35a15b90ee64e8d




-- 
Dr. Lizardo M. Reyna Bowen
Docente
Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí
[Dirección]  Lodana, Santa Ana, Manabí, Ecuador
[Móvil]  +593  982924637
PGP Key: 0xa35a15b90ee64e8d