From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20732: in-string-p fails Date: Fri, 5 Jun 2015 23:06:34 +0300 Message-ID: <5572014A.8080604@yandex.ru> References: <55701A18.6050503@easy-emacs.de> <55702162.30808@yandex.ru> <55703B8E.30804@easy-emacs.de> <5570BDC8.1010800@yandex.ru> <55713B27.3040407@easy-emacs.de> 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 1433534855 31751 80.91.229.3 (5 Jun 2015 20:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 20:07:35 +0000 (UTC) Cc: 20732-done@debbugs.gnu.org To: Stefan Monnier , Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 22:07:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Z0xtX-0007Ey-Mh for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 22:07:11 +0200 Original-Received: from localhost ([::1]:49410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0xtW-0006K9-NJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 16:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0xtR-0006Hc-P2 for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 16:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0xtO-0002ny-J5 for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 16:07:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0xtO-0002nt-GD for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 16:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0xtO-0005tq-9p for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 16:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2015 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20732-done@debbugs.gnu.org id=D20732.143353480522657 (code D ref 20732); Fri, 05 Jun 2015 20:07:02 +0000 Original-Received: (at 20732-done) by debbugs.gnu.org; 5 Jun 2015 20:06:45 +0000 Original-Received: from localhost ([127.0.0.1]:42179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0xt7-0005tN-8K for submit@debbugs.gnu.org; Fri, 05 Jun 2015 16:06:45 -0400 Original-Received: from mail-wg0-f47.google.com ([74.125.82.47]:34926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0xt4-0005t8-LR for 20732-done@debbugs.gnu.org; Fri, 05 Jun 2015 16:06:43 -0400 Original-Received: by wgme6 with SMTP id e6so64433537wgm.2 for <20732-done@debbugs.gnu.org>; Fri, 05 Jun 2015 13:06:36 -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=L7Jx+8PWP1159n0jT1FtOe7oPldgyW/Kd9xMeuQ2fAw=; b=yCKSQiAyd0w5+UK0RNdXWYlOMT+gb/hW1WrrHevZU5MmhECs7D9YGIWDD/T9ze68wR Vq9jwiCCA5FswAUfLAnmQnIlnOzvRqtFVVJ4qasRVZkLsS+Mac8KBPBpC3v1ww1WZD5M +fZmhJUOm1YMk0opLNdoMm5kjRCswVNDGo2LX6a4295Ief8r6EldiLaxeLTkQk2SmQt0 8gQpHs61uayt5WxoY+PYSMfkVAuKs/kEb902QuytPX3vTKEAVHSK+jVwCjXrskCeTgLS AtUdybwiAOFZMioYzkJBf7bpveZT2rgezQGImMlyt1+7wJW5Mg1oP2f2aGLTWlqPgGXO Mokg== X-Received: by 10.194.81.169 with SMTP id b9mr9091423wjy.126.1433534796899; Fri, 05 Jun 2015 13:06:36 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id em17sm4754687wid.11.2015.06.05.13.06.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2015 13:06:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103629 Archived-At: On 06/05/2015 06:18 PM, Stefan Monnier wrote: > Makes no sense. The simpler solution is to make syntax-ppss let-bind > open-paren-in-column-0-is-defun-start. After all, this variable's > optimization is not useful for syntax-ppss (which already optimizes the > same kinds of things but in a different way); it's only useful for > things like back_comment (i.e. things like backward-sexp, or > forward-comment with a negative argument). Actually, (nth 3 (syntax-ppss)) in an Elisp buffer doesn't suffer from the same problem as (in-string-p) since bug#16247 was fixed, and syntax-begin-function is nil there. So a simple fix would be to replace the definition of the latter with the former. We can bind open-paren-in-column-0-is-defun-start to nil, but if someone set syntax-begin-function to #'beginning-of-defun, maybe they meant something by that.