* multiple languages in one file, nxhtml-mode...
@ 2009-03-05 11:19 Marko Myllymaki
2009-03-05 17:58 ` Richard Riley
0 siblings, 1 reply; 4+ messages in thread
From: Marko Myllymaki @ 2009-03-05 11:19 UTC (permalink / raw)
To: help-gnu-emacs
I'm trying to get nxhtml-mode to work - it would really help editing
documents with many different code blocks... I need at least correct
indenting of code lines, line wrap and syntax hilighting say with php,
xhtml, css, javascript, xml... automatic validation when editing is not
so important...
If someone could suggest "simpler mode" to achieve these goals, I would
really appreciate that.
Previously I used only PHP-mode (and others for other languages) but it
does not work with multiple source code blocks.
Problems with nxhtml-mode:
I load a file called something.php which has php-blocks <? ?> and xhtml
and possibly javascript... When I scroll it, emacs mode line changes the
context (PHP/nxhtml - nXhtml/nxhtml) quite nicely.
But then... when editing
Problems: lots of lisp or other errors interrupt editing and drive me
crazy, like:
"Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
rng-after-change-function(384 385 0)
self-insert-command(1)
newline(nil)
call-interactively(newline nil nil)"
"Variable binding depth exceeds max-specpdl-size"
What are these?
Font lock mode does usually not work - syntax hilighting does not always
change when changing code blocks...
My environment:
Debian Linux
GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of
2009-02-22 on elegiac, modified by Debian
(emacs snapshot... but v22 did not work either)
nXhtml mode version 1.75
nXML mode version 20041004
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: multiple languages in one file, nxhtml-mode...
2009-03-05 11:19 multiple languages in one file, nxhtml-mode Marko Myllymaki
@ 2009-03-05 17:58 ` Richard Riley
2009-03-06 7:31 ` Marko Myllymaki
0 siblings, 1 reply; 4+ messages in thread
From: Richard Riley @ 2009-03-05 17:58 UTC (permalink / raw)
To: help-gnu-emacs
Marko Myllymaki <firstname.lastname@iki.fi> writes:
> I'm trying to get nxhtml-mode to work - it would really help editing
> documents with many different code blocks... I need at least correct
> indenting of code lines, line wrap and syntax hilighting say with php,
> xhtml, css, javascript, xml... automatic validation when editing is not
> so important...
>
> If someone could suggest "simpler mode" to achieve these goals, I would
> really appreciate that.
>
> Previously I used only PHP-mode (and others for other languages) but it
> does not work with multiple source code blocks.
>
> Problems with nxhtml-mode:
> I load a file called something.php which has php-blocks <? ?> and xhtml
> and possibly javascript... When I scroll it, emacs mode line changes the
> context (PHP/nxhtml - nXhtml/nxhtml) quite nicely.
>
> But then... when editing
>
> Problems: lots of lisp or other errors interrupt editing and drive me
> crazy, like:
>
> "Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
> rng-after-change-function(384 385 0)
> self-insert-command(1)
> newline(nil)
> call-interactively(newline nil nil)"
>
> "Variable binding depth exceeds max-specpdl-size"
>
> What are these?
>
> Font lock mode does usually not work - syntax hilighting does not always
> change when changing code blocks...
>
> My environment:
> Debian Linux
> GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of
> 2009-02-22 on elegiac, modified by Debian
> (emacs snapshot... but v22 did not work either)
> nXhtml mode version 1.75
> nXML mode version 20041004
I had the same and reported them to Lennart. This happened also with
emacs -Q and then manually loading nxhtml.
Interestingly the errors were a LOT worse with emacs-snapshot than from
cvs emacs 23. But presently the current nxhtml is unusable for me
unfortunately - Lennart is looking into it.
--
important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: multiple languages in one file, nxhtml-mode...
2009-03-05 17:58 ` Richard Riley
@ 2009-03-06 7:31 ` Marko Myllymaki
2009-03-06 17:02 ` Richard Riley
0 siblings, 1 reply; 4+ messages in thread
From: Marko Myllymaki @ 2009-03-06 7:31 UTC (permalink / raw)
To: help-gnu-emacs
Richard Riley wrote:
> I had the same and reported them to Lennart. This happened also with
> emacs -Q and then manually loading nxhtml.
>
> Interestingly the errors were a LOT worse with emacs-snapshot than from
> cvs emacs 23. But presently the current nxhtml is unusable for me
> unfortunately - Lennart is looking into it.
Ok - good to know that I'm not the only one having these kinds of
problems :)
Have you found any other emacs package to be useful with these kind of
editing needs?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: multiple languages in one file, nxhtml-mode...
2009-03-06 7:31 ` Marko Myllymaki
@ 2009-03-06 17:02 ` Richard Riley
0 siblings, 0 replies; 4+ messages in thread
From: Richard Riley @ 2009-03-06 17:02 UTC (permalink / raw)
To: help-gnu-emacs
Marko Myllymaki <firstname.lastname@iki.fi> writes:
> Richard Riley wrote:
>> I had the same and reported them to Lennart. This happened also with
>> emacs -Q and then manually loading nxhtml.
>>
>> Interestingly the errors were a LOT worse with emacs-snapshot than from
>> cvs emacs 23. But presently the current nxhtml is unusable for me
>> unfortunately - Lennart is looking into it.
>
> Ok - good to know that I'm not the only one having these kinds of
> problems :)
>
> Have you found any other emacs package to be useful with these kind of
> editing needs?
>
Surprisingly no. And have found very few people that seem to use Emacs
for this type of thing. It's rather depressing :-( The "all in" IDE
seems to have won out.
--
important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-06 17:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05 11:19 multiple languages in one file, nxhtml-mode Marko Myllymaki
2009-03-05 17:58 ` Richard Riley
2009-03-06 7:31 ` Marko Myllymaki
2009-03-06 17:02 ` Richard Riley
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.