help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Making forward-word work with curly apostrophes


From: Ian Eure
Subject: Re: Making forward-word work with curly apostrophes
Date: Mon, 3 Aug 2009 16:58:28 -0700

On Aug 2, 2009, at 3:46 PM, A.Politz wrote:

Apart from syntax-class, 2 chars form a word boundary, if they do
not share a common character category. You need to do something
like this:

(let ((latin ?l)
     (other
      (aref (category-set-mnemonics
             (char-category-set ?’)) 0)))
 (add-to-list 'word-combining-categories
              (cons latin other))
 (add-to-list 'word-combining-categories
              (cons other latin)))

Perfect, this is what I needed.

I mentioned something like this in a bug report before, but it got wontfixed. Basically, a bunch of symbols which are used in latin scripts (like directional quotes) are categorized (incorrectly, I believe) as CJK.

I'll report it again and see if I can get it fixed.

 - Ian



reply via email to

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