> 
> > Can't we break at non-letters? Not at non-„word-constituents“, but at
> > non-letters. If emacs doesn't provide that concept, better build it.
> 
> I don't know. Could you define precisely that concept?
> 

  I propose: radio links should be delimited by characters that don't match 
[:alpha:] in emacs' regular expression syntax.
  Letters (like: aá書ĉ) match, and delimiters (like: -'"/) don't.

  Test it with:
: (string-match-p "[[:alpha:]]" "á")
: (string-match-p "[[:alpha:]]" "書")
: (string-match-p "[[:alpha:]]" "ĉ")

: (string-match-p "[[:alpha:]]" "'")
: (string-match-p "[[:alpha:]]" "-")

  And the opposite: check for non-letterness:
: (string-match-p "[^[:alpha:]]" "-")
: (string-match-p "[^[:alpha:]]" "á")


  So a radio link with LINK_TEXT should not only be a match of the regexp 
"LINK_TEXT" but of "[^[:alpha:]]LINK_TEXT[^[:alpha:]]" (well, make it something 
like "(^|non-letter)LINK_TEXT($|non-text)".

  I think that's better than the current solution and stills allows for radio 
links which contain non-letters, like <<<o'clock>>>.
  What do you think?


Daniel

Reply via email to