all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG
Date: Tue, 9 Jun 2015 19:33:12 +0300	[thread overview]
Message-ID: <55771548.9030400@yandex.ru> (raw)
In-Reply-To: <jwvd21498ed.fsf-monnier+emacsdiffs@gnu.org>

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	other threads:[~2015-06-09 16:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150608220845.10141.75038@vcs.savannah.gnu.org>
     [not found] ` <E1Z25Dp-0002eB-Tw@vcs.savannah.gnu.org>
2015-06-08 23:57   ` [Emacs-diffs] master 6827370: Skip past `#' to find BEG Stefan Monnier
2015-06-09  7:03     ` Dmitry Gutov
2015-06-09  9:25       ` Nicolas Richard
2015-06-10 21:45         ` Dmitry Gutov
2015-06-11  9:50           ` Nicolas Richard
2015-06-09 16:05       ` Stefan Monnier
2015-06-09 16:33         ` Dmitry Gutov [this message]
2015-06-09 16:07       ` Stefan Monnier
2015-06-09 16:28         ` Dmitry Gutov
2015-06-09 18:06           ` Paul Eggert
2015-06-09 18:17             ` Dmitry Gutov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55771548.9030400@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.