From: Nicolas Richard <youngfrog@members.fsf.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG
Date: Tue, 09 Jun 2015 11:25:04 +0200 [thread overview]
Message-ID: <87y4jtp72n.fsf@members.fsf.org> (raw)
In-Reply-To: <55768FD6.30803@yandex.ru> (Dmitry Gutov's message of "Tue, 9 Jun 2015 10:03:50 +0300")
Dmitry Gutov <dgutov@yandex.ru> writes:
> By the way, what is that 'p' syntax class mentioned in the
> backward-prefix-chars docstring?
I think it's not a syntax class, but a flag as described here :
(info "(elisp) Syntax Flags")
--8<---------------cut here---------------start------------->8---
* `p' identifies an additional "prefix character" for Lisp syntax.
These characters are treated as whitespace when they appear between
expressions. When they appear within an expression, they are
handled according to their usual syntax classes.
The function `backward-prefix-chars' moves back over these
characters, as well as over characters whose primary syntax class
is prefix (`''). *Note Motion and Syntax::.
--8<---------------cut here---------------end--------------->8---
I could suggest :
--8<---------------cut here---------------start------------->8---
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3013,7 +3013,7 @@ but before count is used up, nil is returned. */)
DEFUN ("backward-prefix-chars", Fbackward_prefix_chars, Sbackward_prefix_chars,
0, 0, 0,
doc: /* Move point backward over any number of chars with prefix syntax.
-This includes chars with "quote" or "prefix" syntax (' or p). */)
+This includes chars with "quote" syntax class (') or "prefix" syntax flag (p). */)
(void)
{
ptrdiff_t beg = BEGV;
--8<---------------cut here---------------end--------------->8---
Is it any better ?
--
Nico.
next prev parent reply other threads:[~2015-06-09 9:25 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 [this message]
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
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=87y4jtp72n.fsf@members.fsf.org \
--to=youngfrog@members.fsf.org \
--cc=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.