From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.help Subject: Re: invisible buffer is it possible? Date: 26 Nov 2002 14:13:00 +0100 Organization: Faculty of Science, University of Amsterdam Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: dominik@_DROP_THIS_science.uva.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038320583 14626 80.91.224.249 (26 Nov 2002 14:23:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2002 14:23:03 +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 18GgUf-0003Jq-00 for ; Tue, 26 Nov 2002 15:15:17 +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 18GgW3-0003HN-00; Tue, 26 Nov 2002 09:16:43 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!surfnet.nl!uva.nl!news.science.uva.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-Distribution: world Original-NNTP-Posting-Host: sand.science.uva.nl Original-X-Trace: info.science.uva.nl 1038316380 3847 146.50.10.74 (26 Nov 2002 13:13:00 GMT) Original-X-Complaints-To: usenet@science.uva.nl Original-NNTP-Posting-Date: Tue, 26 Nov 2002 13:13:00 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) Original-Xref: shelby.stanford.edu gnu.emacs.help:107474 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:4027 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4027 How about starting the buffer name with a space? >From the elisp documentation: Buffers that are ephemeral and generally uninteresting to the user have names starting with a space, so that the `list-buffers' and `buffer-menu' commands don't mention them. A name starting with space also initially disables recording undo information; see *Note Undo::. - Carsten >>>>> "PL" == Phillip Lord writes: PL> I'm just wondering whether I can create an invisible buffer, or PL> something similar? That is one which does not appear in the buffer PL> menu list, and you can't accidentally change to. PL> The reason for this is that I have use this little hack.... PL> (add-hook 'xml-mode-hook PL> 'phil-psgml-hook) PL> (defun phil-psgml-hook() PL> "Does various checks and sets up various variables PL> 1) Checks to see if the file being loaded is one which needs a fake DOCTYPE. PL> That is I don't want to have the doctype in the buffer but want psgml mode to PL> think that there is one. PL> 2) Sets up default validate command" PL> (interactive) PL> (if (string= "build.xml" PL> (file-name-nondirectory (buffer-file-name))) PL> (setq sgml-parent-document '( "~/emacs/anthead.xml" "" "project" PL> )))) PL> What this does is allow me to use a DTD for editing ant build files, PL> without having to put the doctype declaration into the build file PL> itself, which goes into the anthead.xml file. PL> However it results in the anthead.xml file being opened into a buffer, PL> and it's just an annoyance. PL> Is there someway that I can mark it invisible? PL> Cheers PL> Phil