Lennart Borgman | 1 Dec 2004 04:33
Picon
Picon
Favicon

Could nxml-finish-element also finish a comment?


I think it would be good if nxml-finish-element also finished a comment. Is
that possible (and desireable)?

Kind regards
Lennart

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Bruce D'Arcus | 1 Dec 2004 23:14

type error


	
Does anyone know what this means?

	File mode specification error: (wrong-type-argument stringp nil)

I get it when trying to load the latest version of nxml on one of my 
two OS X machines (the other is fine).

Bruce

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Pawson, David | 2 Dec 2004 08:48
Picon

RE: Could nxml-finish-element also finish a comment?


    -----Original Message-----
    From: Lennart Borgman 
   I think it would be good if nxml-finish-element also finished a comment. 
   Is that possible (and desireable)?

(defun sgml-comment ()
   "Insert SGML comment and position cursor."
   (interactive)
   (insert "<!--  -->")
   (backward-char 4))

(add-hook 'nxml-mode-hook   ; make all this stuff XML-specific
	  (function (lambda()
	    (define-key sgml-mode-map [f5] 'sgml-comment)
))) 

I find f5 useful.

regards DaveP

--

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.
(Continue reading)

Lennart Borgman | 2 Dec 2004 13:22
Picon
Picon
Favicon

Re: Could nxml-finish-element also finish a comment?


----- Original Message ----- 
From: "Pawson, David" <david.pawson <at> rnib.org.uk>

>     -----Original Message-----
>     From: Lennart Borgman
>    I think it would be good if nxml-finish-element also finished a
comment.
>    Is that possible (and desireable)?
>
> (defun sgml-comment ()
>    "Insert SGML comment and position cursor."
>    (interactive)
>    (insert "<!--  -->")
>    (backward-char 4))
>
> (add-hook 'nxml-mode-hook   ; make all this stuff XML-specific
>   (function (lambda()
>     (define-key sgml-mode-map [f5] 'sgml-comment)
> )))

Thanks David,
That seems useful, but I was more thinking about the situation when you want
to comment out a piece of the document (which is what I mostly do;-).

Regards,
 Lennart

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
(Continue reading)

Michael Smith | 2 Dec 2004 13:38

Re: Could nxml-finish-element also finish a comment?

Lennart,

What about just using the standard Emacs M-x comment-region
command? It comments out line-by-line, which may not be normal way
to comment in XML, but the effect is the same. You can then just
do M-x uncomment-region if you need to later.

Lennart Borgman <lennart.borgman.073 <at> student.lu.se> writes:

> 
> ----- Original Message ----- 
> From: "Pawson, David" <david.pawson <at> rnib.org.uk>
> 
> >     -----Original Message-----
> >     From: Lennart Borgman
> >    I think it would be good if nxml-finish-element also finished a
> comment.
> >    Is that possible (and desireable)?
> >
> > (defun sgml-comment ()
> >    "Insert SGML comment and position cursor."
> >    (interactive)
> >    (insert "<!--  -->")
> >    (backward-char 4))
> >
> > (add-hook 'nxml-mode-hook   ; make all this stuff XML-specific
> >   (function (lambda()
> >     (define-key sgml-mode-map [f5] 'sgml-comment)
> > )))
> 
(Continue reading)

Carsten Bormann | 2 Dec 2004 14:03
Picon
Picon
Favicon

Re: Could nxml-finish-element also finish a comment?


> (defun sgml-comment ()
>    "Insert SGML comment and position cursor."
>    (interactive)
>    (insert "<!--  -->")
>    (backward-char 4))

What's wrong with M-; (but then, I don't know if this is bound in old 
emacsen)?

Maybe "--" should be bound to finish a comment -- this would also make 
it harder to accidentally include a double dash in a comment (which is 
not allowed in XML).
On the other hand, "--" is already mapped to an em-dash in my config.

Gruesse, Carsten

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com
(Continue reading)

J.Pietschmann | 2 Dec 2004 21:12
Picon
Favicon

Re: type error


Bruce D'Arcus wrote:
> 	
> Does anyone know what this means?
> 
> 	File mode specification error: (wrong-type-argument stringp nil)
> 
I got this after upgrading nxml from the nov 2003 release to
the latest release. The reason was that the format of
schemas.xml was changed. You have to upgrade this file
in the schema directory and any custom schema location
file which contains a transformURI element and perhaps
a few other elements as well. Load the file and explicitely
set locate.rnc as schema, and nxml will tell you problematic
constructs.

J.Pietschmann

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

(Continue reading)

Bruce D'Arcus | 3 Dec 2004 21:40

Re: type error


On Dec 2, 2004, at 3:12 PM, J.Pietschmann wrote:

> I got this after upgrading nxml from the nov 2003 release to
> the latest release. The reason was that the format of
> schemas.xml was changed. You have to upgrade this file
> in the schema directory and any custom schema location
> file which contains a transformURI element and perhaps
> a few other elements as well. Load the file and explicitely
> set locate.rnc as schema, and nxml will tell you problematic
> constructs.

Hmm ... I just confirmed the schema.xml file is valid against the 
location.rnc file in the same directory, but am getting the same error.

This is with the 20041004 version.  Any other ideas?

Bruce

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/
(Continue reading)

J.Pietschmann | 3 Dec 2004 22:52
Picon
Favicon

Re: type error


Bruce D'Arcus wrote:
> Hmm ... I just confirmed the schema.xml file is valid against the 
> location.rnc file in the same directory, but am getting the same error.
> 
> This is with the 20041004 version.  Any other ideas?

Are you sure you've upgraded location.rnc? It should have a date
of 2004-11-02. Of course the old schema.xml is valid WRT the
old location.rnc. Note that the schemas are by default in a
schema subdirectory.
Check also for other schema location files used elsewhere.

J.Pietschmann

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
(Continue reading)

Pawson, David | 6 Dec 2004 09:45
Picon

RE: type error


    -----Original Message-----
    From: J.Pietschmann 
    Bruce D'Arcus wrote:
    > Hmm ... I just confirmed the schema.xml file is valid against the 
    > location.rnc file in the same directory, but am getting 
    the same error.
    > 
    > This is with the 20041004 version.  Any other ideas?

    Are you sure you've upgraded location.rnc? It should have a 
    date of 2004-11-02.

Mine is 2003-11-02

Is that the one Joerg?

regards DaveP

** snip here **

--

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.
(Continue reading)


Gmane