Configure Emacs in nxml mode with DocBook support, but auto tag completion failed
37 views
Skip to first unread message
edisonnee
unread,
Sep 23, 2012, 10:24:39 PM9/23/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Help-gn...@gnu.org
Hello,
I'm a technical writer and want to author DocBook document using Emacs 24.1.
I have configured schems.xml to allow Emacs recognize DocBook documents
following this post: http://infohost.nmt.edu/tcc/help/pubs/nxml/ The Emacs can recognoze the DocBook document and use the DocBook schema file
(docbook.rng, included with Emacs installation). I'm sure of that by typing
C-c C-s C-w. However, all the features that are linked with schema don't
work. When I insert part of the start tag and hit C-ENTER or M-TAB to invoke
tag auto completion, it just showed 'no match' in the minibuffer. Anybody
know how to fix this?
Reagrds,
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Help-gn...@gnu.org
Hello,
I guess I've solved the problem. The DocBook schema file (docbook.rnc, which
is in RELAX NG Compact format) included with emacs 24.1 is translated from
DTD by Trang and is not originally developed, which may have caused the
glitch. I downloaded the original docbook.rnc from
http://docbook.org/xml/5.0/rng/ and copy it to the emacs schema directory
(/usr/share/emacs/24.1/etc/shema/, as on my local machine). And now the
world is at peace. I can now use the auto tag completion feature of emacs.
Cheers,
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Help-gn...@gnu.org
Hi,
I still have the problem with emacs 23.3.1 on ubuntu.
(GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-21 on batsu, modified by Debian)
I downloaded docbookxi.rnc and put it to a separate location (not in the emacs directory!) and referenced it in schema.xml.
Validation works correctly,
but the completion command C-M-i always tells "no completion available".
Any ideas? (highly appreciated!)
Cheers
Jens
j.c.d...@googlemail.com
unread,
Oct 13, 2012, 5:01:18 AM10/13/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gnu.ema...@googlegroups.com, Help-gn...@gnu.org
Hi,
I still have the problem with emacs 23.3.1 on ubuntu.
(GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-21 on batsu, modified by Debian)
I downloaded docbookxi.rnc and put it to a separate location (not in the emacs directory!) and referenced it in schema.xml.
Validation works correctly,
but the completion command C-M-i always tells "no completion available".
Any ideas? (highly appreciated!)
Cheers
Jens
Am Montag, 24. September 2012 09:33:13 UTC+2 schrieb edisonnee:
Jens C. Derner
unread,
Oct 13, 2012, 12:00:48 PM10/13/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Help-gn...@gnu.org
Hi again,
still don't know the exact reason.
But for me - as I found out - C-RET did the job.
So things are fine for me now.
Cheers
Jens
Jens C. Derner
unread,
Oct 13, 2012, 12:00:48 PM10/13/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gnu.ema...@googlegroups.com, Help-gn...@gnu.org
Hi again,
still don't know the exact reason.
But for me - as I found out - C-RET did the job.
So things are fine for me now.
Cheers
Jens
Am Samstag, 13. Oktober 2012 11:01:18 UTC+2 schrieb (unbekannt):