From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoffrey Alan Washburn Newsgroups: gmane.emacs.devel Subject: Re: modify-syntax-entry and UTF8? Date: Tue, 22 May 2007 04:47:40 -0400 Message-ID: <4652AE2C.5030305@cis.upenn.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1179823702 23311 80.91.229.12 (22 May 2007 08:48:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 08:48:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 10:48:19 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 1HqQ2T-0003f2-EP for ged-emacs-devel@m.gmane.org; Tue, 22 May 2007 10:48:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqQ2S-0004MB-V4 for ged-emacs-devel@m.gmane.org; Tue, 22 May 2007 04:48:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqQ2O-0004LQ-11 for emacs-devel@gnu.org; Tue, 22 May 2007 04:48:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqQ2M-0004L8-CP for emacs-devel@gnu.org; Tue, 22 May 2007 04:48:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqQ2M-0004Kx-26 for emacs-devel@gnu.org; Tue, 22 May 2007 04:48:10 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HqQ2L-0000gu-E8 for emacs-devel@gnu.org; Tue, 22 May 2007 04:48:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HqQ2A-00024t-L6 for emacs-devel@gnu.org; Tue, 22 May 2007 10:47:58 +0200 Original-Received: from c-76-99-54-75.hsd1.pa.comcast.net ([76.99.54.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 10:47:58 +0200 Original-Received: from geoffw by c-76-99-54-75.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 10:47:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-76-99-54-75.hsd1.pa.comcast.net User-Agent: Thunderbird 2.0.0.4pre (X11/20070521) In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:71587 Archived-At: James Cloos wrote: >>>>>> "Geoffrey" =3D=3D Geoffrey Alan Washburn wr= ites: >=20 > Geoffrey> Specifically I would like to do something like the following >=20 > Geoffrey> (modify-syntax-entry ?=E2=8C=A9 "(=E2=8C=AA") > Geoffrey> (modify-syntax-entry ?=E2=8C=AA ")=E2=8C=A9") >=20 > Geoffrey> Which is happily accepted but does not correctly interpret > Geoffrey> matching pairs of angle brackets in a buffer. >=20 > Those angle brackets you have there are U+2329 LEFT-POINTING ANGLE > BRACKET and U+232A RIGHT-POINTING ANGLE which are CJK or wide > characters. I suspect you may have wanted the similar, narrow > characters =E2=80=B9 and =E2=80=BA which are U+2039 SINGLE LEFT-POINTIN= G ANGLE QUOTATION > MARK and U+203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK >=20 > Try these two lines instead: >=20 > (modify-syntax-entry ?=E2=80=B9 "(=E2=80=BA") > (modify-syntax-entry ?=E2=80=BA ")=E2=80=B9") >=20 > They may do what you want. No, what I wrote is exactly what I meant, unless the author of the=20 TeX-input method incorrectly defined \langle and \rangle.