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

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

bug#10494: 24.0.92; Syntax table and non-ASCII character interaction


From: Eli Zaretskii
Subject: bug#10494: 24.0.92; Syntax table and non-ASCII character interaction
Date: Sat, 13 Aug 2016 09:56:57 +0300

> From: address@hidden
> Cc: address@hidden,  address@hidden
> Date: Fri, 12 Aug 2016 18:37:56 -0400
> 
> Eli Zaretskii <address@hidden> writes:
> 
> > Indeed.  This is a feature:
> 
> Ah, so doing
> 
>     (modify-syntax-entry ?’ "w" text-mode-syntax-table)
>     (aset char-script-table ?’ 'latin)
> 
> does let word motion skip over ’ as OP wanted.

Yes.  But I don't recommend such a "solution", because that would most
probably bite elsewhere, when we do want that character behave as a
symbol.

> `(elisp) Word Motion' looks like a good place for it:

Right, thanks.

>    The functions for parsing words described below use the syntax table
> -to decide whether a given character is part of a word.  @xref{Syntax
> -Tables}.
> +and @code{char-script-table} to decide whether a given character is
> +part of a word.  @xref{Syntax Tables} and @xref{Character Properties}.

@xref generates a capitalized "See", so is inappropriate in the middle
of a sentence.  Please use "see @ref" instead.

> address@hidden, described below.  Characters
> +that belong to a different script (as defined by

I'd say "belong to different scripts", otherwise the text begs the
question "different from what?".

> address@hidden), also mark a word boundary (@pxref{Character

"define a word boundary" sounds better to me.

Othwrise, LGTM, thanks.  Please push to emacs-25.





reply via email to

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