ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: emacs
Date: Thu, 23 Oct 2008 23:08:20 +0200	[thread overview]
Message-ID: <20081023210820.GA20122@gaston.couberia.bzh> (raw)
In-Reply-To: <20081022061808.GA21389@atos.labs.wmid.amu.edu.pl>

On Wed, Oct 22 2008, Marcin Borkowski wrote:

> > What are the problems with emacs?
> 
> Here is the (unordered) list of what I remember at the moment.
> 
> * It almost never knows when to launch "View"; it almost always offers
>   me to "ConTeXt" the file.

Hello Marcin,

Right, this is a bug. I could make a bug report for that issue.
I haven't done this before, because I don't really need this feature:
- I open a ConTeXt file
- then I begin with the View command to open an xpdf window
- then I only need ConTeXt commands, that refresh automatically the xpdf
  window (C-c C-c return)

Customization code for TeX-command-list:
("ConTeXt" "context --once --nonstopmode %t; xpdfcheck \"%s\" &&
 xpdf -remote \"%s\" -reload" TeX-run-TeX nil (context-mode) :help
 "Run ConTeXt once") ("ConTeXt Full" "context --nonstopmode %t;
 xpdfcheck \"%s\" && xpdf -remote \"%s\" -reload" TeX-run-TeX nil
 (context-mode) :help "Run ConTeXt until completion")

This is xpdfcheck.c :

#include <stdio.h>
#include <X11/Xlib.h>
int main(int argc, char *argv[])
{
	Display *display;
	Atom remoteAtom;
	char remoteName[256];
	if(argc != 2){
		fprintf(stderr, "Usage: %s <remote-name>\n", argv[0]);
		return 1;
	}
	snprintf(remoteName, sizeof(remoteName), "xpdf_%s", argv[1]);
	if(!(display = XOpenDisplay(NULL)))
		return 1;
	remoteAtom = XInternAtom(display, remoteName, False);
	return !XGetSelectionOwner(display, remoteAtom);
}


> * (This is probably related to the previous one.)  When finished
>   compilation, it says "ConTeXt: problems after {1} page." or something
>   like this.

Indeed, this should be mentioned in the bug report.


> * When finding files, it offers me to find not only the .tex file, but
>   also all the .tui, .tuo stuff etc. by default, which is rather
>   inconvenient.

(setq completion-ignored-extensions
  (append completion-ignored-extensions '(".tui" ".tuo")))


> * It has no idea about most of ConTeXt commands, e.g., it tries to
>   insert {} after ConTeXt commands put by C-c C-m.

Don't know about this one, I just type the command (often with the help of
"dabbrev-expand").


> * Unlike when editing LaTeX files, it does not insert an \item when
>   doing C-c C-e itemize.  I use itemizations a lot and this is a bit
>   annoying, especially that I got used to its behaior when doing LaTeX.
>   Also, having C-c C-j asking about the (optional) label all the time is
>   also tiring, I would prefer to be asked for it only with C-u C-c C-j.

This is also annoying to me. I'll try to solve this, should no be too
complicated I think (only problem I have, is no spare time, just like
you...).


> * By default, being in dvi or pdf mode doesn't matter: you always end up
>   with a pdf file.  This is fine when you have a fast computer, but on
>   low-end, older ones (like mine;)) xdvi is *a lot* faster than xpdf.

Start xpdf just once, then use only "xpdf -reload". Besides, there are more
and more issues with dvi, since it's no more supported by ConTeXt (clipping
of figures, protrusion with TTF and perhaps a lot more). So I consider dvi
as obsolete.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2008-10-23 21:08 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 17:56 PhD Thesis in ConTeXt Piotr
2008-10-21 18:58 ` Jeff Smith
2008-10-21 19:35 ` Henning Hraban Ramm
2008-10-21 20:32   ` Diego Depaoli
2008-10-21 22:46 ` Marcin Borkowski
2008-10-22  5:31   ` emacs (was: Re: PhD Thesis in ConTeXt) Peter Münster
2008-10-22  6:18     ` Marcin Borkowski
2008-10-22 10:50       ` emacs Gour
2008-10-23 21:08       ` Peter Münster [this message]
2008-10-23 22:46         ` emacs Marcin Borkowski
2009-02-05 15:06           ` emacs Peter Münster
2009-02-05 15:19             ` emacs luigi scarso
2009-02-05 19:15               ` emacs Peter Münster
2009-02-11 15:35             ` local footnotes Albrecht Kauffmann
2009-02-13 14:44               ` Thomas Floeren
2009-02-20  8:17               ` Albrecht Kauffmann
2009-02-20 10:28                 ` Thomas Floeren
2009-02-24  7:37                   ` Albrecht Kauffmann
2009-02-26 19:28                   ` rulethickness in columns Albrecht Kauffmann
2009-03-01 18:26                     ` Mojca Miklavec
2009-03-01 18:45                       ` Hans Hagen
2009-03-02 10:19                       ` Wolfgang Schuster
2009-03-02 10:41                         ` Hans Hagen
2009-03-03  1:25                           ` Wolfgang Schuster
2009-03-03 18:04                             ` Wolfgang Schuster
2009-03-03 18:26                               ` Hans Hagen
2009-03-03 18:44                                 ` Wolfgang Schuster
2009-03-03 18:29                               ` Hans Hagen
2009-03-03 18:50                                 ` Wolfgang Schuster
2009-03-02 14:31                     ` Mojca Miklavec
2009-03-02 14:58                       ` Peter Rolf
2008-10-22  1:24 ` PhD Thesis in ConTeXt Mojca Miklavec
2008-10-22  3:10 ` Aditya Mahajan
2008-10-22  5:41   ` Alan BRASLAU
2008-10-28  1:29   ` Mohamed Bana
2008-10-28 15:20     ` Aditya Mahajan
2008-10-22  7:13 ` Stephen A. Tjemkes
2008-10-22  8:18   ` Steffen Wolfrum
2008-10-22 12:45     ` John Devereux
2008-10-22 18:53       ` Peter Münster
2008-10-22 20:52   ` Alan BRASLAU
2008-10-22 21:25     ` Aditya Mahajan
2008-10-23 14:37       ` Taco Hoekwater
2008-10-23 14:54         ` John Devereux
2008-10-23 15:38           ` Documentation (Re: PhD Thesis in ConTeXt) Taco Hoekwater
2008-10-23 18:09             ` Rory Molinari
2008-10-23 22:30             ` Marcin Borkowski
2008-10-24  7:18               ` luigi scarso
2008-10-23 21:27         ` documentation, was PhD Thesis in ConTeXt Alan BRASLAU
2008-10-23 22:21         ` Marcin Borkowski
     [not found] <3.0.5.32.20030726161830.00b22cf0@mail.northcoast.com>
2003-07-27  8:12 ` Emacs Guy Worthington
2003-07-28  7:33 ` Emacs Mari Voipio
2003-07-28 15:52   ` Emacs David Arnold
2003-07-28 16:57 ` Emacs Alexander Klink
2003-07-28 17:20   ` Emacs Patrick Gundlach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081023210820.GA20122@gaston.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).