From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Usage of standard-display-table in MSDOS Date: Sun, 29 Aug 2010 10:04:16 -0400 Message-ID: References: <83aao8mjzx.fsf@gnu.org> <837hjcm9cw.fsf@gnu.org> <201008291016.o7TAG22t007365@beta.mvs.co.il> <201008291149.o7TBn3bO010199@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283090669 20868 80.91.229.12 (29 Aug 2010 14:04:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 14:04:29 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org To: ehud@unix.mvs.co.il Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 16:04:28 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OpiUj-0004oR-0r for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 16:04:25 +0200 Original-Received: from localhost ([127.0.0.1]:57468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpiUi-0002aX-9T for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 10:04:24 -0400 Original-Received: from [199.232.76.173] (port=57358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpiUd-0002aS-F8 for emacs-devel@gnu.org; Sun, 29 Aug 2010 10:04:19 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OpiUc-0006ye-4r for emacs-devel@gnu.org; Sun, 29 Aug 2010 10:04:19 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:54206) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OpiUb-0006ya-VF for emacs-devel@gnu.org; Sun, 29 Aug 2010 10:04:18 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OpiUa-0005Yc-2Y; Sun, 29 Aug 2010 10:04:16 -0400 In-reply-to: <201008291149.o7TBn3bO010199@beta.mvs.co.il> (ehud@unix.mvs.co.il) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129398 Archived-At: > Date: Sun, 29 Aug 2010 14:49:03 +0300 > From: "Ehud Karni" > Cc: emacs-devel@gnu.org, handa@m17n.org > Reply-to: ehud@unix.mvs.co.il > > Instead of trying to understand my problem, you are telling me why > Emacs behaves in this way Sorry, this wasn't the intent. I simply didn't see the connection between your original problem and the code you presented, so I responded to your "this doesn't work in Emacs 23.1". Let's back up a little: please tell what is the value of buffer-file-coding-system after you visit the offending files? > > > > ;; For NBSP (U+00A0) > > > > (aset standard-display-table #xA0 > > > > (vector (unibyte-char-to-multibyte #xA0))) > > > > > > This does not work because `unibyte-char-to-multibyte' does not give > > > the right result in Emacs-23.1 (it works well on Emacs-21.3). Note that Handa-san recommended to set more than just one slot in standard-display-table in Emacs 23 to solve similar problems: ;; For NBSP (U+00A0) (aset standard-display-table #xA0 (vector (unibyte-char-to-multibyte #xA0))) ;; For byte #xA0. (aset standard-display-table (unibyte-char-to-multibyte #xA0) (vector (unibyte-char-to-multibyte #xA0))) (set-terminal-coding-sytem 'no-conversion) (set-safe-terminal-coding-system-internal 'no-conversion) Did you set both slots of standard-display-table as shown above? > Because of my coding system (iso-8859, remember ?) the #xE0 should be > displayed as Aleph, not some 8 bit byte E0. What encoding does the text terminal expect for Hebrew characters?