From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: problem with utf8 todo keywords Date: Wed, 15 Jun 2011 08:47:47 +0200 Message-ID: References: <87hb7wgpsh.fsf@ergodik.univ-brest.fr> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWjtL-0004si-Oc for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 02:47:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWjtI-000110-3i for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 02:47:54 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:52949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWjtG-0000zZ-Oo for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 02:47:51 -0400 Received: by ewy9 with SMTP id 9so48101ewy.0 for ; Tue, 14 Jun 2011 23:47:49 -0700 (PDT) In-Reply-To: <87hb7wgpsh.fsf@ergodik.univ-brest.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: harven , Matt Lundin Cc: emacs-orgmode mailing list On 11.6.2011, at 20:56, harven wrote: > Hi, >=20 > I use emacs 23.2.1 together with org 6.33. > I am trying to add the character =E2=96=B6 as a todo keyword with no = success. >=20 > Starting with emacs -Q, I execute the following=20 > code in the scratch buffer > (setq org-todo-keywords > '((sequence "\u25b6" "ok") > (sequence "\u25b8" "ok"))) > Then I open a simple .org file containing >=20 > * =E2=96=B6 first > * =E2=96=B8 second >=20 > Only the second keyword is highlighted.=20 > Why is it not the case with the first keyword ? Most likely this is because the second character has syntax "word", while the first does not. The regular expression matching TODO words for font-lock expects the TODO keyword to have word syntax (at least the first and last character of it). Try this: (add-hook 'org-mode-hook (lambda () (modify-syntax-entry (string-to-char "\u25b6") "w") (modify-syntax-entry (string-to-char "\u25b8") "w"))) Matt, maybe this information could go into the FAQ? - Carsten