logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Rough start... (emacs byte-compiling): msg#00351

linux.redhat.fedora.documentation

Subject: Re: Rough start... (emacs byte-compiling)

On Tue, 2004-08-31 at 11:20, Paul W. Frields wrote:
> On Tue, 2004-08-31 at 13:30, Dave Pawson wrote:
> > > Well, I'll be darned. It really is faster loading!
> >
> > The other trick, once documents become large, is to
> > 'compile' the dtd producing xyz.ced, which psgml then
> > uses, and it 'reads' the dtd so much quicker.
> > Probably not noticable until the file size is significant;
> > but well worth doing.
>
> Ah, now *that* I've done before. Since my markup of Strunk's book was in
> separate chapter files, that step was invaluable.

That's SOP for internal Red Hat guides, which are many multiple
chapters. So much so that one developer I worked with on a doc got so
tired of doing M-x sgml-load-dtd each time that he wrote this bit for
our .emacs files; it assigns C-c d to the task of loading a .ced file
(from the $PWD only):

;; Vadim Nasardinov's <vadimn@xxxxxxxxxx> wrote this to save some
;; keystrokes when loading DTDs; this presumes the existence of only
;; one .ced file.

(defun rh-sgml-load-dtd ()
"Load the .ced file from the current directory."

(interactive)

(let* ((files (directory-files "." nil "\\.ced$"))
(ced-file (car files)))
(if (or (not ced-file)
(cdr files))
(error (format "Expected one .ced file, but found: %S" files))
(progn
(message (format "Loading the DTD from %s..." ced-file))
(sgml-load-dtd (car files))))))

(add-hook
'sgml-mode-hook
(lambda ()
(local-set-key "\C-cd" 'rh-sgml-load-dtd)))


--
Karsten Wade, RHCE, Tech Writer
a lemon is just a melon in disguise
http://people.redhat.com/kwade/
gpg fingerprint: 2680 DBFD D968 3141 0115 5F1B D992 0E06 AD0E 0C41


--
fedora-docs-list mailing list
fedora-docs-list@xxxxxxxxxx
To unsubscribe:
http://www.redhat.com/mailman/listinfo/fedora-docs-list



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation