emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modify-syntax-entry and UTF8?


From: Geoffrey Alan Washburn
Subject: Re: modify-syntax-entry and UTF8?
Date: Tue, 22 May 2007 04:47:40 -0400
User-agent: Thunderbird 2.0.0.4pre (X11/20070521)

James Cloos wrote:
"Geoffrey" == Geoffrey Alan Washburn <address@hidden> writes:

Geoffrey> Specifically I would like to do something like the following

Geoffrey> (modify-syntax-entry ?〈 "(〉")
Geoffrey> (modify-syntax-entry ?〉 ")〈")

Geoffrey> Which is happily accepted but does not correctly interpret
Geoffrey> matching pairs of angle brackets in a buffer.

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 ‹ and › which are U+2039 SINGLE LEFT-POINTING ANGLE QUOTATION
MARK and U+203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK

Try these two lines instead:

 (modify-syntax-entry ?‹ "(›")
 (modify-syntax-entry ?› ")‹")

They may do what you want.

No, what I wrote is exactly what I meant, unless the author of the TeX-input method incorrectly defined \langle and \rangle.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]