* RE: xml indenting, possibly with psgml?
@ 2002-12-12 6:17 Dmitri.Minaev
0 siblings, 0 replies; 12+ messages in thread
From: Dmitri.Minaev @ 2002-12-12 6:17 UTC (permalink / raw)
For those missing the DTD for build.xml:
http://www.sdv.fr/pages/casa/html/ant-dtd.en.html
PS: I didn't try it, though. Build.xml files are evil, use Make instead ;)
--
With best regards,
Dmitri Minaev
> -----Original Message-----
> From: Bjoern [mailto:p1@blinker.net]
> Sent: Tuesday, December 10, 2002 11:14 PM
> To: help-gnu-emacs@gnu.org
> Subject: Re: xml indenting, possibly with psgml?
>
>
> Jim Crossley wrote:
> > Bjoern <p1@blinker.net> writes:
> >
> >
> >>I can't figure out how to make psgml indent my xml-files. It just
> >>doesn't do anything when I press 'tab' or do 'indent-region'.
> >
> >
> > M-x customize-variable RET sgml-indent-data
>
> Hm, my emacs doesn't seem to know that variable :-(
>
> >>I also get an error message because it doesn't find the dtd, can't I
> >>get rid of that. I guess I really only need indenting and possibly
> >>syntax highlighting.
> >
> >
> > You'll only get that error once (the first time it attempts to
> > parse). You can live with it (and still derive benefit from
> > indentation, etc) or you can create a local CATALOG file
> that contains
> > the DTD references you commonly use. I highly recommend
> this article:
>
> The problem is that there isn't really a DTD for ant build.xml files.
> ALthough I think there now is a target to create one from a
> build file,
> but I am not sure if it's practical if it's constantly changing.
>
> Bjoern
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: xml indenting, possibly with psgml?
@ 2003-01-10 17:20 Jayakrishnan Nair
0 siblings, 0 replies; 12+ messages in thread
From: Jayakrishnan Nair @ 2003-01-10 17:20 UTC (permalink / raw)
You may want to try this
http://members.iinet.net.au/~mdub/software/xml-lite.el
-----Original Message-----
From: Gman [mailto:notmyemailaddressglaprade@yahoo.com]
Sent: Thursday, January 09, 2003 9:34 PM
To: help-gnu-emacs@gnu.org
Subject: Re: xml indenting, possibly with psgml?
Stefan Monnier wrote:
>>>>>>"Bjoern" == Bjoern <p1@blinker.net> writes:
>>
>>I also get an error message because it doesn't find the dtd, can't I
get rid
>>of that. I guess I really only need indenting and possibly
>>syntax highlighting.
>
>
> The newer version of sgml-mode (the one bundled with Emacs) will do
> just that. You can try it out from the CVS directory. It reportedly
> works under Emacs-21.[12] as well.
>
>
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-
mode.el?rev=HEAD
>
>
> Stefan
I downloaded this guy and loaded it up, but when I C-x h and C-M \ it
doesn't seem to indent logically. It basically indents every line
increasingly so that they form a backwards stair-step pattern. Any
hints???
I loaded up psgml also and got nuthin' for indent-region, even after the
set variable tricks mentioned. I am running NTEmacs 20.7.
Didn't like the way I had to force psgml to parse the buffer b4
font-locking either, or the way it seemed to be parsing on keystroke and
taking a bunch of processor overhead while just navigating the file
Of course, it is entirely possible that I do not know what I am doing.
:)
Thanks,
Greg
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 12+ messages in thread
* xml indenting, possibly with psgml?
@ 2002-12-06 14:24 Bjoern
2002-12-06 15:55 ` Jim Crossley
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Bjoern @ 2002-12-06 14:24 UTC (permalink / raw)
Hello,
I can't figure out how to make psgml indent my xml-files. It just
doesn't do anything when I press 'tab' or do 'indent-region'.
I also get an error message because it doesn't find the dtd, can't I get
rid of that. I guess I really only need indenting and possibly syntax
highlighting.
Perhaps there is a simpler mode for achieving this?
Many thanks in advance for any help!
Bjoern
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 Bjoern
@ 2002-12-06 15:55 ` Jim Crossley
2002-12-10 23:13 ` Bjoern
2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
2002-12-06 21:45 ` Michael Slass
2 siblings, 1 reply; 12+ messages in thread
From: Jim Crossley @ 2002-12-06 15:55 UTC (permalink / raw)
Bjoern <p1@blinker.net> writes:
> I can't figure out how to make psgml indent my xml-files. It just
> doesn't do anything when I press 'tab' or do 'indent-region'.
M-x customize-variable RET sgml-indent-data
> I also get an error message because it doesn't find the dtd, can't I
> get rid of that. I guess I really only need indenting and possibly
> syntax highlighting.
You'll only get that error once (the first time it attempts to
parse). You can live with it (and still derive benefit from
indentation, etc) or you can create a local CATALOG file that contains
the DTD references you commonly use. I highly recommend this article:
http://www-106.ibm.com/developerworks/library/x-emacs/
> Perhaps there is a simpler mode for achieving this?
Not really.
> Bjoern
Jim
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 15:55 ` Jim Crossley
@ 2002-12-10 23:13 ` Bjoern
2002-12-11 20:34 ` Kai Großjohann
0 siblings, 1 reply; 12+ messages in thread
From: Bjoern @ 2002-12-10 23:13 UTC (permalink / raw)
Jim Crossley wrote:
> Bjoern <p1@blinker.net> writes:
>
>
>>I can't figure out how to make psgml indent my xml-files. It just
>>doesn't do anything when I press 'tab' or do 'indent-region'.
>
>
> M-x customize-variable RET sgml-indent-data
Hm, my emacs doesn't seem to know that variable :-(
>>I also get an error message because it doesn't find the dtd, can't I
>>get rid of that. I guess I really only need indenting and possibly
>>syntax highlighting.
>
>
> You'll only get that error once (the first time it attempts to
> parse). You can live with it (and still derive benefit from
> indentation, etc) or you can create a local CATALOG file that contains
> the DTD references you commonly use. I highly recommend this article:
The problem is that there isn't really a DTD for ant build.xml files.
ALthough I think there now is a target to create one from a build file,
but I am not sure if it's practical if it's constantly changing.
Bjoern
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-10 23:13 ` Bjoern
@ 2002-12-11 20:34 ` Kai Großjohann
0 siblings, 0 replies; 12+ messages in thread
From: Kai Großjohann @ 2002-12-11 20:34 UTC (permalink / raw)
Bjoern <p1@blinker.net> writes:
> Jim Crossley wrote:
>> Bjoern <p1@blinker.net> writes:
>>
>>>I can't figure out how to make psgml indent my xml-files. It just
>>>doesn't do anything when I press 'tab' or do 'indent-region'.
>> M-x customize-variable RET sgml-indent-data
>
> Hm, my emacs doesn't seem to know that variable :-(
What does C-h v say about it? Maybe it's a variable but not a Custom
option.
> The problem is that there isn't really a DTD for ant build.xml
> files. ALthough I think there now is a target to create one from a
> build file, but I am not sure if it's practical if it's constantly
> changing.
I know next to nothing about build files, but I always thought the
DTD was rather fixed. You might wish to try the Ant command on two
different build files to see if the DTD is different. (ant -projecthelp?)
--
~/.signature is: umop ap!sdn (Frank Nobis)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 Bjoern
2002-12-06 15:55 ` Jim Crossley
@ 2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
2002-12-10 23:29 ` Bjoern
2003-01-10 5:33 ` Gman
2002-12-06 21:45 ` Michael Slass
2 siblings, 2 replies; 12+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-12-06 16:19 UTC (permalink / raw)
>>>>> "Bjoern" == Bjoern <p1@blinker.net> writes:
> I also get an error message because it doesn't find the dtd, can't I get rid
> of that. I guess I really only need indenting and possibly
> syntax highlighting.
The newer version of sgml-mode (the one bundled with Emacs) will do
just that. You can try it out from the CVS directory. It reportedly
works under Emacs-21.[12] as well.
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
@ 2002-12-10 23:29 ` Bjoern
2002-12-11 0:32 ` Bjoern
2003-01-10 5:33 ` Gman
1 sibling, 1 reply; 12+ messages in thread
From: Bjoern @ 2002-12-10 23:29 UTC (permalink / raw)
Stefan Monnier wrote:
>>>>>>"Bjoern" == Bjoern <p1@blinker.net> writes:
>>
>>I also get an error message because it doesn't find the dtd, can't I get rid
>>of that. I guess I really only need indenting and possibly
>>syntax highlighting.
>
>
> The newer version of sgml-mode (the one bundled with Emacs) will do
> just that. You can try it out from the CVS directory. It reportedly
> works under Emacs-21.[12] as well.
That seems to work great, thanks! Apparently the version that came with
my emacs (21.2 for win32) was buggy, which was probably why I installed
psgml to begin with.
Now onwards trying to figure out how to make emacs indent with spaces
only (no tabs) and how to compile the .el file (the latter should be easy).
Bjoern
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
2002-12-10 23:29 ` Bjoern
@ 2003-01-10 5:33 ` Gman
2003-01-12 20:46 ` Stefan Monnier <foo@acm.com>
1 sibling, 1 reply; 12+ messages in thread
From: Gman @ 2003-01-10 5:33 UTC (permalink / raw)
Stefan Monnier wrote:
>>>>>>"Bjoern" == Bjoern <p1@blinker.net> writes:
>>
>>I also get an error message because it doesn't find the dtd, can't I get rid
>>of that. I guess I really only need indenting and possibly
>>syntax highlighting.
>
>
> The newer version of sgml-mode (the one bundled with Emacs) will do
> just that. You can try it out from the CVS directory. It reportedly
> works under Emacs-21.[12] as well.
>
> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
>
>
> Stefan
I downloaded this guy and loaded it up, but when I C-x h and C-M \ it
doesn't seem to indent logically. It basically indents every line
increasingly so that they form a backwards stair-step pattern. Any hints???
I loaded up psgml also and got nuthin' for indent-region, even after the
set variable tricks mentioned. I am running NTEmacs 20.7.
Didn't like the way I had to force psgml to parse the buffer b4
font-locking either, or the way it seemed to be parsing on keystroke and
taking a bunch of processor overhead while just navigating the file
Of course, it is entirely possible that I do not know what I am doing. :)
Thanks,
Greg
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 Bjoern
2002-12-06 15:55 ` Jim Crossley
2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
@ 2002-12-06 21:45 ` Michael Slass
2 siblings, 0 replies; 12+ messages in thread
From: Michael Slass @ 2002-12-06 21:45 UTC (permalink / raw)
Bjoern <p1@blinker.net> writes:
>Hello,
>
>I can't figure out how to make psgml indent my xml-files. It just doesn't
>do anything when I press 'tab' or do 'indent-region'.
>
xml-lite is a minor mode which does this.
--
Mike Slass
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-01-12 20:46 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 6:17 xml indenting, possibly with psgml? Dmitri.Minaev
-- strict thread matches above, loose matches on Subject: below --
2003-01-10 17:20 Jayakrishnan Nair
2002-12-06 14:24 Bjoern
2002-12-06 15:55 ` Jim Crossley
2002-12-10 23:13 ` Bjoern
2002-12-11 20:34 ` Kai Großjohann
2002-12-06 16:19 ` Stefan Monnier <foo@acm.com>
2002-12-10 23:29 ` Bjoern
2002-12-11 0:32 ` Bjoern
2003-01-10 5:33 ` Gman
2003-01-12 20:46 ` Stefan Monnier <foo@acm.com>
2002-12-06 21:45 ` Michael Slass
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.