From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG Date: Tue, 09 Jun 2015 11:25:04 +0200 Message-ID: <87y4jtp72n.fsf@members.fsf.org> References: <20150608220845.10141.75038@vcs.savannah.gnu.org> <55768FD6.30803@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433842779 32330 80.91.229.3 (9 Jun 2015 09:39:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 09:39:39 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 09 11:39:31 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z2G0F-00033T-Vi for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 11:39:28 +0200 Original-Received: from localhost ([::1]:33940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2G0E-0002Vf-Hy for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 05:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2G01-0002VP-4Q for emacs-devel@gnu.org; Tue, 09 Jun 2015 05:39:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2Fzw-0004Pr-4a for emacs-devel@gnu.org; Tue, 09 Jun 2015 05:39:13 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:23724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Fzv-0004OD-VJ for emacs-devel@gnu.org; Tue, 09 Jun 2015 05:39:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4eAFazdlWkD4Xx/2dsb2JhbABchEKCUKoVAQEBAQEBBplnAoILAQEBAQEBgQtBAQMBg10BAQQnUhAIAw4TJQ8BBEkTiBkDEs9KAQEBAQYBAQEBHoYZhSqFBgeELQEEhnSfdY9wJGKBKByBVDwxgkcBAQE Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 09 Jun 2015 11:25:05 +0200 In-Reply-To: <55768FD6.30803@yandex.ru> (Dmitry Gutov's message of "Tue, 9 Jun 2015 10:03:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187123 Archived-At: Dmitry Gutov 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.