unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Phillip Lord <p.lord@russet.org.uk>
Subject: invisible buffer is it possible?
Date: 26 Nov 2002 12:41:58 +0000	[thread overview]
Message-ID: <vflm3gjyeh.fsf@rpc71.cs.man.ac.uk> (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

             reply	other threads:[~2002-11-26 12:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 12:41 Phillip Lord [this message]
2002-11-26 13:13 ` invisible buffer is it possible? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vflm3gjyeh.fsf@rpc71.cs.man.ac.uk \
    --to=p.lord@russet.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).