From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: rng-auto.el seems to be missing from nxml-mode files Date: Thu, 10 Jan 2008 18:59:35 +0100 Message-ID: <47865D07.9040009@gmail.com> References: <200801101759.25950.ismail@pardus.org.tr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1199988003 2349 80.91.229.12 (10 Jan 2008 18:00:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 18:00:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?B?SXNtYWlsIETDtm5tZXo=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 10 19:00:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JD1hY-0003fJ-L2 for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 19:00:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JD1hB-0006BP-5t for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 13:00:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JD1h1-00063q-IW for emacs-devel@gnu.org; Thu, 10 Jan 2008 12:59:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JD1gz-00061O-SK for emacs-devel@gnu.org; Thu, 10 Jan 2008 12:59:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JD1gz-00061J-In for emacs-devel@gnu.org; Thu, 10 Jan 2008 12:59:49 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JD1gz-0002U9-Bt for emacs-devel@gnu.org; Thu, 10 Jan 2008 12:59:49 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63209 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JD1gw-0002WX-8d; Thu, 10 Jan 2008 18:59:47 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <200801101759.25950.ismail@pardus.org.tr> X-Antivirus: avast! (VPS 080109-0, 2008-01-09), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JD1gw-0002WX-8d. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JD1gw-0002WX-8d 9b475a35cb1fd28c7b0e3c93a1d0dbef X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86711 Archived-At: Ismail Dönmez wrote: > Hi all, > > Now that finally emacs CVS merged nxml-mode support I went out to try it. But > to my surprise rng-auto.el file is not included in lisp/nxml directory. This > file is part of the original nxml distribution and needed for auto-validation > of XML files via RELAX-NG. > > Is there a reason why this file is not included? Because without that file > most powerful feature of nxml-mode is missing. Hi Ismail, Ah, yes, I tested some days ago and wondered what was wrong. I do not know if it is good to split rng-auto.el, but here are some notes: - The autoload has been moved somewhere else. - Some variables are set in rgn-auto. Maybe these just can be moved to the defvars? (setq rng-preferred-prefix-alist-default ...) (setq rng-schema-loader-alist '(("rnc" . rng-c-load-schema))) - There are some add-hook calls, maybe they can be moved to nxml-mode.el? (The first one of these starts validation.): (add-hook 'nxml-mode-hook 'rng-nxml-mode-init) (add-hook 'nxml-mode-hook 'nxml-enable-unicode-char-name-sets) - I have no idea what to do with the auto-coding stuff. Does not that have to be loaded before nxml-mode is loaded since it is used when reading files? (require 'nxml-enc) ;; Install our own `set-auto-coding-function'. (nxml-start-auto-coding)