unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* invisible buffer is it possible?
@ 2002-11-26 12:41 Phillip Lord
  2002-11-26 13:13 ` Carsten Dominik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Phillip Lord @ 2002-11-26 12:41 UTC (permalink / raw)





I'm just wondering whether I can create an invisible buffer, or
something similar? That is one which does not appear in the buffer
menu list, and you can't accidentally change to. 

The reason for this is that I have use this little hack....

(add-hook 'xml-mode-hook
          'phil-psgml-hook)
          
(defun phil-psgml-hook()
  "Does various checks and sets up various variables
 1) Checks to see if the file being loaded is one which needs a fake DOCTYPE. 
 That is I don't want to have the doctype in the buffer but want psgml mode to
 think that there is one. 
 2) Sets up default validate command"
  (interactive)
  (if (string= "build.xml"
               (file-name-nondirectory (buffer-file-name)))
      (setq sgml-parent-document '( "~/emacs/anthead.xml" "" "project"
      ))))


What this does is allow me to use a DTD for editing ant build files,
without having to put the doctype declaration into the build file
itself, which goes into the anthead.xml file. 

However it results in the anthead.xml file being opened into a buffer,
and it's just an annoyance. 

Is there someway that I can mark it invisible?


Cheers

Phil

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-11-26 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 12:41 invisible buffer is it possible? Phillip Lord
2002-11-26 13:13 ` Carsten Dominik
2002-11-26 14:12 ` Stein A. Stromme
2002-11-26 14:15   ` Stein A. Stromme
2002-11-26 15:15 ` Stefan Monnier <foo@acm.com>
2002-11-26 15:33   ` Phillip Lord
2002-11-26 15:44     ` lawrence mitchell
2002-11-26 16:17       ` Phillip Lord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).