From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 6827370: Skip past `#' to find BEG Date: Tue, 9 Jun 2015 19:33:12 +0300 Message-ID: <55771548.9030400@yandex.ru> 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; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433867633 5502 80.91.229.3 (9 Jun 2015 16:33:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 16:33:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 09 18:33:48 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 1Z2MTA-0005G1-UV for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 18:33:45 +0200 Original-Received: from localhost ([::1]:36204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MTA-0001ni-Aa for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 12:33:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MSt-0001nG-IF for emacs-devel@gnu.org; Tue, 09 Jun 2015 12:33:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2MSp-0005qg-Mw for emacs-devel@gnu.org; Tue, 09 Jun 2015 12:33:27 -0400 Original-Received: from mail-wg0-x241.google.com ([2a00:1450:400c:c00::241]:33469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MSp-0005fM-HC for emacs-devel@gnu.org; Tue, 09 Jun 2015 12:33:23 -0400 Original-Received: by wggy19 with SMTP id y19so3233294wgg.0 for ; Tue, 09 Jun 2015 09:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=Xqbb+L7gY+vCDpNPf0qnUsm7QZipKungvarxgXIYbM0=; b=kpQcaYHpaluxViuyvW5eMhBed8YC1zpCDqu14veziYejG7yjMKfI9d0TzcSfEeFdPT LBHce18FcLWGU1DJqwen1+v2QrNyilAvDY1ohJQu9ebeIsinpgRKPrVUi1iSKSLVchxu y4mO+38HMy0sMqxe14DWGmpydNZEcPXIavKyrtlDFtvnawy6acCn/F5DDcxsSaM8TIXW jSsuK5IBKftWYEeiiZaHAQyA3W4ir3J1y5AhWbMWSr42mxlgz9a2rjDtCpTQR7q725Kl 0qptBn3BfPNv0KtS2bIu85AVTzHXCuMUir05J6fg6Zamhmrn+S98+91ioT9aDYJA0H6Y BJFQ== X-Received: by 10.180.149.240 with SMTP id ud16mr9839291wib.7.1433867594096; Tue, 09 Jun 2015 09:33:14 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id w11sm10250826wjr.48.2015.06.09.09.33.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 09:33:14 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::241 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:187134 Archived-At: 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.