From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Latin-1 non breaking space not highlighted Date: Mon, 15 Apr 2002 08:54:04 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200204142354.IAA01951@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1018828631 26926 127.0.0.1 (14 Apr 2002 23:57:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2002 23:57:11 +0000 (UTC) Cc: rms@gnu.org, ulrich@a0.complang.tuwien.ac.at, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16wtrq-00070B-00 for ; Mon, 15 Apr 2002 01:57:10 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16wu9J-0003vd-00 for ; Mon, 15 Apr 2002 02:15:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16wtrm-0002M8-00; Sun, 14 Apr 2002 19:57:06 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16wtp1-00028u-00; Sun, 14 Apr 2002 19:54:15 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g3ENs4w05316; Mon, 15 Apr 2002 08:54:04 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g3ENs4M05536; Mon, 15 Apr 2002 08:54:04 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id IAA01951; Mon, 15 Apr 2002 08:54:04 +0900 (JST) Original-To: eliz@is.elta.co.il In-Reply-To: "eliz@is.elta.co.il"'s message of Sun, 14 Apr 2002 07:10:36 +0300 User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2632 "Eli Zaretskii" writes: >> It looks like there is a real problem. I guess we should not simply >> change show-trailing-whitespace to use the whitespace syntax class. > I see two possible solutions: > - hardcode a few more special characters, like ISO8859-x NBSP and a > few Unicode characters; > or > - use syntax tables for non-ASCII characters only, assuming that no > Lisp package does anything weird with their syntax class. I think show-trailing-whitespace should not be affected by syntax of characters because what it should concern is a glyph. If a glyph of a character is just space, even if the syntax is `symbol' or whatever else, it should be highlighted. So, what we need is a char-table of such characters that are displayed by white glyph. In addition to many NBSPs, that char-table should also contain the following CJK white-space characters: (make-char 'japanese-jisx0208-1978 33 33) (make-char 'chinese-gb2312 33 33) (make-char 'japanese-jisx0208 33 33) (make-char 'korean-ksc5601 33 33) (make-char 'chinese-cns11643-1 33 33) (make-char 'japanese-jisx0213-1 33 33) (make-char 'chinese-big5-1 33 33) --- Ken'ichi HANDA handa@etl.go.jp