|
|
Choosing A Webhost: |
Re: is it possible to reload the schema?: msg#00001emacs.nxml.general
> On Tue, 2004-03-02 at 04:49, ghthaker wrote: > > > My normal usage mode is to load and .xml file and have it associated > > with a schema (.rnc file.) I find that often I need to go and edit > > .rnc file and thus make changes to my schema. I notice that the schema > > changes do not take effect unless one kills the .xml buffer and > > reloads it. Is there a key binding to quick re-read the schema file? I've been using the following. (define-key nxml-mode-map "\C-c\C-r" 'rng-reload-schema) (defun rng-reload-schema () (interactive) (let ((schema-filename rng-current-schema-file-name)) (when schema-filename (setq rng-current-schema (rng-load-schema schema-filename)) (run-hooks 'rng-schema-change-hook) (message "Reloaded schema %s" schema-filename)) (unless schema-filename (rng-set-schema-and-validate)))) (defun rng-apply-find-schema-file (fn) (let ((schema-filename rng-current-schema-file-name)) (unless schema-filename (error "This file is not associated with a schema file.")) (funcall fn schema-filename))) (defun rng-find-schema-file () (interactive) (rng-apply-find-schema-file 'find-file)) (defun rng-find-schema-file-other-window () (interactive) (rng-apply-find-schema-file 'find-file-other-window)) ------------------------ 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/ <*> To unsubscribe from this group, send an email to: emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | comment-region doesn't handle comments, Rohan Lloyd |
|---|---|
| Next by Date: | autoconversion of entities, pvanheus |
| Previous by Thread: | comment-region doesn't handle comments, Rohan Lloyd |
| Next by Thread: | autoconversion of entities, pvanheus |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |