From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: modify-syntax-entry and UTF8? Date: Wed, 23 May 2007 12:56:29 -0400 Message-ID: References: <4652AE2C.5030305@cis.upenn.edu> <46545922.1050002@cis.upenn.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179939409 10505 80.91.229.12 (23 May 2007 16:56:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 16:56:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Geoffrey Alan Washburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 18:56:41 2007 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.50) id 1Hqu8e-0007zc-Km for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 18:56:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqu8g-0002j9-B9 for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 12:56:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqu8d-0002j4-0d for emacs-devel@gnu.org; Wed, 23 May 2007 12:56:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqu8b-0002is-Ef for emacs-devel@gnu.org; Wed, 23 May 2007 12:56:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqu8b-0002ip-9v for emacs-devel@gnu.org; Wed, 23 May 2007 12:56:37 -0400 Original-Received: from 149.red-83-44-180.dynamicip.rima-tde.net ([83.44.180.149] helo=alfajor.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqu8a-0000ZI-Dd for emacs-devel@gnu.org; Wed, 23 May 2007 12:56:37 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id EF9621C67E; Wed, 23 May 2007 12:56:29 -0400 (EDT) In-Reply-To: <46545922.1050002@cis.upenn.edu> (Geoffrey Alan Washburn's message of "Wed\, 23 May 2007 11\:09\:22 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: 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:71659 Archived-At: > However, if create an empty scratch buffer and I move the cursor on top of > either of the glyphs they become highlighted, but with the face that is used > for matched delimiters rather than the face mismatch/unmatched delimiters. > Adding both glyphs to an empty buffer in correctly and incorrectly matching > permutations gives the same behavior. > So I am inclined to believe Stefan's hypothesis that modify-syntax-entry is > working correctly here and instead whatever code actually interprets the > syntax table or performs the actual adjustment to the faces for highlighting > has a bug of some sort. Try to use C-M-f and C-M-b to see if the code correctly counts opening/closing elements (this code doesn't pay attention to matching or non-matching elements). If this works, then 99% of things are right. Then, please tell us what you use to cause face-highlighting of those opening&closing elements. Ideally, give us a recipe starting from "emacs -Q" which can reproduce your problem. > I'm also somewhat curious that Emacs tells me that no font is available for > these glyphs, but Thunderbird seems to be able to locate a font that can be > used to display them. Emacs's font handling is quite different. You may need to help it a bit by specifying which font to use. I'm not sure how to do that since you seem to be using the emacs-unicode branch and I'm not yet familiar enough with it. Maybe start a different thread about it, and don't forget to mention emacs-unicode in there so the right people will look at it. Stefan