* 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; 16+ 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] 16+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 xml indenting, possibly with psgml? 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; 16+ 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] 16+ 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; 16+ 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] 16+ 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; 16+ 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] 16+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 xml indenting, possibly with psgml? 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 ` xml indenting, possibly with psgml? Gman
2002-12-06 21:45 ` Michael Slass
2 siblings, 2 replies; 16+ 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] 16+ 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 ` xml indenting, possibly with psgml? Gman
1 sibling, 1 reply; 16+ 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] 16+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-10 23:29 ` Bjoern
@ 2002-12-11 0:32 ` Bjoern
2002-12-11 1:32 ` Self-documentation adjustment David Forrest
0 siblings, 1 reply; 16+ messages in thread
From: Bjoern @ 2002-12-11 0:32 UTC (permalink / raw)
Bjoern wrote:
[...]
> 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).
Managed both, somehow things are working better this time than last time
I tried.
Bjoern
^ permalink raw reply [flat|nested] 16+ messages in thread
* Self-documentation adjustment
2002-12-11 0:32 ` Bjoern
@ 2002-12-11 1:32 ` David Forrest
2002-12-11 14:25 ` Stefan Monnier <foo@acm.com>
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: David Forrest @ 2002-12-11 1:32 UTC (permalink / raw)
Is there a way to modify/advise the documentation strings in functions and
variables after they have been defined?
What I would be looking for would be something like the scenario:
C-h a mouse
;;; notice apropos-mouse-follow is not documented
;;; research it and then execute something like:
(document apropos-mouse-follow "Use the mouse to follow an apropos link.")
;;; and then have C-h a apropos-mouse-follow show the new documentation
apropos-mouse-follow <mouse-2>
Use the mouse to follow an apropos link.
-------------------
I know I could redefine the function and edit my copy of the original
file, but I would like to be able to extend the documentation without
ham-handedly corrupting the underlying files, functions, or variables.
Thanks for your time,
Dave
--
Dave Forrest (434)924-3954w(111B) (804)642-0662h (804)695-2026p
drf5n@virginia.edu http://mug.sys.virginia.edu/~drf5n/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Self-documentation adjustment
2002-12-11 1:32 ` Self-documentation adjustment David Forrest
@ 2002-12-11 14:25 ` Stefan Monnier <foo@acm.com>
2002-12-11 14:53 ` Kevin Rodgers
2002-12-24 3:22 ` Moving a symbol from one obarray to another Greg Hill
2 siblings, 0 replies; 16+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-12-11 14:25 UTC (permalink / raw)
>>>>> "David" == David Forrest <drf5n@mug.sys.virginia.edu> writes:
> (document apropos-mouse-follow "Use the mouse to follow an apropos link.")
(put 'apropos-mouse-follow 'function-documentation "Follow link")
> I know I could redefine the function and edit my copy of the original
> file, but I would like to be able to extend the documentation without
> ham-handedly corrupting the underlying files, functions, or variables.
Please report such missing docstrings with M-x report-emacs-bug.
Stefan
PS: The above function has disappeared from Emacs so there's no need to
report it.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Self-documentation adjustment
2002-12-11 1:32 ` Self-documentation adjustment David Forrest
2002-12-11 14:25 ` Stefan Monnier <foo@acm.com>
@ 2002-12-11 14:53 ` Kevin Rodgers
2002-12-24 3:22 ` Moving a symbol from one obarray to another Greg Hill
2 siblings, 0 replies; 16+ messages in thread
From: Kevin Rodgers @ 2002-12-11 14:53 UTC (permalink / raw)
David Forrest wrote:
> I know I could redefine the function and edit my copy of the original
> file, but I would like to be able to extend the documentation without
> ham-handedly corrupting the underlying files, functions, or variables.
defadvice is your friend (see emacs-lisp/advice.el)
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Moving a symbol from one obarray to another
2002-12-11 1:32 ` Self-documentation adjustment David Forrest
2002-12-11 14:25 ` Stefan Monnier <foo@acm.com>
2002-12-11 14:53 ` Kevin Rodgers
@ 2002-12-24 3:22 ` Greg Hill
2 siblings, 0 replies; 16+ messages in thread
From: Greg Hill @ 2002-12-24 3:22 UTC (permalink / raw)
My objective is to move a symbol from one obarray to another. The
following routine seems to do that ok.
(defun move-symbol (sym-name from-obarray to-obarray)
"Move symbol named SYM-NAME from FROM-OBARRAY to TO-OBARRAY"
(let ((old-sym (intern-soft sym-name from-obarray))
(new-sym (intern sym-name to-obarray)) )
(set new-sym (symbol-value old-sym))
(fset new-sym (symbol-function old-sym))
(setplist new-sym (symbol-plist old-sym))
(unintern sym-name from-obarray) ))
My question is, is there a more efficient way to do that, e.g.
without creating a whole new symbol and destroying the old one?
--Greg
^ permalink raw reply [flat|nested] 16+ 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; 16+ 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] 16+ messages in thread
* Re: xml indenting, possibly with psgml?
2002-12-06 14:24 xml indenting, possibly with psgml? 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; 16+ 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] 16+ messages in thread
* RE: xml indenting, possibly with psgml?
@ 2002-12-12 6:17 Dmitri.Minaev
0 siblings, 0 replies; 16+ 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] 16+ messages in thread
* RE: xml indenting, possibly with psgml?
@ 2003-01-10 17:20 Jayakrishnan Nair
0 siblings, 0 replies; 16+ 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] 16+ messages in thread
end of thread, other threads:[~2003-01-12 20:46 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-06 14:24 xml indenting, possibly with psgml? 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
2002-12-11 1:32 ` Self-documentation adjustment David Forrest
2002-12-11 14:25 ` Stefan Monnier <foo@acm.com>
2002-12-11 14:53 ` Kevin Rodgers
2002-12-24 3:22 ` Moving a symbol from one obarray to another Greg Hill
2003-01-10 5:33 ` xml indenting, possibly with psgml? Gman
2003-01-12 20:46 ` Stefan Monnier <foo@acm.com>
2002-12-06 21:45 ` Michael Slass
-- strict thread matches above, loose matches on Subject: below --
2002-12-12 6:17 Dmitri.Minaev
2003-01-10 17:20 Jayakrishnan Nair
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.