From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#33940: 27.0.50; ?\^c syntax confuses scanning Date: Mon, 31 Dec 2018 19:58:13 -0800 Organization: UCLA Computer Science Department Message-ID: <7076b21c-8563-943b-f699-90f3a362111c@cs.ucla.edu> References: <8736qdnkx0.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1546315028 19358 195.159.176.226 (1 Jan 2019 03:57:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2019 03:57:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: 33940@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 01 04:57:04 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geBAs-0004t7-O6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jan 2019 04:57:02 +0100 Original-Received: from localhost ([127.0.0.1]:55115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geBCz-0006Ok-88 for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Dec 2018 22:59:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geBCt-0006OQ-IH for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2018 22:59:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geBCo-0002E9-GJ for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2018 22:59:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1geBCo-0002Cs-CU for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2018 22:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1geBCo-0003vY-1b for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2018 22:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jan 2019 03:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33940 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33940-submit@debbugs.gnu.org id=B33940.154631510415048 (code B ref 33940); Tue, 01 Jan 2019 03:59:01 +0000 Original-Received: (at 33940) by debbugs.gnu.org; 1 Jan 2019 03:58:24 +0000 Original-Received: from localhost ([127.0.0.1]:43743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geBCB-0003ue-PT for submit@debbugs.gnu.org; Mon, 31 Dec 2018 22:58:23 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geBC8-0003uQ-Vn for 33940@debbugs.gnu.org; Mon, 31 Dec 2018 22:58:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 90331160E8A; Mon, 31 Dec 2018 19:58:14 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id U-VCcqt6Zf-1; Mon, 31 Dec 2018 19:58:13 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D0E43160E8B; Mon, 31 Dec 2018 19:58:13 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Bgqq23geGRAP; Mon, 31 Dec 2018 19:58:13 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A3939160DFF; Mon, 31 Dec 2018 19:58:13 -0800 (PST) In-Reply-To: <8736qdnkx0.fsf@web.de> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:154058 Archived-At: Michael Heerdegen wrote: > in 20b858ef13f8f71fae6cbce5cdac31c4dd130600 "Prefer \... to control > chars in .el literals" woman.el has been changed to contain reader > syntaxes like "?\^]" - which apparently confuses `scan-sexps', e.g. > > (scan-sexps (point-min) (point-max)) > |- (scan-error "Containing expression ends prematurely" 81997 81998) > > Obviously `scan-sexps' doesn't handle this kind of syntax correctly. The second argument to scan-sexps is a count, not position, so you might want to rethink that example. Anyway, I'm not seeing any problems. I built the emacs-26 branch and ran the shell command: src/emacs -Q lisp/woman.el and then typed: M-: (scan-sexps (point-min) (point-max)) RET and it returned nil, which is what I'd expect. Can you reproduce the problem with a simple, self-contained test case like that?