From: Carsten Dominik <carsten.dominik@gmail.com>
To: harven <harven@free.fr>, Matt Lundin <mdl@imapmail.org>
Cc: emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: problem with utf8 todo keywords
Date: Wed, 15 Jun 2011 08:47:47 +0200 [thread overview]
Message-ID: <B9BB1C75-D463-4464-9BF2-EE2B02DD7914@gmail.com> (raw)
In-Reply-To: <87hb7wgpsh.fsf@ergodik.univ-brest.fr>
On 11.6.2011, at 20:56, harven wrote:
> Hi,
>
> I use emacs 23.2.1 together with org 6.33.
> I am trying to add the character ▶ as a todo keyword with no success.
>
> Starting with emacs -Q, I execute the following
> code in the scratch buffer
> (setq org-todo-keywords
> '((sequence "\u25b6" "ok")
> (sequence "\u25b8" "ok")))
> Then I open a simple .org file containing
>
> * ▶ first
> * ▸ second
>
> Only the second keyword is highlighted.
> 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
next prev parent reply other threads:[~2011-06-15 6:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-11 18:56 problem with utf8 todo keywords harven
2011-06-13 21:23 ` Darlan Cavalcante Moreira
2011-06-15 6:47 ` Carsten Dominik [this message]
2011-07-02 9:45 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B9BB1C75-D463-4464-9BF2-EE2B02DD7914@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=harven@free.fr \
--cc=mdl@imapmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).