[Top][All Lists]

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

Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG

From: Dmitry Gutov
Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG
Date: Tue, 9 Jun 2015 19:33:12 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

On 06/09/2015 07:05 PM, Stefan Monnier wrote:

In text mode, for example, the single quote has syntax "w p", which
means that it's half-way between a word constituent and a prefix char.
More specifically, when at the beginning/end of a word, it's not
considered as part of the word, but it can appear in the middle of
a word.
This makes capitalize work correctly for things like:

    i can't believe he said 'hello' !

Thanks. Looking at it now, maybe the same use case could've been better served by a syntax-propertize-function.

Regarding a backward-prefix-chars counterpart, maybe skip-syntax-forward/backward could be taught to read modifiers from its first argument as well.

reply via email to

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