I looked over the emphasis expressions again and I really think it
would be useful to allow non-emphasis symbol characters and single
spaces.

I have experimented a bit and the following *should* work, but for
some reason sends my EmacsW32 into an infinite loop when I open a .org
file.

(if em '("\\(\\W\\|^\\)\\(\\*\\([[:graph:]]+?[ 
]?\\)+?[[:graph:]]+?\\*\\)\\(\\W\\|$\\)" 2 'bold))

Suggestions as to what the problem might be are welcome.

Also, I think the change to \W as delimiters is probably a good idea,
but something more explicit may make more sense. I am thinking along
the lines of "[[:punct:][:space:]]" as I had suggested earlier. I
guess it would really depend on where one would expect to see an
emphasized word. Keep in mind that $ and % are part of character class
\w for example.

Alex.


_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to