From xemacs-m  Sun Mar 23 18:00:15 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id SAA09470
	for <xemacs-beta@xemacs.org>; Sun, 23 Mar 1997 18:00:13 -0600 (CST)
Received: by crystal.WonderWorks.COM 
	id QQcieh24204; Sun, 23 Mar 1997 18:53:09 -0500 (EST)
Date: Sun, 23 Mar 1997 18:53:09 -0500 (EST)
Message-Id: <QQcieh24204.199703232353@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: xemacs-beta@xemacs.org
Subject: Re: Buffer-specific display-tables
In-Reply-To: <kig2096dw5l.fsf@jagor.srce.hr>
References: <199703232320.RAA09285@xemacs.org>
	<kig2096dw5l.fsf@jagor.srce.hr>
X-Mailer: VM 6.22 under 19.15 XEmacs Lucid (beta103)
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

Hrvoje Niksic writes:
 > Chuck Thompson <cthomp@xemacs.org> writes:
 > 
 > >     Hrv> Does it mean the display table problem is fixable?
 > > Yes, it should be.
 > 
 > Great.  There's a reason I actually need it, other than academic
 > discussion.  The display tables are used by Gnus to make sure that
 > the Summary remains nicely formatted, even when containing control
 > characters.  It's kinda annoying to have that functionality ifdef-ed
 > to work in GNU Emacs only.

Try this:

(let ((table (make-display-table)))
  (aset table ?\0 "?")
  (add-spec-to-specifier current-display-table table (current-buffer) nil))

Your original code failed, not because a bug in the display code
but rather because you can't use locales and set-specifier with
generic specifiers because of an type ambiguity.

