Discussion:
ConTeXt-mark-environment and transient-mark-mode
Adam Duck
2005-03-11 10:29:14 UTC
Permalink
Hello AuCTeXers,

I have this problem:

doing `ConTeXt-mark-environment' with `transient-mark-mode' ends in
nothing being marked. With `transient-mark-mode' off, the region is
there - though I can't see it, of course.

There are still issues with the indentation, for example this:

--- ConTeXt source ---

\starttext

\placeintermezzo[here][]
{my Intermezzo}
\startalignment
This intermezzo is indented too far, plus the
indentation-levels stay at that level.
\stopalignment

\stoptext

--- end ---

The same happens with \placefigure. This can be somewhat remedied if
one places the "{label}" on the same line as the TeX-macro, but it
isn't quite as nice (plus Hans Hagen, the author of ConTeXt, uses this
scheme all the time). But the next one is really bad:

--- ConTeXt source ---

\starttext

\startitemize
\item hello
\stopitemize
hello

\stoptext

--- end ---

This problem can't be circumvented, it just stays there.

(emacs-version) "GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.4.14)
of 2005-03-11 on oumu.localdomain", AUCTeX-version "CVS-5.488"

bye, Adam.

P.S.: thanks for the work on `fill-paragraph'.
Ralf Angeli
2005-03-11 11:28:53 UTC
Permalink
Post by Adam Duck
doing `ConTeXt-mark-environment' with `transient-mark-mode' ends in
nothing being marked. With `transient-mark-mode' off, the region is
there - though I can't see it, of course.
Hm, this is working fine here on a CVS Emacs which is two days old.

Tested with

\startfoo
-!-asdf
\stopfoo

by typing `M-x ConTeXt-mark-environment RET' (where -!- means the
position of point).
Post by Adam Duck
--- ConTeXt source ---
\starttext
\startitemize
\item hello
\stopitemize
hello
\stoptext
--- end ---
This problem can't be circumvented, it just stays there.
This is a problem we already discussed back in December. I proposed a
patch and asked for feedback. As I haven't got any, I now checked it
into CVS. Could you please test it and tell me in case you encounter
any problems?

I still have the patch related to indentation in XEmacs here.[1] But
as long as CVS XEmacs is not fixed in this regard, I probably won't
check it in.


Footnotes:
[1] <URL:http://article.gmane.org/gmane.emacs.auc-tex/5150>
--
Ralf
Adam Duck
2005-03-11 15:36:37 UTC
Permalink
Post by Ralf Angeli
Post by Adam Duck
doing `ConTeXt-mark-environment' with `transient-mark-mode' ends in
nothing being marked. With `transient-mark-mode' off, the region is
there - though I can't see it, of course.
Hm, this is working fine here on a CVS Emacs which is two days old.
Tested with
\startfoo
-!-asdf
\stopfoo
Hmm, strange... what can I do to track it down? I have recompiled my
emacs yesterday and auctex today.
Post by Ralf Angeli
This is a problem we already discussed back in December. I proposed a
patch and asked for feedback. As I haven't got any, I now checked it
into CVS. Could you please test it and tell me in case you encounter
any problems?
This one's great! My files look much nicer now, thanks to you :).
But something like this is still not working:

\defineframedtext[blueframe]
[frame=off,background=screen,
rightframe=on,framecolor=darkgreen,
rulethickness=3pt,offset=3pt]

as you can see, the lines are one character off and the next line after
this command is indented too far (this should be the same problem as
with my \place(intermezzo|figure). As I said, I can circumvent it, but
it would be nicer this way.
Post by Ralf Angeli
I still have the patch related to indentation in XEmacs here.[1] But
as long as CVS XEmacs is not fixed in this regard, I probably won't
check it in.
I don't use it anymore: I happen to like the new faces (with boxes,
overlines and underlines,...:) ) plus cedet-CVS isn't working with
xemacs.


bye, Adam
Ralf Angeli
2005-03-11 16:20:07 UTC
Permalink
Post by Adam Duck
Post by Ralf Angeli
Post by Adam Duck
doing `ConTeXt-mark-environment' with `transient-mark-mode' ends in
nothing being marked. With `transient-mark-mode' off, the region is
there - though I can't see it, of course.
Hm, this is working fine here on a CVS Emacs which is two days old.
[...]
Post by Adam Duck
Hmm, strange... what can I do to track it down? I have recompiled my
emacs yesterday and auctex today.
Does it work if you start Emacs with `emacs -q -no-site-file', copy

(require 'tex-site)
(transient-mark-mode 1)

into the *scratch* buffer, type `M-x eval-buffer RET' and after that
open a ConTeXt file? In case it does, there is something in your init
files making trouble.
Post by Adam Duck
\defineframedtext[blueframe]
[frame=off,background=screen,
rightframe=on,framecolor=darkgreen,
rulethickness=3pt,offset=3pt]
as you can see, the lines are one character off and the next line after
this command is indented too far (this should be the same problem as
with my \place(intermezzo|figure). As I said, I can circumvent it, but
it would be nicer this way.
That's true. In case I can find some time I'll eventually take a look
at it unless somebody beats me to it (which I hope because I don't
have much time currently).
--
Ralf
Loading...