From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Phillip Lord
Newsgroups: gmane.emacs.help
Subject: invisible buffer is it possible?
Date: 26 Nov 2002 12:41:58 +0000
Organization: BIOSCI/MRC Human Genome Mapping Project Resource Centre
Sender: help-gnu-emacs-admin@gnu.org
Message-ID:
NNTP-Posting-Host: main.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: main.gmane.org 1038314895 22398 80.91.224.249 (26 Nov 2002 12:48:15 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Tue, 26 Nov 2002 12:48:15 +0000 (UTC)
Return-path:
Original-Received: from monty-python.gnu.org ([199.232.76.173])
by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
id 18Gf8Q-0005p7-00
for ; Tue, 26 Nov 2002 13:48:14 +0100
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 18Gf6f-0005A5-00; Tue, 26 Nov 2002 07:46:25 -0500
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!hgmp.mrc.ac.uk!not-for-mail
Original-Newsgroups: gnu.emacs.help
Original-Lines: 38
Original-NNTP-Posting-Host: bromine.hgmp.mrc.ac.uk
Original-X-Trace: niobium.hgmp.mrc.ac.uk 1038314519 838 193.62.192.35 (26 Nov 2002 12:41:59 GMT)
Original-X-Complaints-To: news@net.bio.net
Original-NNTP-Posting-Date: Tue, 26 Nov 2002 12:41:59 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92
Original-Xref: shelby.stanford.edu gnu.emacs.help:107470
Original-To: help-gnu-emacs@gnu.org
Errors-To: help-gnu-emacs-admin@gnu.org
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
Xref: main.gmane.org gmane.emacs.help:4021
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4021
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