emacs-devel
[Top][All Lists]
Advanced

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

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


From: Nicolas Richard
Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG
Date: Tue, 09 Jun 2015 11:25:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Dmitry Gutov <address@hidden> 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.



reply via email to

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